NewAPIVerve Academy: free courses and certifications anyone can verify.Explore the Academy →

ASCII85 Encoder API

GET

Pack data into more compact ASCII text than standard Base64.

ASCII85 Encoder encodes text into Base85 strings or decodes existing ASCII85 payloads back to plain text. Each request returns the converted output with original and processed character counts, while paid plans add custom formats and compression ratios.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/ascii85encoder?text=Hello%20World
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "original_text": "Hello World",
    "encoded": "87cURD]i,\"Ebo7",
    "format": "standard",
    "original_length": 11,
    "encoded_length": 14,
    "compression_ratio": "127.27%"
  }
}

About the ASCII85 Encoder API

An ASCII85 encoder and decoder for turning text into compact base-85 encoding and back. Send a string with action set to encode and you get the Base85 output with the original and encoded lengths; send an encoded string with action set to decode and you get the plain text back. Because every 4 bytes become 5 ASCII characters, the output is about a quarter larger than the input, compared with a third for Base64.

Developers use it when working with PostScript and PDF streams, when checking what a btoa-style encoder produced, or when they need printable text that survives copy and paste between systems.

The Free plan encodes and decodes in the standard format, without delimiters. Paid plans add the format option, which wraps output in the Adobe <~ and ~> markers or strips and checks them on decode, and they return the compression_ratio field so you can see the size overhead on each request.

How it works

Encoding reads the text as UTF-8 bytes and processes them in groups of four. Each group is treated as an unsigned 32-bit number and written as five base-85 digits, using the characters ! (33) to u (117). A full group of four zero bytes is shortened to the single character z. A final group with fewer than four bytes is padded with zeros, and only n+1 characters are kept for n input bytes, so no padding appears in the output.

format controls the delimiters. standard returns the bare digits; btoa wraps them in <~ and ~>. On decode with format=btoa, input that does not start with <~ and end with ~> is rejected with a 400. Whitespace inside an encoded string is ignored, characters outside the ! to u range return an error naming the position, and a final group of a single character is rejected because it cannot hold a byte. The decoded bytes are read back as UTF-8.

original_length and encoded_length are character counts of the input and output strings. compression_ratio is the encoded length divided by the original length, as a percentage with two decimals; for ASCII input it sits near 125%, plus 4 characters when btoa delimiters are added. Because it counts characters rather than bytes, non-ASCII input shows a higher ratio. On the Free plan the format parameter is ignored, so output is always standard, and format and compression_ratio are returned as null on encode.

What people use it for

Data Encoding
Encode binary data for text-based transmission with better compression than Base64
PDF Processing
Handle ASCII85-encoded data in PDF files and PostScript documents
Data Serialization
Serialize binary data for storage in text-based formats like JSON or XML
Compression
Achieve better compression ratios for binary data in text-only protocols

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use ASCII85 Encoder

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the ASCII85 Encoder API.

Read the docs →
How many conversions does the Free plan cover?
The Free plan covers 200 conversions each month using its 200 included credits. If your volume grows, the Starter plan provides 200,000 conversions per month, which works out to about $0.15 per 1,000 calls.
Can I check the compression ratio on the Free plan?
No. The compression ratio and format fields are premium features unlocked on paid plans. Free tier requests return the original text, converted string, and character length measurements.
Does the encoder support the btoa Base85 variation?
Yes, on paid plans. ASCII85 Encoder supports both standard Base85 and the btoa format variant. You can encode plain strings into either standard or decode existing payloads back to their original form.
How does the encoder handle runs of zero bytes?
The service implements standard Base85 rules for zero-byte runs and delimiter characters. It maps every four bytes of source data into five printable ASCII characters while handling zero-value sequences cleanly.
Are custom format parameters permitted on the Free plan?
Specifying a custom format parameter is restricted to paid subscriptions. On the Free plan, requests run using default formatting, and the format field is omitted from the JSON response.

Ready to build with ASCII85 Encoder? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs