Base85 / ASCII85 Encoder
Encode text in ASCII85 (Adobe/btoa) using 85 printable characters. Denser than Base64: every 4 bytes becomes 5 ASCII characters.
—
Ascii85: when every character counts
Ascii85 encodes four bytes into five characters, against base64's four for three. In practice that means 25 per cent growth instead of 33 — it sounds small, but in a PostScript file or a PDF stream, where binary data lives embedded in text, the difference shows in the final size. The price is a wider alphabet, including punctuation that gets in the way inside URLs.
Type the text and get the encoding in the Adobe variant, wrapped in opening and closing markers. The maths treats each group of four bytes as a 32-bit number and writes it in base 85, starting at the exclamation mark. There is one shortcut: a whole group of zeros becomes a lone letter z, saving four characters in data with plenty of empty space.
The final group, when it does not hold four full bytes, is padded with zeros and then truncated — it comes out one character longer than the real byte count, which is how the decoder knows how many bytes to recover. Check against a known example: the text "Man " encodes to 9jqo^, and "sure." to F*2M7/c. Outside PDF and PostScript, Ascii85 rarely turns up: base64 won by being safe in more places.
Frequently asked questions
What are the markers at the start and end for?
Can I use Ascii85 in a URL?
Why 85 and not some other number?
Related Tools
Base32 Encode/Decode
Convert text between Base32 (RFC 4648) and UTF-8 in both directions. Useful for TOTP authentication tokens, keys and data compatible with Base32 systems.
Base58 Bitcoin Encoder
Encodes and decodes bytes in Base58 using the Bitcoin alphabet (no 0, O, I, l).
GEDCOM Reader
Read GEDCOM (genealogy) files and list individuals (INDI) with name, birth and death dates.
Timesheet Punch Analyzer
Reads pasted clock-in and clock-out punches and returns hours worked, time-bank balance, overtime at 50% and 100% and night premium for each day.
Mohs Hardness Scale
Look up the Mohs hardness scale (1 to 10) and the reference mineral at each level, from talc to diamond. Useful for geology, jewelry and mineral study.
Character Info
Get full information about any Unicode character: decimal code, hex, HTML entity, UTF-8 and official name. Click any character to inspect it.