Encode Ascii85

Encode binary data as Adobe ASCII85 text for printable transport.

freeworks offlinenothing uploaded
ToolAscii85 Encoder
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

Four bytes become five base-85 characters, with z abbreviating four zero bytes; decoding reverses the base-85 accumulation. A final partial block is padded for encoding and truncated after decoding.

  • The five-character expansion carries binary through printable ASCII.
  • z shortens runs of zero bytes in PostScript-style streams.

Worked example

Encode "Man " with the Adobe delimiters
The standard test vector for this format
Input
											Text: Man 
Mode: encode
Variant: adobe
										
Output
												<~9jqo^~>
											

When to use this

PDF streams, PostScript resources, and binary debugging use ASCII85.

Edge cases

  • A short final block requires padding and truncation.
  • z is valid only for four zero bytes.
  • Decoder whitespace may be ignored even though it is outside the alphabet.

References