Overview
Need to transmit binary payloads through strict character limits on social feeds or messaging APIs? Base2048 encodes 11 bits per character across a curated 2048-symbol Unicode repertoire. A 256-byte binary payload compresses from 344 Base64 characters down to 187 Base2048 characters. Encode text or decode Base2048 payloads directly in your browser.
Key Capabilities
- Encodes raw UTF-8 byte streams into 11-bit Base2048 Unicode glyphs.
- Decodes Base2048 strings back to original binary and text payloads.
- Handles non-multiple bit lengths via a secondary 8-character (3-bit) trailing repertoire.
- Strips inter-token whitespace to support multi-line formatted strings.
Technical Architecture and Bit Packing
Created by qntm, Base2048 solves the character-length constraint of modern messaging protocols. While standard ASCII schemes like Base64 encode 6 bits per character (RFC 4648) and Ascii85 encodes approximately 6.4 bits, Base2048 maps 11 bits per code point (2 to the 11th power = 2048).
The character repertoire is strictly limited to the Basic Multilingual Plane (BMP, code points below U+10000) to ensure broad font compatibility. The character set excludes: 1. Invisible control and format characters. 2. Combining diacritical marks that alter adjacent text. 3. Surrogate code points and normalization-volatile symbols.
To handle trailing bits when payload bit lengths are not divisible by 11, Base2048 reserves a secondary 8-character repertoire representing 1 to 3 remainder bits padded with ones.
Encoding Instructions
- Paste your text or string payload into the input box.
- Select Encode to generate 11-bit Base2048 characters or Decode to unpack.
- Copy the compact Unicode string for character-restricted forms.
Character Count vs Byte Wire Size
Base2048 optimizes for character count, not byte count over wire protocols. Because BMP characters encode to 2 or 3 bytes in UTF-8, the raw byte footprint of Base2048 across network sockets is larger than Base64. However, in applications that enforce fixed character limits (such as SMS, Twitter, and database VARCHAR lengths), Base2048 reduces visual string length by 45 percent compared to Base64.
Interoperability and Normalization Safeguards
All characters in the Base2048 primary repertoire were selected to survive Unicode normalization passes (NFC and NFD). If an intermediate copy-paste buffer replaces unassigned code points with replacement characters (U+FFFD), the decoder immediately halts and pinpoints the corrupted offset.
Frequently asked questions
How does Base2048 compare to Base64?
Base64 uses 64 ASCII characters (6 bits per character). Base2048 uses 2048 Unicode characters (11 bits per character), producing significantly shorter strings in character-counted systems.
Is Base2048 an official IETF standard?
No. Base2048 is an open-source specification created by developer qntm. It is widely recognized in cryptography CTFs and Unicode data experiments.
Summary
Base2048 provides an efficient solution for character-constrained Unicode channels. Compare results against our Base64 encoder or test Base65536 for 16-bit storage density.