Copied!
Free Tool • Auto Encode • No Registration

Base45 Encode String

Online Free Developer Tool — Instant Base45 Encoder, QR Code Generator & Converter

| Charset: | Sep:
0 chars
:
0 chars

Why Use Our Base45 Encoder?

Auto Encode

Real-time Base45 encoding

QR Preview

Live QR code generation

Encode/Decode

Two-way conversion

Multi Export

TXT, JSON, CSV & PNG

100% Private

Client-side only

100% Free

Unlimited, no login

How to Encode Text as Base45

1

Enter Text

Type, paste or upload text.

2

Configure

Set charset, prefix, chunking.

3

Auto Encode

Output generated instantly.

4

Export

Copy, download or scan QR.

The Complete Guide to Base45 Encoding: The QR Code Optimized Encoding for Modern Digital Credentials

In the rapidly evolving landscape of digital identity, health credentials, and compact data representation, a relatively new encoding standard has emerged as the optimal solution for a very specific and critically important problem: encoding binary data in a form that is maximally efficient within QR code alphanumeric mode. That standard is Base45, and the ability to base45 encode string data has become an essential skill for developers working with digital health certificates, electronic travel documents, digital wallets, and any application where data must be efficiently stored in a QR code while remaining decodable by resource-constrained devices. Our free online base45 encoder provides instant, RFC-compliant Base45 encoding with a comprehensive set of advanced features that make it the most useful Base45 tool available on the web.

Base45 was defined in RFC 9285 (published by the IETF in August 2022), though it saw widespread deployment earlier through the European Union's Digital COVID Certificate (EU DCC) system, which used Base45 encoding as a fundamental component of its data pipeline. When millions of COVID vaccination certificates were issued across the EU, each certificate was encoded using CBOR (Concise Binary Object Representation), compressed with ZLIB/DEFLATE, then encoded with Base45 before being embedded in a QR code. This real-world deployment at massive scale proved the practical value of the free base45 encode approach and established Base45 as the standard encoding for digital health credentials worldwide. The ability to online base45 encode data is no longer an academic exercise — it's a production requirement for developers building systems that must interoperate with EU DCC and compatible credential formats.

What makes Base45 special compared to other encoding schemes is its specific optimization for QR code alphanumeric mode. QR codes support multiple encoding modes, and the alphanumeric mode uses only 45 specific characters: the uppercase letters A-Z, the digits 0-9, and the special characters space, dollar sign, percent, asterisk, plus, hyphen, period, slash, and colon. These 45 characters — from which the encoding gets its name — are encoded in QR alphanumeric mode using only 5.5 bits per character, compared to 8 bits per character in QR byte mode. By using an encoding alphabet that exactly matches these 45 QR alphanumeric characters, Base45 achieves maximum efficiency when the encoded data is subsequently placed in a QR code. Our base45 converter fully respects this constraint, ensuring that every encoded output character belongs to the valid QR alphanumeric set.

How Base45 Encoding Works: The Mathematical Foundation

The Base45 encoding algorithm is elegant in its simplicity. The encoding process takes pairs of bytes from the input (two bytes at a time, or 16 bits) and encodes each pair as three Base45 characters. A pair of bytes with values b0 and b1 produces the integer n = b0 × 256 + b1, which ranges from 0 to 65535. This integer is then decomposed: c = n mod 45 gives the first character, d = (n ÷ 45) mod 45 gives the second character, and e = n ÷ 2025 gives the third character (since 45² = 2025). When only one byte remains at the end of the input (odd-length input), that single byte is encoded as exactly two Base45 characters: c = byte mod 45 and d = byte ÷ 45.

Our text to base45 conversion engine implements this algorithm with complete accuracy, handling all input lengths correctly. The encoding alphabet used is: 0-9 (values 0-9), A-Z (values 10-35), space (36), $ (37), % (38), * (39), + (40), - (41), . (42), / (43), : (44). This is the exact alphabet specified in RFC 9285, and it maps precisely to the 45 characters available in QR code alphanumeric mode. Our base45 text encoder uses this alphabet by default, with an option to output in uppercase (which is the standard) or the URL-safe lowercase equivalent for systems that prefer it.

