Tool guide
About this tool.
- Base-N encodings write arbitrary bytes using a limited alphabet so they survive text-only channels. Base64 is the best known; this tool covers its less common relatives: Base32, Base32hex, Base58, Base45 and Ascii85.
- Text is converted to UTF-8 bytes first, and decoding turns the bytes back into UTF-8 text. Everything runs locally in your browser or editor.
- Base32 (RFC 4648) uses A-Z and 2-7 with = padding; it is case-insensitive, which suits TOTP secrets and file names.
- Base32hex keeps the same layout with the alphabet 0-9 and A-V so encoded values sort like the bytes they hold.
- Base58 (Bitcoin alphabet) drops 0, O, I and l to avoid look-alike characters; it is used for addresses and short ids.
- Base45 (RFC 9285) is designed for QR codes in alphanumeric mode, as in EU digital COVID certificates.
- Ascii85 packs four bytes into five characters, so it is about 25 percent larger than the input instead of 33 percent.
Pick a base, choose Encode or Decode, then paste your text.
Encode converts the text to UTF-8 bytes and writes them in the selected alphabet. Base32 output is padded with = characters.
Decode accepts Base32 in lower or upper case with or without padding, and ignores whitespace in Base32, Base58 and Ascii85. Ascii85 input may be wrapped in <~ and ~>, and may use z for four zero bytes.
Any other invalid character is reported with its 1-based position, and bytes that are not valid UTF-8 text are reported as an error instead of being shown as garbled characters.
- Base32: foobar → MZXW6YTBOI======
- Base32hex: foobar → CPNMUOJ1E8======
- Base58: Hello World! → 2NEpo7TZRRrLZSi2U
- Base45: Hello!! → %69 VD92EX0
- Ascii85: Hello, World → 87cURD_*#4DfTZ)
- Text is encoded as UTF-8. Decoding fails with "Decoded bytes are not valid UTF-8 text." when the bytes are not text.
- Input is limited to 1,000,000 bytes or UTF-16 units. Base58 is limited to 10,000 bytes (14,000 characters when decoding) because its conversion is quadratic.
- Base32 and Base32hex are padded with = on encode; decode accepts missing padding and lower case.
- Base32 decoding is lenient: it does not check the padding count and ignores non-zero trailing bits, so two different texts can decode to the same bytes.
- Base45 is case-sensitive and the space character is part of its alphabet, so spaces are never ignored. A trailing line break is ignored when decoding.
- Ascii85 uses the Adobe variant without the <~ ~> wrappers on encode; decode accepts the wrappers and ignores whitespace.