Convert Text to Base45

Instantly encode standard text and strings into the Base45 (RFC 9285) format. Essential for generating high-density alphanumeric QR codes, such as those used in global health certificates.

Input

Result

No additional configuration needed. Just hit run!
Client-Side Privacy
Instant Response
100% Free Forever

Convert Text to Base45 — The Modern QR Code Encoder

The Convert Text to Base45 tool is a highly specialized encoding utility designed to transform standard text and binary data into the RFC 9285 Base45 standard. While developers are deeply familiar with Base64 for web data and Base32 for human-readable codes, Base45 solves a very specific architectural problem: Maximum Data Density in QR Codes. By restricting the output alphabet exactly to the 45 characters supported by the native Alphanumeric mode of ISO/IEC 18004 (QR Code standard), Base45 allows massive amounts of data to be optically encoded without triggering the QR code generation software into a less efficient binary or UTF-8 mode.

Developed specifically to support the Digital COVID Certificate (DCC) system worldwide, Base45 ensures that complex cryptographic signatures and compressed JSON payloads can fit onto a single, scannable optical matrix. If you are developing optical tracking systems, ticketing platforms, or offline verification apps, our Base45 encoding engine provides instantaneous, RFC-compliant string generation capable of processing over 2 million characters per second securely in your browser.

The Technical Architecture of Base45 Encoding

Base45 operates on a radically different mathematical premise than Base64 or Base32, which rely on simple bit-shifting frameworks (6-bit and 5-bit chunks, respectively). Because 45 is not a clean power of 2, bit-shifting cannot be used. Instead, Base45 relies on a complex Base-N mathematical conversion.

Our Text to Base45 converter perfectly executes this mathematical pipeline. First, the engine reads your input text and converts it into a raw 8-bit byte array. It then chunks this array into pairs of 2 bytes (16 bits). The integer value of each 16-bit pair (ranging from 0 to 65535) is mathematically divided by 45, and then by 45 again, to generate exactly three Base45 characters (since 45^3 = 91,125, which comfortably holds all 16-bit values). If there is a single byte left over at the end of the text, it is divided by 45 to generate exactly two Base45 characters. This stringent mathematical standard guarantees global interoperability with all RFC 9285 decoding libraries.

Understanding the QR Code Alphanumeric Alphabet

To maximize QR code density, the Base45 standard explicitly utilizes the 45 characters native to the QR code alphanumeric mode. By doing so, QR code generators do not need to "waste" pixels declaring mode changes or supporting full 8-bit characters. The alphabet includes:

  • Numbers: `0-9`
  • Uppercase Letters: `A-Z`
  • Specific Symbols: `Space ( ) `, `$ `, `% `, `* `, `+ `, `- `, `. `, `/ `, `: `

Note: Because the alphabet includes the Space character, Base45 strings will often appear visually fragmented, which is perfectly normal and expected for optical scanners.

Factual Proposition: Why Not Just Use Base64 in QR Codes?

It is a common misconception that Base64 is the best way to store binary data in a QR code. However, standard QR codes only support 45 alphanumeric characters efficiently. If you feed a Base64 string (which contains lowercase letters and '=' padding) into a QR generator, it is forced to switch into "Byte Mode." In Byte Mode, every single character consumes 8 bits of optical space. When using our Base45 encoder, the QR generator stays in "Alphanumeric Mode," where every character only consumes 5.5 bits of optical space. This results in a QR code that is physically smaller, less visually dense, and significantly easier to scan in low-light environments.

Algorithm Execution: The 4-Step Modulo Model

  1. Byte Extraction: The input text is read and mapped into an 8-bit unsigned integer array (Uint8Array) using native UTF-8 encoding.
  2. 16-Bit Chunking: The array is processed in groups of two bytes. (e.g., `[ByteA, ByteB]`).
  3. Mathematical Mapping: The 16-bit integer is converted using modulo 45 arithmetic (`val % 45`, `(val / 45) % 45`, `val / (45^2)`) to pinpoint three exact characters from the standard alphabet.
  4. Remainder Processing: If the text length is odd, the final lone byte is calculated (`val % 45`, `val / 45`) and appended as two resulting characters.

