Report Tool or Give Us Suggestions

Ascii85 Base85 Encoder Decoder

Convert binary and text strings to Adobe Ascii85 or ZeroMQ Z85 formats and decode them back with padding adjustments.

L ading . . .

What is Ascii85 (Base85) Encoding?

Ascii85 (also known as Base85) is an extremely efficient binary-to-text encoding format. It is used heavily in Adobe PostScript/PDF files, Git patches, and telecommunication protocols (like ZeroMQ Z85) to represent binary data as printable ASCII text.

Why use Base85 over Base64?

Standard Base64 encoding represents binary using 6 bits per character, adding a **33.3% size overhead** to data.

**Base85** increases efficiency by mapping groups of **4 bytes (32 bits)** of binary data into **5 printable ASCII characters**, reducing the overhead to just **25%** ($5 / 4 = 1.25$). This makes it much more compact and efficient for storing or transmitting binary data across text-only channels.

How the Math Works

Each 4-byte chunk is treated as a single 32-bit unsigned integer $V$ (in big-endian format). This value is converted into 5 base-85 digits ($d_0, d_1, d_2, d_3, d_4$) according to the following mathematical expansion:

$$V = d_0 \times 85^4 + d_1 \times 85^3 + d_2 \times 85^2 + d_3 \times 85^1 + d_4$$

To represent these digits as text characters:

  • Adobe Ascii85: Digit values (0 to 84) are offset by adding 33 to map them to characters ! through u. Four-byte blocks of pure zeros are compressed to a single character z.
  • ZeroMQ Z85: Uses a specialized 85-character string-safe alphabet optimized to avoid characters like quotes, backslashes, and brackets, making it perfectly safe for command-line arguments and programming source code.
  • RFC 1924 (IPv6): A custom Base85 alphabet order originally proposed as an April Fools' joke standard for representing IPv6 addresses compactly.

Key Features of Our Base85 Tool

  • Bidirectional Translation: Easily encode standard plain text or binary arrays into Base85, or decode Base85 text back.
  • Multi-Preset Support: Switch between standard **Adobe Ascii85**, **ZeroMQ Z85**, and **IPv6 RFC 1924** character alphabets instantly.
  • Interactive Chunk Grid: Watch the tool break down 4-byte blocks into their corresponding 5-character representations in real-time.
  • Zero Compression Toggle: Enable or disable standard Adobe z zero-block compression.

Frequently Asked Questions

What is the ZeroMQ Z85 standard?

ZeroMQ Z85 is a standard variation of Base85 designed to be safe for inclusion in source code and configuration files. It avoids special characters like quotes (", '), backslashes (\), and brackets (<, >) which typically require escaping in programming languages.

How is padding handled in Base85?

If the input length is not a multiple of 4 bytes, the encoder pads the final chunk with zero bytes. It then generates the corresponding 5 Base85 characters and discards the extra padding characters. The decoder reverses this process by padding short character groups and stripping the extra bytes.

Why does Adobe Ascii85 wrap output inside '<~' and '~>' markers?

These markers are boundary delimiters used in Adobe PDF and PostScript standard specifications to help parsers easily detect the beginning and end of the Ascii85 encoded stream, ignoring surrounding text or metadata.

logo OnlineMiniTools

OnlineMiniTools.com is your ultimate destination for a wide range of web-based tools, all available for free.

Feel free to reach out with any suggestions or improvements for any tool at admin@onlineminitools.com. We value your feedback and are continuously striving to enhance the tool's functionality.

© 2026 OnlineMiniTools . All rights reserved.

Hosted on Hostinger

v1.10.0