Ascii85 / Base85
Convert UTF-8 text to and from Ascii85 (also called Base85). Pick the Adobe variant (<~ ~> delimiters, "z" shorthand for zero groups), the classic btoa variant, or ZeroMQ Z85. Four bytes pack into five printable characters.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
How Ascii85 packs bytes
Text is encoded as UTF-8 first, then every four bytes become five printable characters from an 85-character alphabet — about 25% larger than the raw bytes, noticeably tighter than Base64. Decoding reverses this and returns the UTF-8 text, with the byte count shown.
Three variants, three alphabets
The Adobe variant wraps the output in <~ and ~> and writes a group of four zero bytes as a single z, which is what PostScript and PDF streams use. The btoa variant adds a y shorthand for four spaces and omits the delimiters. Z85 is the ZeroMQ RFC 32 alphabet, defined only for lengths that are a multiple of four.
Choosing a variant by destination
Pick Adobe when feeding a PostScript or PDF filter, or when you want the delimiters included. Pick btoa to match the historical btoa command. Pick Z85 when the other end is a ZeroMQ socket — and remember the multiple-of-four rule.
Edge cases worth knowing
On decode the Adobe delimiters and any whitespace are stripped automatically. A dangling single-character group is an error, since a partial group needs at least two. Decoding does not verify valid UTF-8, so the byte count is the reliable check.
Encoded in the browser
The conversion is pure arithmetic in this tab, with no request to any service. That matters when the input is a binary blob embedded in a PDF or a licence payload you would rather not paste elsewhere.
Questions
What is the "z" shorthand?
In the Adobe and btoa variants a group of four zero bytes is written as a single "z" instead of "!!!!!". The btoa variant additionally writes four spaces as "y".
Why does Z85 reject my input?
Z85 (ZeroMQ RFC 32) is only defined for byte lengths that are a multiple of 4, and encoded lengths that are a multiple of 5. It has no padding, so partial groups are an error.
Does the Adobe variant need the <~ ~> delimiters?
When decoding they are optional — the tool strips them if present. When encoding with the Adobe variant they are always added.
Related tools
See categoryBase64 Encode / Decode
Convert text or a file to and from Base64, with URL-safe and MIME line-wrap options.
Base32 Encode / Decode
RFC 4648 Base32 and Crockford Base32 encoding and decoding of text.
Base58 Encode / Decode
Convert text to and from Base58 using the Bitcoin and IPFS alphabet.
Hex Encode / Decode
Convert text to and from hexadecimal (UTF-8), with configurable separators.