Text or files to Base85 and back: five characters for every four bytes.
Bytes (hexadecimal)
This text seems to be encoded already.
Everything happens in your browser: nothing you type is sent.
What is Base85?
Base-85 encodings turn four bytes into five printable characters. They add only 25% to the size of the data, compared with 33% for Base64. You find them in PostScript and PDF files, in Git binary patches and in messaging protocols between programs.
The three variants
Adobe Ascii85: the characters from ! to u. Four zero bytes are shortened to a single z, and the code is often wrapped in <~ and ~>.
Z85, defined by ZeroMQ: an alphabet without quotation marks or backslash, handy in source code.
Base85 from RFC 1924: the alphabet used by Git and several programming languages.
Lengths that do not divide evenly
When the number of bytes is not a multiple of four, the last group is shortened: n bytes give n + 1 characters. The strict Z85 specification only allows multiples of four; here the tool applies the same shortening rule as common libraries, which a strict reader will reject.
Decoding
Spaces and line breaks are ignored. Choose the variant that produced the code: the alphabets look alike, and a wrong choice gives meaningless bytes, sometimes without any error at all. If the result is not text, it is shown in hexadecimal and can be downloaded.
Frequently asked questions
Base85 or Base64?
Base64 is understood almost everywhere. Base85 is more compact but uses punctuation marks that, depending on the variant, cause trouble in a web address, HTML or JSON.
Why does a z appear in the code?
In Adobe Ascii85, z stands for a group of four zero bytes.
How can I tell which variant a code uses?
The markers <~ and ~>, or isolated z letters, point to Adobe Ascii85. Quotation marks or apostrophes rule out Z85. The signs ~, | or ` suggest the RFC 1924 alphabet.
Does it protect my data?
No. Base85 is not encryption: anyone can decode it.