Z85 Encoder/Decoder (ZeroMQ)
Encode and decode data in Z85, the ZeroMQ flavor of Base85 that uses an alphabet safe for strings and configuration files.
Z85
—
Z85: the base85 ZeroMQ picked
Z85 encodes four bytes into five characters, like any base85, but with a hand-picked alphabet: it avoids the single quote, the double quote, the backslash and the backtick. The reason is practical — the resulting text can be pasted inside a string literal in practically any language, into a configuration file and onto a command line without needing escapes.
Type the text and get the encoding. One restriction comes from the specification: the byte length must be a multiple of four. Unlike Ascii85, Z85 defines no padding for an incomplete final group, and the page refuses rather than inventing one. Anyone encoding arbitrary lengths has to agree padding out of band, together with whatever will decode it.
Its best-known use is CurveZMQ, ZeroMQ's security mechanism, where 32-byte keys become 40 characters — a multiple of four by construction, which explains why the limitation never bothered anyone in its home context. The implementation was checked against the specification vector: bytes 86 4F D2 6F B5 59 F7 5B encode exactly to HelloWorld.
Frequently asked questions
Why must the length be a multiple of four?
How does it differ from Ascii85?
Does it work for arbitrary binary data?
Related Tools
JSONP to JSON Converter
Strips the callback wrapper of a JSONP response leaving only the JSON contained inside the parentheses.
CSV to YAML List Converter
Convert a CSV with a header into a YAML list of objects, preserving numbers and booleans. Useful for building config files and fixtures from spreadsheets.
Markdown ↔ WhatsApp Formatter
Converts Markdown into WhatsApp formatting (*bold*, _italic_, ~strikethrough~) and back, keeping lists, links and code blocks intact.
Lux to EV Converter
Convert illuminance measured in lux to the exposure value (EV) at ISO 100. Useful for photographers to set aperture and shutter from a light meter.
Cups to Grams (Sugar)
Convert cups of granulated sugar to grams instantly (1 cup ≈ 200 g). Nail your cake and dessert recipes even without a kitchen scale.
Emoji Shortcode Converter
Convert between shortcodes (`:smile:`, `:heart:`, `:rocket:`) and Unicode emojis (😄 ❤️ 🚀). Both directions, covering the most-used Slack, Discord and GitHub shortcodes. Everything in your browser.