Skip to content

Base65536

Encode bytes to Base65536 characters and back, entirely in your browser.

Input
Output

Base65536

Base65536 packs two bytes of data into a single Unicode character instead of Base64's one character per six bits, so an encoded payload runs at roughly half the length of the equivalent Base64 string. Paste text, hex bytes or raw byte values and this tool converts them to Base65536 characters, or decodes a Base65536 string back to the original bytes. The alphabet here is one contiguous private-use block, picked so every value is a printable non-surrogate code point: it round-trips perfectly with itself, but is not interchangeable with other Base65536 implementations.

Choose a direction with Encode or decode, and pick the byte format that matches what you're working with: Text (UTF-8) treats the input as a normal string, Hex bytes reads pairs of hex digits such as "48 65 6c 6c 6f", and Byte values reads whole numbers from 0 to 255 separated by spaces or commas. The same setting decides how a decoded result is rendered back to you. Wrap every N characters if you need the output split into fixed-width lines, for example to fit a form field or a fixed-width terminal.

Because each character here carries a full 16 bits, an input with an odd number of bytes needs one character to represent a lone trailing byte. Keep padding on to have the tool mark that character so the exact byte count survives a round trip; turn it off and the output is one character shorter, at the cost of an extra zero byte reappearing when it's decoded again. Validate input controls what happens when a character outside the Base65536 range turns up while decoding: on, it stops and reports the exact character and position; off, it skips anything unrecognized and decodes the rest.

Everything runs locally in your browser — no bytes are uploaded anywhere, which matters for tokens, keys or other sensitive payloads passed through an encoder. Copy the result, download it as a .txt file, or send it straight back into the input to decode what you just encoded.

FAQ

Why is Base65536 shorter than Base64?
Base64 spends one character per 6 bits of data, so 3 bytes need 4 characters. Base65536 spends one character per 16 bits, so 2 bytes need only 1 character — about half the length for the same data.
What happens to an odd number of input bytes?
The last byte is packed into its own character with an implicit trailing zero. With "Keep padding" on, a marker character is added so decoding recovers the exact original bytes; with it off, decoding adds back one extra zero byte.
Why do some Base65536 characters look like empty boxes?
They come from Unicode's Supplementary Private Use Areas, which most fonts don't have glyphs for. That's expected — the characters are still valid and decode back to the exact same bytes even if your editor can't draw them.
What does "Validate input" do when decoding?
With it on, a character outside the Base65536 range stops the conversion and reports exactly which character and position caused it. Turn it off to skip stray characters — useful if a block was copied out of a message with extra text nearby.
Is my text or file uploaded anywhere?
No. Base65536 encoding and decoding run entirely in your browser using JavaScript — nothing you paste here is sent to a server.