# Base32, Base58, Base62, Base85 & Punycode Encoder / Decoder

> Convert text, hex or files to Base32, Base58Check, Base62, Base36, Ascii85, Z85, binary, Quoted-Printable, Punycode and more, with auto-detection on decode.

- URL: https://qilingtools.com/en/encoding
- Category: Developer Tools (https://qilingtools.com/en/dev)
- Tags: [Converters](https://qilingtools.com/en/tags/convert), [Developer](https://qilingtools.com/en/tags/dev), [Encoding](https://qilingtools.com/en/tags/encode)
- Last updated: 2026-10-26
- Price: Free, no sign-up
- Privacy: Runs locally in the browser; files are never uploaded

Developers run into many encodings: TOTP secrets use Base32, Bitcoin addresses use Base58Check, short links and IDs use Base62 or Base36, PDF and PostScript contain Ascii85, ZeroMQ uses Z85, email bodies are Quoted-Printable, and internationalized domain names become xn-- Punycode. This tool puts them all in one place. Enter text (as UTF-8), hex or Base64, or pick a file, and every encoding is listed at once, ready to copy. It covers Base32 (RFC 4648 standard and base32hex, padding optional), Base58 (Bitcoin alphabet) and Base58Check with a double SHA-256 checksum, Base62, Base36, Ascii85 (optionally wrapped in <~ ~>), Z85, hex, binary, octal and decimal bytes, Quoted-Printable and Base64; for text it also shows UTF-16 code units, UTF-16BE/LE bytes, UTF-32 code points, IDNA domains (xn--), raw Punycode, ROT13 and ROT47. To decode, choose the source encoding or let auto-detection try them all and rank the candidates by format signals and how much the result looks like readable text, then see the UTF-8 text and the raw bytes.

## How to use

1. Choose Encode and enter text, hex or Base64, or pick a file
2. Copy the encoding you need from the list, adjusting padding, case and other options
3. To reverse it, switch to Decode, paste the data and use auto-detect or pick the source encoding

## Features

- Base32 and Base32hex (RFC 4648)
- Base58 and Base58Check (double SHA-256 checksum)
- Base62, Base36, Ascii85 and Z85
- Hex, binary, octal and decimal bytes, Quoted-Printable
- Punycode and IDNA xn-- domain conversion
- UTF-16 / UTF-32 code units, ROT13 / ROT47
- Auto-detection ranked by likelihood
- File input, everything computed locally

## FAQ

### How is Base58 different from Base64?

Base58 drops the look-alike characters 0, O, I and l as well as + and /, leaving 58 letters and digits that are easy to copy by hand and select with a double click — Bitcoin addresses and IPFS CIDs use it. It treats the data as one big number and converts its base, writing leading zero bytes as the character 1. Base58Check appends the first 4 bytes of a double SHA-256 hash as a checksum, so a single mistyped character is detected.

### What is the difference between Ascii85 and Z85?

Both encode 4 bytes as 5 characters, which is more compact than Base64 (25% overhead instead of 33%). Ascii85 uses ASCII 33–117, abbreviates four zero bytes as z and is common in PDF and PostScript, optionally wrapped in <~ ~>. Z85 is ZeroMQ’s variant with an alphabet free of quotes and backslashes so it embeds easily in source code, but the input length must be a multiple of 4.

### How reliable is auto-detection?

Every supported encoding is tried and only successful decodes are kept, then ranked by format signals (narrower alphabets are more telling — input made only of 0s and 1s is most likely binary) and by whether the result is readable UTF-8 text. Short strings like “1111” fit several formats, so switch between the candidates or pick the source encoding yourself.

### Which domains can the Punycode converter handle?

The domain is split on dots and every label with non-ASCII characters is converted with the RFC 3492 algorithm into an xn-- label, so münchen.de becomes xn--mnchen-3ya.de. Labels are NFKC-normalized and lowercased first and full-width dots such as 。 are recognized, which is close to the UTS #46 rules browsers use, though it doesn’t perform the full disallowed-character validation.

## Related tools

- [JSON Formatter](https://qilingtools.com/en/json): Free online JSON formatter: beautify or minify, validate with the exact line and column of any error, browse a collapsible tree, sort keys and escape strings.
- [Base64 Encode/Decode](https://qilingtools.com/en/base64): Free online Base64 encoder and decoder: UTF-8 safe, optional URL-safe variant, convert text to Base64 and back in real time. Processed locally, never uploaded.
- [URL Encode/Decode](https://qilingtools.com/en/url-encode): Free online URL encoder and decoder with encodeURIComponent and encodeURI modes. Escapes Chinese, spaces and special characters. Real-time and local, no upload.
- [JWT Decoder](https://qilingtools.com/en/jwt): Free online JWT decoder: decode the header and payload of a JSON Web Token, show expiry and issued-at times, all locally without uploading the token.
- [Timestamp Converter](https://qilingtools.com/en/timestamp): Free online Unix timestamp converter: convert timestamps and dates, auto-detect seconds or milliseconds, and show local, UTC, ISO 8601 and relative time.
- [Hash / Checksum](https://qilingtools.com/en/hash): Free online hash calculator: SHA-1, SHA-256, SHA-384 and SHA-512 of text or any file through the browser crypto API. Files never leave your device.
- [UUID Generator](https://qilingtools.com/en/uuid): Free online UUID generator: create RFC 4122 UUID v4 in bulk with a cryptographic RNG. Options for uppercase, no hyphens and braces, with one-click copy.
- [Base Converter](https://qilingtools.com/en/base-convert): Free online number base converter: convert between binary, octal, decimal, hexadecimal and any base 2–36. Uses BigInt for huge integers, computed locally.