The expansion ratio of Base45 is better than Base64 for QR code applications, even though the raw character count overhead is slightly higher. Base45 encodes 2 bytes as 3 characters (1.5× expansion), while Base64 encodes 3 bytes as 4 characters (1.33× expansion). However, because QR alphanumeric mode encodes 2 characters per 11 bits instead of byte mode's 1 character per 8 bits, the actual number of QR code modules required for Base45 encoded data is smaller than for Base64. This is why our base45 encode tool shows both the character expansion ratio and the comparative QR efficiency in the stats panel — understanding this distinction is key to appreciating why Base45 was chosen for digital health credentials.

The EU Digital COVID Certificate and Base45's Rise to Prominence

When the European Commission designed the EU Digital COVID Certificate system in 2021, the engineering team faced a specific challenge: how to encode a complete vaccination record, test result, or recovery certificate in a QR code that could be scanned quickly by border control officers, venue staff, and health authorities across 27 member states, on any device from a modern smartphone to an entry-level scanner. The data payload for a complete EU DCC is surprisingly large — a CBOR-encoded certificate can be several hundred bytes, and after ZLIB compression it might shrink to 100-200 bytes. After Base45 encoding, that becomes 150-300 characters, which still fits comfortably in a medium-density QR code. Using Base64 for the same data would require about 15% more QR modules, potentially requiring a larger or higher-density QR code that takes longer to scan.

Our instant base45 encode tool includes the HC1: prefix option specifically for EU DCC compatibility. In the EU DCC format, the Base45 encoded data is prefixed with "HC1:" to indicate that the QR code contains a Health Certificate version 1 payload. This prefix is part of the QR code content and tells scanning applications what kind of data to expect and how to process it. When you enable the HC1 Prefix option in our browser base45 encoder, the tool automatically prepends this prefix to the encoded output, producing output ready for embedding in a compliant digital health credential QR code.

Advanced Features for Every Professional Use Case

Our secure base45 encoder provides six processing modes designed to cover every scenario where Base45 encoding is relevant. The primary Encode mode converts plain text or binary data to Base45 format with real-time output. The Decode mode reverses the process, converting Base45 encoded strings back to their original text content. The Batch mode encodes multiple lines of input independently, producing a corresponding list of Base45 encoded values — essential for processing datasets containing multiple certificates, tokens, or records.

The Validate mode checks whether a given string is valid Base45, examining each character against the RFC 9285 alphabet and verifying that the length is valid (Base45 strings must have lengths such that no three-character group encodes a value exceeding 65535, and the string length modulo 3 must be 0 or 2). The QR Preview mode renders a visual QR code containing the Base45 encoded text using the alphanumeric encoding mode, allowing developers to verify that the encoded data fits within an acceptable QR code density. The Compare mode shows the same input encoded in Base45, Base64, Base32, and hexadecimal side by side, with character counts and QR module estimates for each, making it easy to understand Base45's specific advantages.

The base45 online converter also includes chunk output configuration, which breaks long Base45 strings into fixed-length lines of 32, 64, 76, or 128 characters. This is useful when the Base45 output needs to fit within specific field width constraints in databases, configuration files, or API responses. The separator selector allows choosing between newline, comma, pipe, or space as the delimiter when multiple encoded values are produced in batch mode.

Practical Applications: Where Base45 Encoding Is Used Today

Beyond the EU DCC, the ability to encode string to base45 format is relevant in several growing areas. The ICAO (International Civil Aviation Organization) is developing standards for digitally signed travel documents and border crossing certificates that use Base45 encoding. The W3C Verifiable Credentials ecosystem, which underlies digital wallet implementations in iOS and Android, increasingly uses Base45 for credential payload encoding in QR code representations. Several COVID-19 vaccine certificate systems outside the EU — including Switzerland's, Norway's, and the UK's — adopted compatible formats that also use Base45.

Developers building vaccination verification applications, digital passport systems, loyalty card systems, event ticketing platforms, and any application that needs to encode structured data in QR codes can benefit from our base45 utility tool. The QR code preview feature makes it particularly useful during development — you can paste your data payload, see the encoded output, and immediately verify how the QR code looks and what density is required, without needing to integrate a full QR code generation library in your development environment.

Comparing Base45 with Other Encoding Schemes

