ASCII85 encoder and decoder
ASCII85 is the Base85 variant used in PostScript and PDF. It
encodes every four bytes as five characters in the range ! to u, wraps the
stream in <~ and ~> delimiters, and uses a single z as shorthand for an
all-zero 4-byte group. Partial final groups are handled with the standard
n-bytes-to-(n+1)-characters rule.
Choose encode or decode, paste your input — the decoder tolerates missing delimiters and stray whitespace — and the result appears instantly, entirely in your browser.