Ascii85 Encoder / Decoder
Convert text to and from Ascii85.
Result
How it is calculated
Encoding reads the text as bytes and takes them in groups of 4. Each group is read as one 32-bit number n = b0·256³ + b1·256² + b2·256 + b3, which is written in base 85 as five digits; each digit d becomes the character with code d + 33, so the output uses the printable characters from ! to u. A last group of r bytes (fewer than 4) is padded with zero bytes and only the first r + 1 characters are kept. Decoding reverses this: whitespace is removed, characters are read in groups of 5, and a short last group is padded with u. This tool has no <~ ~> wrapper and no z shortcut for four zero bytes; input containing them, or any character outside ! to u, returns no result. Non-ASCII letters take several bytes, so they give more characters.
Worked example
Encode Hello, World!, 13 bytes. The first group Hell is the number 1,214,606,444. In base 85 its digits are 23, 22, 66, 52, 49; adding 33 gives the characters 87cUR. The next groups o, W and orld are converted the same way, and the final single byte ! gives two characters. The full result is 87cURD_*#4DfTZ)+T, 18 characters for 13 bytes. Switching the mode to decode and pasting the result returns Hello, World!.
Common mistakes
- Pasting Ascii85 with the
<~and~>markers from a PDF or PostScript file; this tool does not strip them, so remove them first. - Expecting the
zabbreviation for four zero bytes. It is not produced when encoding and is not accepted when decoding. - Leaving the mode on encode when the text is already Ascii85. It is then encoded a second time, giving longer, different text.
- Copying only part of an encoded string. A missing character changes the group alignment, and the output is garbled or empty.
- Treating Ascii85 as encryption. It is only a reversible encoding that anyone can decode.
About this calculator
This calculator encodes text to Ascii85 (base85) or decodes it back, using the scheme that packs every 4 bytes of binary data into 5 printable ASCII characters — more space-efficient than Base64's 4-for-3 ratio, at the cost of a wider character set.
Developers working with PDF and PostScript files, where Ascii85 is a native filter, and anyone needing compact text-safe binary encoding, use it to embed binary data in text-only formats.
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
- Loan Calculator
- Profit Calculator
- Discount Calculator
- BMI Calculator
- Percentage Calculator
- Ideal Weight Calculator
- Age Calculator
- Pregnancy Due Date Calculator
- Compound Interest Calculator
- BMR Calculator (Basal Metabolic Rate)
- Tip Calculator
- Fuel Cost Calculator
- Date Difference Calculator
- Sleep Cycle Calculator
- Daily Water Intake Calculator
- Simple Interest Calculator
- Heart Rate Zones Calculator
- Running Pace Calculator
- Pet Age Calculator
- Calories Burned Calculator
- Macro Calculator
- TDEE Calculator (Total Daily Energy Expenditure)
- Waist-to-Hip Ratio Calculator
- Honor Roll Calculator
- One Rep Max (1RM) Calculator
- Ovulation Calculator
- Electricity Cost Calculator
- Unit Price Calculator
- Savings Goal Calculator
- Break-Even Point Calculator
- Paint Calculator
- Course Grade Average Calculator
- Business Days Calculator
- Time Duration Calculator
- Fuel Economy Calculator
- Temperature Converter
- Tile Calculator
- Aspect Ratio Calculator
- Roman Numeral Converter
- Goal Weight Timeline Calculator
- Salary Converter (Hourly to Annual)
- Credit Card Validator (Luhn)
- Body Surface Area (BSA) Calculator
- Feels-Like Temperature Calculator
- Ohm’s Law Calculator
- PPI (Pixel Density) Calculator
- Molar Mass Calculator
- Zodiac Sign Calculator (Western + Chinese)
- IBAN Validator
- Shoe Size Converter
- Country Info & Dialing Code Lookup
- Time Zone Difference (World Clock)
- CAGR (Compound Annual Growth Rate) Calculator
- Rule of 72 Calculator
- Blood Alcohol Content (BAC) Calculator
- Lean Body Mass (LBM) Calculator
- Pythagorean Theorem Calculator
- Speed Converter
- Download Time Calculator
- Date Calculator (Add/Subtract)
No calculators found
Comments (1)
As a size check, the 13-byte string Hello, World! becomes 18 characters here, about a quarter longer than the input, whereas Base64 would need 20. The saving is real but modest, and the output uses punctuation that can break in URLs, JSON or shell strings. This tool writes plain groups only, with no delimiter markers or shortcut for zero bytes. Which Ascii85 variant do you work with?