Understanding when to choose Base45 over other encodings requires knowing the specific advantages and limitations of each. Our best base45 encoder includes a Compare mode that shows all encodings side by side, but here is the conceptual framework. Base16 (hexadecimal) is the simplest encoding, doubling the data size, and is not optimized for QR code alphanumeric mode because it doesn't use the full 45-character alphabet. Base32 uses 32 characters and is optimized for case-insensitive environments and human transcription, but it's not the best choice for QR codes because it uses an alphabet that is a subset of QR alphanumeric but doesn't exploit the full 45-character capacity. Base64 is the most space-efficient standard encoding (33% overhead) but uses characters like + and / that are not in the QR alphanumeric set, forcing the use of QR byte mode and losing the efficiency advantage.

Base45, at 50% overhead for even-length inputs and approximately 50% for odd-length, seems less efficient than Base64's 33% overhead — but this comparison is misleading for QR code applications. When Base45 output is placed in a QR code using alphanumeric mode (5.5 bits per character), while Base64 output requires byte mode (8 bits per character), the actual QR code data capacity required by Base45 is significantly less than for Base64. Our developer base45 tool calculates and displays this QR mode efficiency in the Analysis panel, showing you the real comparative advantage of Base45 for your specific content.

For applications outside of QR code embedding — pure text transport, HTTP headers, database storage without QR requirements — Base64 remains the more efficient choice. Base45's specific value proposition is QR code optimization, and that is precisely where our seo encoding tool and Base45 encoder provides the most value. Understanding this context helps developers make the right encoding choice for each specific application, and our Compare mode makes it easy to see the tradeoffs clearly for any given input.

Whether you think of it as a base45 text converter, a free online base45 tool, a QR code encoding utility, or a digital health credential encoder, our tool provides the accuracy, functionality, and privacy that professional development work demands. The combination of real-time encoding, QR preview generation, RFC 9285 compliance validation, batch processing, multi-format export, and detailed encoding analysis makes this the most comprehensive qr code base45 encoder and base45 string generator available online today.

Frequently Asked Questions

Base45 is an encoding scheme defined in RFC 9285 that converts binary data into a 45-character alphabet (A-Z, 0-9, space, $, %, *, +, -, ., /, :). It encodes 2 bytes as 3 characters. It was specifically designed for QR code alphanumeric mode, where it achieves better efficiency than Base64 because all 45 characters are valid in QR alphanumeric encoding, avoiding the need for the less efficient byte mode.

The EU Digital COVID Certificate (DCC) uses Base45 because the certificate data is embedded in QR codes. Base45's 45-character alphabet exactly matches QR code alphanumeric mode, making the encoding more efficient in QR codes than Base64. The EU DCC pipeline encodes data using CBOR, compresses with ZLIB, Base45 encodes the result, then adds the HC1: prefix before embedding in a QR code.

HC1: stands for Health Certificate version 1. In the EU DCC format, the Base45 encoded data is prefixed with "HC1:" to indicate the payload type to scanning applications. When enabled, the tool prepends this prefix to the encoded output, producing a string compatible with EU DCC and similar health credential systems that verify for this prefix before decoding.

Raw character overhead: Base45 is ~50% (2 bytes → 3 chars) vs Base64's ~33% (3 bytes → 4 chars). However, in QR codes, Base45 uses alphanumeric mode (5.5 bits/char) while Base64 requires byte mode (8 bits/char), making Base45 actually more efficient in QR codes. For non-QR uses, Base64 is more space-efficient.

Encode: convert text to Base45. Decode: convert Base45 back to text. Batch: encode multiple lines separately. Validate: check RFC 9285 compliance. QR Preview: generate and display a QR code containing the Base45 output. Compare: show the same input encoded in Base45, Base64, Base32, and Hex side by side with efficiency metrics.

Yes! Click Upload or drag-and-drop a file. Supported: .txt, .csv, .log, .md, .json, .xml, .html up to 5MB. Content loads automatically and encoding begins immediately. All processing is client-side — your file never leaves your device.

100% private. All encoding, decoding, validation, and QR generation runs entirely in your browser using JavaScript. No data is sent to any server. Works offline after initial page load. History stored only in local browser storage. Safe for health credentials, cryptographic tokens, and sensitive content.

Yes! Full UTF-8 support. Text is first encoded to UTF-8 bytes (using TextEncoder), then those bytes are Base45 encoded. This correctly handles all Unicode characters including accented Latin letters, Cyrillic, Arabic, Japanese, and emoji. The charset selector also supports ISO-8859-1 and ASCII for legacy compatibility.

Yes, 100% free with no registration, no account, and no usage limits. All six modes, QR preview, batch processing, validation, file upload, multi-format export, encoding analysis, and history are fully available without cost or restriction.