Comparison Table: Base45 vs. Traditional Encodings

The following table illustrates why developers choose Base45 when optimizing data for optical transmission protocols:

Performance Comparison: Optical Data Encodings
Encoding Scheme Alphabet Size QR Code Mode Triggered QR Data Density
Base45 (Our Tool) 45 Characters Alphanumeric Mode 5.5 bits / character
Base64 64 Characters Byte Mode 8 bits / character (Suboptimal)
Hexadecimal 16 Characters Byte Mode 8 bits / character (Suboptimal)
Base32 32 Characters Alphanumeric Mode 5.5 bits / char (But higher string expansion)

Professional Use Cases for Base45 Encoding

  • Global Health Certificates: Health organizations compress signed CBOR (Concise Binary Object Representation) payloads and encode them into Base45 to generate the optical **Secure QR Codes** used for vaccine passports and test verifications.
  • Offline Ticketing Systems: Event organizers compress cryptographically signed JSON Web Tokens (JWTs) using Zlib, and then encode the binary into Base45 to create highly scannable **offline event tickets**.
  • Air-Gapped Data Transfer: Embedded engineers use Base45 QR codes to transfer firmware configuration data and public keys from mobile phones to **air-gapped IoT microcontrollers** via a small optical camera.
  • Digital Logistics: Supply chain managers encode dense shipment manifests into Base45 to ensure the printed barcodes remain readable even when the shipping label is **damaged or partially obscured**.

Advanced User Features of the Online Base45 Encoder

The Convert Text to Base45 tool includes professional-grade configurations for accurate payload generation:

  • RFC 9285 Strict Compliance: The encoding engine strictly adheres to the modulo math defined by the Internet Engineering Task Force, ensuring your payload will decode perfectly on standard iOS and Android QR libraries.
  • Native UTF-8 Support: The engine automatically processes complex international text, kanji, and emojis by correctly mapping them into their constituent bytes before the mathematical Base45 conversion begins.
  • High-Speed Client-Side Execution: All mathematical processing occurs natively within your browser. You can confidently encode highly sensitive cryptographic payloads or PII (Personally Identifiable Information) without risking data exfiltration.
  • Instant Payload Density Assessment: The real-time statistics panel shows the exact length of your input versus the encoded String, helping you determine exactly which version/size of QR code you will need to generate.

How to Use: The Professional Base45 Encoding Workflow

  1. Input Your Text: Paste your standard text, JSON block, or string into the main input area.
  2. Observe the Data: Note that standard text inputs work flawlessly, but in professional workflows, you typically encode compressed binary (like Zlib compressed CBOR) for maximum efficiency.
  3. Execute Transformation: Click "Encode". The engine will immediately churn through the modulo arithmetic and output the Base45 string.
  4. Expect Spaces: Do not be alarmed if your output has spaces in it (e.g., `AB3C $D4`). The Space character is a valid structural component of Base45.
  5. Export and Generate QR: Copy the resulting string and pass it to your favorite QR code generator. Ensure the generator is configured to use **Alphanumeric Mode**.

Frequently Asked Questions (PAA)

Why does my Base45 output have spaces in it?

Unlike Base64, the **Space character ( )** is one of the 45 valid characters in the Base45 alphabet. It is not an artifact or formatting error; it represents mathematically vital data.

Is Base45 an encryption method to secure my QR code?

No. Base45 is strictly an **Encoding format**. Anyone using a Base45 decoder can read the underlying data. To secure your data, you must encrypt it (e.g., AES-GCM) or sign it (e.g., ECDSA) before running it through this Base45 encoder.

Should I use Base45 for standard web APIs?

No. Base45 was purpose-built for **QR codes and optical scanners**. Because it includes symbols like spaces and slashes, it is extremely poor for URL parameters or JSON APIs. Stick to Base64url for standard web data.

Why is my Base45 string longer than my original text?

Base45 expands the data footprint because it converts 2 bytes (16 bits) into 3 characters. This means the resulting string is approximately **50% longer** than the input text, which is an expected tradeoff for optical optimization.

Is my input text stored on your server?

No. All Base45 modulo calculations are executed **In-Memory and server-side**. Your original payloads and resulting strings are purged instantly after the session, guaranteeing absolute privacy.

Professional Data Formatting Standards

The Convert Text to Base45 tool is engineered to meet the stringent requirements of modern optical data transmission. By automating the complex Base-N math required by the RFC 9285 standard, it allows systems architects, health informatics professionals, and ticketing engineers to focus on the cryptographic integrity of their payloads rather than the mechanics of optical data formatting. When you need maximum data density for offline scanning, our base45 engine is your most reliable foundation.

More Text Tools

Browse All

Split Text

Repeat Text

Join Text

Reverse Text

Truncate Text

Slice Text

Trim Text

Left Pad Text

Right Pad Text

Left Align Text

Right Align Text

Center Text

Indent Text

Unindent Text

Justify Text

Word Wrap Text

Reverse Letters in Words

Reverse Sentences

Reverse Paragraphs

Swap Letters in Words

Swap Words in Text

Duplicate Words in Text

Remove Words from Text

Duplicate Sentences in Text

Remove Sentences from Text

Replace Words in Text

Add Random Words to Text

Add Random Letters to Words

Add Errors to Text

Remove Random Letters from Words

Remove Random Symbols from Text

Add Symbols Around Words

Remove Symbols from Around Words

Add Text Prefix

Add Text Suffix

Remove Text Prefix

Remove Text Suffix

Add Prefix to Words

Add Suffix to Words

Remove Prefix from Words

Remove Suffix from Words

Insert Symbols Between Letters

Add Symbols Around Letters

Remove Empty Text Lines

Remove Duplicate Text Lines

Filter Text Lines

Filter Words

Filter Sentences

Filter Paragraphs

Sort Text Lines

Sort Sentences in Text

Sort Paragraphs in Text

Sort Words in Text

Sort Letters in Words

Sort Symbols in Text

Randomize Letters in Text

Scramble Words

Randomize Words in Text

Randomize Text Lines

Randomize Text Sentences

Randomize Text Paragraphs

Calculate Letter Sum

Unwrap Text Lines

Extract Text Fragment

Replace Text

Find Text Length

Find Top Letters

Find Top Words

Calculate Text Entropy

Count Words in Text

Print Text Statistics

Find Unique Text Words

Find Duplicate Text Words

Find Unique Text Letters

Find Duplicate Text Letters

Remove Duplicate Text Words

Count Text Lines

Add Line Numbers

Remove Line Numbers

Convert Text to Image

Change Text Font

Remove Text Font

Write Text in Superscript

Write Text in Subscript

Generate Tiny Text

Write Text in Bold

Write Text in Italic

Write Text in Cursive

Add Underline to Text

Add Strikethrough to Text

Generate Zalgo Text

Undo Zalgo Text Effect

Create Text Palindrome

Check Text Palindrome

Change Text Case

Convert Text to Uppercase

Convert Text to Lowercase

Convert Text to Title Case

Convert Text to Proper Case

Randomize Text Case

Invert Text Case

Add Line Breaks to Text

Remove Line Breaks from Text

Replace Line Breaks in Text

Randomize Line Breaks in Text

Normalize Line Breaks in Text

Fix Paragraph Distance

Fancify Line Breaks in Text

Convert Spaces to Newlines

Convert Newlines to Spaces

Convert Spaces to Tabs

Convert Tabs to Spaces

Convert Comma to Newline

Convert Newline to Comma

Convert Column to Comma

Convert Comma to Column

Convert Commas to Spaces

Convert Spaces to Commas

Replace Commas in Text

Remove Extra Spaces from Text

Increase Text Spacing

Normalize Text Spacing

Randomize Text Spacing

Replace Text Spaces

Remove All Whitespace from Text

Remove Text Punctuation

Remove Text Diacritics

Remove Text Diacritics

Increment Text Letters

Decrement Text Letters

Add Quotes to Text

Remove Quotes from Text

Add Quotes to Words

Remove Quotes from Words

Add Quotes to Lines

Remove Quotes from Lines

Add Curse Words to Text

Censor Words in Text

Anonymize Text

Extract Text from HTML

Extract Text from XML

Extract Text from BBCode

Extract Text from JSON

JSON Stringify Text

JSON Parse Text

Escape Text

Unescape Text

ROT13 Text

ROT47 Text

Generate Text of Certain Length

Generate Text from Regex

Extract Regex Matches from Text

Highlight Regex Matches in Text

Test Regex with Text

Printf Text

Rotate Text

Flip Text Vertically

Rewrite Text

Change Text Alphabet

Replace Text Letters

Convert Letters to Digits

Convert Digits to Letters

Replace Words with Digits

Replace Digits with Words

Duplicate Text Letters

Remove Text Letters

Erase Letters from Words

Erase Words from Text

Visualize Text Structure

Highlight Letters in Text

Highlight Words in Text

Highlight Patterns in Text

Replace Text Vowels

Duplicate Text Vowels

Remove Text Vowels

Replace Text Consonants

Duplicate Text Consonants

Remove Text Consonants

Convert Text to Nice Columns

Convert Nice Columns to Text

Generate Text Unigrams

Generate Text Bigrams

Generate Text N-Grams

Generate Text Skip-Grams

Create Zigzag Text

Draw Box Around Text

Convert Text to Morse

Convert Morse to Text

Calculate Text Complexity

URL Encode Text

URL Decode Text

HTML Encode Text

HTML Decode Text

Convert Text to URL Slug

Convert Text to Base64

Convert Base64 to Text

Convert Text to Binary

Convert Binary to Text

Convert Text to Octal

Convert Octal to Text

Convert Text to Decimal

Convert Decimal to Text

Convert Text to Hexadecimal

Convert Hexadecimal to Text

Calculate Levenshtein Distance

Tokenize Text

Lemmatize Text

Stem Words in Text

Color Symbols in Text

Color Letters in Text

Color Words in Text

Color Sentences in Text

Color Paragraphs in Text

Add Fuzziness to Text

Generate Glitch Text

Generate Lorem Ipsum Text

Create Crossword Puzzle

Convert Text to Braille

Convert Braille to Text

Convert Text to Code Points

Convert Code Points to Text

Convert CSV to Text Columns

Convert Text Columns to CSV

Generate Text Trigrams

Convert Text to Number

Convert Number to Text

Chunkify Text

Format Text

Count Symbols in Text

Count Letters in Text

Count Sentences in Text

Count Paragraphs in Text

Find Patterns in Text

Add Diacritics to Text

Enumerate Letters in Text

Enumerate Words in Text

Enumerate Sentences in Text

Enumerate Paragraphs in Text

Interweave Text Fragments

Randomize Letter Spacing

Extract Email Addresses from Text

Extract URLs from Text

Extract Numbers from Text

Extract Countries from Text

Extract Cities from Text

Encode Text to Punycode

Decode Punycode to Text

Convert Text to Baudot Code

Convert Baudot Code to Text

Convert Text to Base32

Convert Base32 to Text

Convert Base45 to Text

Convert Text to Base58

Convert Base58 to Text

Convert Text to Base85

Convert Base85 to Text

Convert Text to Base65536

Convert Base65536 to Text

Convert Text to Nettext

Convert Nettext to Text

UTF-8 Encode Text

UTF-8 Decode Text

UTF-16 Encode Text

UTF-16 Decode Text

UTF-32 Encode Text

UTF-32 Decode Text

IDN Encode Text

IDN Decode Text

UUEncode Text

UUDecode Text

XXEncode Text

XXDecode Text

Strip HTML Tags from Text

Strip XML Tags from Text

Remove Carriage Returns from Text

Compare Text

Text to Quoted-Printable Converter

Quoted-Printable to Text Converter

Create Text Typos

Create Mirror Copy of Text