Skip to content
D DocNectar

Free Base85 (Ascii85) Encoder and Decoder

Encode text to Ascii85 (Base85) or decode Ascii85 back to text — the encoding used by PostScript and PDF.

100% Free No Signup Works on all devices

Built and fact-checked by the DocNectar team — see our editorial standards

Thanks for rating!

Key Features

Instant Calculation

Get accurate results in real time with our optimized algorithm.

Mobile Friendly

Fully responsive design. Works on all devices & screen sizes.

Privacy Focused

Your data stays on your device. We don't store any inputs.

100% Free

No hidden costs. This tool is completely free forever.

Base85 (specifically the Ascii85 variant used by Adobe PostScript, PDF, and btoa) packs binary data more efficiently than Base64 — 4 raw bytes become 5 printable characters instead of Base64's 4 bytes into ~5.33 characters. This tool encodes text to Ascii85 or decodes Ascii85 back to the original text.

How it works

Bytes are grouped 4 at a time and treated as one 32-bit number, which is converted to 5 base-85 digits (each written as a printable ASCII character). An all-zero 4-byte group is shortened to the single character "z", and a final partial group is trimmed so the exact original length can be recovered on decode.

  1. Enter mode.
  2. Enter input.
  3. Click Calculate to see your results.

Examples

Encoding a short string

"Hello, World!" encodes to "87cURD_*#4DfTZ)+T" in Ascii85 — decoding that string back returns the exact original text.

Who should use it

  • Encoding binary data for embedding in a PostScript or PDF document.
  • Learning how PDF internally represents binary streams as text.

Industry applications

  • Document/printing systems (PostScript, PDF)
  • Software development

Advantages

  • More space-efficient than Base64.
  • Standard encoding used in PDF and PostScript internals.

Limitations

  • Less commonly supported than Base64 in general-purpose tooling.

Common mistakes to avoid

  • Assuming Base85 output is interchangeable with Base64 — they use different alphabets and aren't compatible with each other.

Best practices

  • Use Base85 when you specifically need PostScript/PDF-style binary encoding; use Base64 for general web/API use since it's far more widely supported.

Tips

  • Need broader compatibility instead? Use the Base64 Encoder and Decoder.

Frequently asked questions

No — Base85 uses a wider 85-character alphabet, so it's about 7% more space-efficient than Base64, at the cost of being less universally supported.
No — this produces the raw Ascii85 alphabet without the optional Adobe delimiters, which most non-PostScript consumers expect.

Get new calculators and guides in your inbox

No spam — just new tools like Base85 Encoder and Decoder and practical guides.

Favorites