Base-family Auto-Decoder

Decode and encode Base16, 32, 36, 45, 58, 62, 64, 85, 91, 92 and Base100. Finds the alphabet, ranks the readings and peels stacked base layers. Runs in your browser.

Base16 to Base100
Ranked alphabets
Stacked layers
Base-family Auto-Decoder
Mode
Input

Text only, up to 1,000,000 characters.

Try a sample:

🔒 Everything you paste is decoded in your browser by this tool's own code, in a background worker. It does not intentionally transmit it or include it in analytics events. Third-party scripts elsewhere on the page are outside this tool's processing boundary.

How to use the base-family decoder (5 steps)

  1. Paste the string: On the Input tab paste one encoded string (up to 1,000,000 characters), or switch to Batch and paste up to 20 strings, one per line. The decode starts on its own after you stop typing.
  2. Read the result: If one alphabet fits, the Result tab shows one decoded layer. If several alphabets accept the same text, they are listed ranked, highest-scoring first, with the printable share, a flag check and the entropy beside each, so you can see why one outranks another.
  3. Follow a different reading: If the top reading is not the one you want, press Use this one on another row and the later layers are worked out from it.
  4. Peel the layers: The decoder re-checks every output and keeps going while the next layer reads better than the current one, up to 8 layers. It stops at a flag pattern, at readable text, or at something that is not base-N.
  5. Convert, encode or hand on: Under any layer, Convert this output to another scheme re-encodes it in one step. Switch to Encode to turn typed text into a named variant. You can also copy or download any layer, export the chain as JSON, or send the output on from Next steps.

Which Base Is This? Why One String Has Several Readings

A string such as 37hVzfpc3VsevFnFJLTBW7995oXLhSnQ is valid in more than one alphabet. Base58 (Bitcoin) leaves out the characters 0, O, I and l, so everything it uses also appears in Base62 and, with no padding, in Base64. Decoding it with the wrong alphabet does not fail: it produces bytes that look like noise. That is why this tool decodes the text in every alphabet that accepts it and ranks the results by how readable they are, instead of taking the first match.

The same applies to alphabets that share a name. This tool supports three Base58 alphabets (Bitcoin, Flickr and Ripple) and three Base85 variants (Ascii85, RFC 1924 and Z85). Each variant maps the same input bytes to different encoded text, so a decoder that supports only one variant cannot read a string produced with another.

How the Ranking Works

Each reading is scored from three parts that stay visible in the table: the share of the output that is readable text (valid UTF-8 without control characters, or printable ASCII), whether a flag-shaped pattern appears, and the Shannon entropy of the bytes. The score is 60 points for the printable share, 25 for a flag pattern and up to 15 for low entropy, all scaled down for outputs shorter than 4 bytes; a verified Base58Check checksum adds 40 and puts that reading first. Entropy is only a descriptive measure of the decoded bytes: here a lower value earns a small tie-breaking bonus, but high entropy does not mean a wrong alphabet (compressed or encrypted data is high entropy and may be exactly what you want), and none of the three signals proves which encoding was used. The score is only a way to order the readings. Display filtering is a separate step that runs first: a Base85, Base91 or Base92 reading must pass the rule below before it is shown at all, and the score then orders the readings that qualify. A readable result is evidence that you have the right alphabet, not proof, because a short or low-entropy string can be valid in several alphabets by chance.

Base85, Base91 and Base92 use most of the printable characters, so almost any text decodes in them. To keep them from burying a clear answer, they are only listed when their output is at least 4 bytes long and either at least 90% printable text or carries a flag pattern. Under every layer, Other schemes that were tried shows what was left out and why.

Stacked Layers and Where the Chain Stops

Some challenges wrap a flag in several base layers. After each decode the output is checked again, and the chain continues only while the next reading is more plausible than the current output. A flag-shaped value ends the chain, readable prose ends it, and so does the 8-layer limit. When an output looks like something other than base-N (a gzip or zlib header, Morse code, URL escapes, or text that becomes a flag under ROT13) the chain stops and offers to continue in the Encoding Auto-Decoder. This tool does not try to decode those itself.

Encoding to a Named Variant

Encode mode turns the text you type into any of the 19 schemes and variants, exactly as typed. For Base32, Base58 and Base85 you must pick a variant before anything is produced: each of these families has several alphabets (four for Base32, three for Base58, three for Base85) that give different encoded text for the same input bytes, so the tool does not choose one silently and there is no safe default. To change an existing string from one base to another, decode it, then use Convert this output to another scheme under the layer: it encodes the layer’s real bytes, so binary output converts exactly. Z85 only encodes whole 4-byte blocks and has no padding in its specification, so the tool refuses other lengths with a message. Base58Check (Bitcoin addresses and WIF keys) adds and verifies a 4-byte double-SHA-256 checksum; a string that passes the checksum is ranked above every readable-text reading, because a random string passes only about once in four billion tries.

Schemes and Variants

The 19 schemes and variants this tool reads and writes. “Offered” says when a valid decode is shown: always for a specific alphabet, and, for a dense one, only when its output is at least 4 bytes and is at least 90% printable text or carries a flag pattern.

SchemeAlphabetOffered
Base16 (hex)0–9 A–F (case-insensitive)Whenever it decodes
Base32 — RFC 4648A–Z 2–7, “=” paddingWhenever it decodes
Base32 — Extended Hex0–9 A–V, “=” paddingWhenever it decodes
Base32 — Crockford0–9 A–Z without I L O U (case-insensitive, optional check symbol)Whenever it decodes
Base32 — z-base-32ybndrfg8ejkmcpqxot1uwisza345h769 (lowercase)Whenever it decodes
Base360–9 a–z (case-insensitive)Whenever it decodes
Base45 — RFC 92850–9 A–Z space $ % * + - . / :Whenever it decodes
Base58 — Bitcoinno 0 O I l, digits then upper then lowerWhenever it decodes
Base58 — Flickrsame 58 symbols, lowercase before uppercaseWhenever it decodes
Base58 — Ripplerpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyzWhenever it decodes
Base58Check (Bitcoin address, WIF)Bitcoin Base58 alphabet + a 4-byte double-SHA-256 checksumWhenever it decodes
Base620–9 A–Z a–zWhenever it decodes
Base64 (standard / URL-safe)A–Z a–z 0–9 + / or - _, “=” padding optionalWhenever it decodes
Base85 — Ascii85 (Adobe)! to u, “z” = four zero bytes, optional <~ ~>Only when the output is at least 4 bytes and at least 90% printable text, or carries a flag pattern
Base85 — RFC 1924 (Python b85)0–9 A–Z a–z and !#$%&()*+-;<=>?@^_`{|}~Only when the output is at least 4 bytes and at least 90% printable text, or carries a flag pattern
Base85 — Z85 (ZeroMQ)0–9 a–z A–Z and .-:+=^!/*?&<>()[]{}@%$#, length multiple of 5Only when the output is at least 4 bytes and at least 90% printable text, or carries a flag pattern
Base91 (basE91)A–Z a–z 0–9 and !#$%&()*+,./:;<=>?@[]^_`{|}~"Only when the output is at least 4 bytes and at least 90% printable text, or carries a flag pattern
Base92! # to _ a to }, “~” = emptyOnly when the output is at least 4 bytes and at least 90% printable text, or carries a flag pattern
Base100 (emoji)one four-byte emoji per byteWhenever it decodes

Limits

LimitValue
Input length1,000,000 characters
Stacked layers8
Batch size20 strings
Dense schemes offered whenthe output is at least 4 bytes and at least 90% printable text, or carries a flag pattern

Examples

Input: One clear answer: Base64: ZmxhZ3tiNHNlX2Y0bTFseV90cjRja30=

Result: Only the Base64 reading applies, so exactly one decoded layer is shown and no ranking. · Output: flag{b4se_f4m1ly_tr4ck}

Meaning: The text contains a padding sign and a mix of letters and digits that rule out the narrower alphabets, and the output is readable and flag-shaped.

Input: Several valid readings: Base58 or Base62: 37hVzfpc3VsevFnFJLTBW7995oXLhSnQ

Result: Readings shown, best first: Base58 — Bitcoin, Base58 — Ripple, Base62, Base58 — Flickr, Base64 (standard / URL-safe), Base36, Base32 — Crockford. · Base58 — Bitcoin decodes to flag{b4se_f4m1ly_tr4ck} and ranks first. · The Base62 reading of the same text is 24 bytes of non-printable data and ranks lower.

Meaning: Both are valid decodes. Only one reads as text, which is the evidence for choosing it.

Input: Two stacked layers: MzdoVnpmcGMzVnNldkZuRkpMVEJXNzk5NW9YTGhTblE=

Result: Layers found: Base64 (standard / URL-safe) → Base58 — Bitcoin. · Final output: flag{b4se_f4m1ly_tr4ck} · Stopped because: A flag-shaped value was found, so the chain stops here.

Meaning: The first layer is Base64 text that is itself a Base58 string; the chain peels both and stops at the flag.

Input: Same input, different Base58 alphabets: flag{b4se_f4m1ly_tr4ck} encoded as Base58

Result: Bitcoin: 37hVzfpc3VsevFnFJLTBW7995oXLhSnQ · Flickr: 37GuZEPB3uSDVfMfiksbv7995NwkGrMp · Ripple: sf6VzCFcsV1evE8EJLTBWf99noXL6S8Q

Meaning: The three alphabets map the same 58 symbols to different values, so the encoded text differs. This is why Encode makes you choose.

Input: Base85 variants: flag{b4se_f4m1ly_tr4ck} encoded as Base85

Result: Ascii85: Ao(mgHX\gQARB%+D)#jP?Z^<F@r$J · RFC 1924: W^7?+dtx+mWnX4AZ82<lUvzRbV{3f · Z85 needs whole 4-byte blocks; 23 bytes is not a multiple of 4, so it is refused.

Meaning: Base85 is a family of alphabets that share a name, not one encoding.

Input: Leading zero bytes: the bytes 00 00 68 69 encoded as Base58 Bitcoin

Result: Base58 Bitcoin: 118wr

Meaning: Each leading zero byte becomes one leading first-alphabet character (1 in Bitcoin Base58) and is restored when decoding. The same rule is applied to Base36 and Base62.

How it works

Clean the text

For every scheme except Base45, all whitespace (spaces, tabs, line breaks and non-breaking spaces) is removed before decoding. Base45 has the space in its alphabet, so its spaces are data: a space at the start or inside the text is never removed (1,456 of the 65,536 possible two-byte values encode to text that starts with a space), and a note under the reading says when leading spaces were kept. Whitespace at the end of the text is trimmed because no valid Base45 text ends with a space, and a leading tab or line break is trimmed because it is not in the alphabet; a tab, line break or non-breaking space inside is rejected as not in the alphabet. Ascii85’s optional <~ and ~> markers are removed.

Decode in every alphabet that accepts it

Each decoder is strict: a character outside the alphabet, an impossible length, non-zero unused bits, a Base45 or Base85 group that overflows, or wrong padding is reported with a reason and the scheme is dropped.

Score and rank

The printable share, flag check and entropy of each output give it a score. Narrow alphabets are always listed. Base85, Base91 and Base92 are shown only when their output is at least 4 bytes long and either at least 90% printable or contains a flag pattern; that display rule runs before scoring.

Follow the chain

The top-ranked reading is followed while the next layer reads better than the current output, up to 8 layers, and checked for flag patterns at every layer.

Big numbers, exactly

Base36, Base58 and Base62 convert through arbitrary-precision integers (BigInt), not floating point, with a divide-and-conquer combine step so long inputs stay fast.

What the results mean

ResultWhat it meansWhat to do
One layer, one readingOnly one reading is shown. Other schemes may also have accepted the text but were not offered, for example a Base85, Base91 or Base92 result that did not meet the display rule.Open Other schemes that were tried under the layer to see what was left out and why, then read the output. If it is not what you expected, the string may not be base-N at all.
Ranked readingsMore than one alphabet accepted the text. They are ordered by readability.Check the printable, flag and entropy columns. Use this one follows another reading.
Flag pattern foundA flag-shaped value (flag{…}, CTF{…} and similar) appears in a layer’s output.Treat it as a pattern match and check it against the challenge.
Binary outputThe decoded bytes are not valid text.Open them in the Hex Viewer, or continue in the Encoding Auto-Decoder if they look like gzip or zlib.
Not base-N from hereThe output looks like another encoding (a gzip or zlib header, Morse, URL escapes, ROT13).Press Continue in Encoding Auto-Decoder.
No base-N scheme fitsNo alphabet in this tool decodes the text.Try the Encoding Auto-Decoder, which also handles hex, URL, HTML and ciphers.

Limitations

  • A successful decode is evidence, not proof. A short or low-entropy string can be valid in several alphabets by chance, and the ranking is a heuristic that orders them.
  • Text only: 1,000,000 characters at most. This tool does not read files or images.
  • Only base-N schemes. Hex is included as Base16; ROT13, Morse, URL encoding and compression are for the Encoding Auto-Decoder.
  • Decoders are strict. Text with a stray character, a wrong length or non-zero unused bits is rejected, not repaired, so a string damaged by copy-and-paste may need cleaning first.
  • Base32 (RFC 4648 and Extended Hex) is read in upper case and z-base-32 in lower case; Crockford is case-insensitive. Crockford’s optional check symbol (the value mod 37) is read when the length shows one is present: a match is reported as verified, a mismatch still decodes and is labelled, and a text with no check symbol is labelled unverified. A last character that is only a check symbol (* ~ $ = U) counts only when it verifies, because Base64 padding ends in “=”.
  • Z85 encodes whole 4-byte blocks only, because its specification defines no padding.
  • Dense schemes (Base85, Base91, Base92) are offered only when the output is at least 4 bytes long and at least 90% printable text, or carries a flag pattern (the flag pattern is the only exception to the printable share, not to the 4-byte minimum), so a very short Base85 string may need the Other schemes list.
  • Encode mode encodes the characters you type, exactly as typed. To change one base into another, decode first and use Convert this output under the layer.
  • Base58Check checks the checksum only. It does not say whether an address exists or has been used, and it shows the first (version) byte without interpreting it.
  • Arbitrary user-supplied alphabets, OCR from images and an emoji image preview are not included.

Privacy

The strings you paste and the text you encode are processed locally by this tool, in a background worker in your browser. The tool does not intentionally transmit them or include them in analytics events: what you type is never put in the page address, analytics events carry feature names only (such as decode or encode), and results are rendered as plain text, never as HTML. This statement is about this tool's own code; it does not cover third-party scripts, and a browser page cannot fully prevent other scripts on the same page from reading it. Optional analytics and advertising scripts load only after you accept optional cookies. If you use Send to another tool, the decoded output is stored in your browser's IndexedDB so the next page can read it; it is not sent to a server, the next page ignores it after 30 minutes and a newer transfer replaces it. Deleting it when you close the tab is not guaranteed. Only your pinned result tabs are remembered in localStorage, never an input or a result. Reloading the page restores nothing.

Frequently Asked Questions

What is the difference between Base85 and Ascii85?

Ascii85 is one of three Base85 alphabets. The others are the RFC 1924 alphabet (the one Python’s b85 functions use) and Z85 from ZeroMQ. They share a name but map symbols to values differently, so the same input encodes to different text and decoding with the wrong one gives noise. This tool decodes against all three and ranks the readings.

I decoded this as Base58 and got garbage. What went wrong?

There is more than one Base58 alphabet in use: Bitcoin, Flickr and Ripple. The same text decodes differently under each, and a Base58 string is also valid Base62. Paste it here and the tool shows every alphabet that accepts it, ranked by how readable the output is.

What is Base100, the emoji encoding?

Base100 maps each byte to one emoji symbol. In this tool each emoji is four bytes in UTF-8, so a message becomes a string of emoji. It shows up in some CTF and obfuscation challenges precisely because it does not look like ciphertext. This tool reads and writes it.

How do I decode a Base58 string?

Paste it on the Input tab. The tool tries the Bitcoin, Flickr and Ripple alphabets and ranks the readings by readability and its other scoring signals; readings are not promised to be readable. If the output is a Base64 or another base string, it keeps peeling layers.

How do I decode Ascii85 or Base85?

Paste the text, with or without the <~ ~> markers. Ascii85, RFC 1924 and Z85 are all tried. Because Base85 accepts many printable strings, a reading is offered only when its output is at least 4 bytes long and at least 90% printable text, or carries a flag pattern.

What is Base45?

Base45 (RFC 9285) encodes each two-byte group as three characters from a 45-character alphabet that includes the space; a final single byte is encoded as two characters. It is a general-purpose encoding, best known from the EU digital COVID certificate QR codes, whose text is Base45 of compressed, signed data: decoding that Base45 layer gives compressed binary, not readable text. The space in the alphabet is why this tool keeps spaces when it reads Base45. It decodes and encodes it.

Can it decode several layers of base encoding?

Yes, up to 8 layers. After each decode the output is checked again, and the chain continues while the next reading is more plausible. It stops at a flag pattern, at readable text, or when the output looks like a different kind of encoding, and then offers the Encoding Auto-Decoder.

Does it prove which alphabet the author used?

No. It shows which alphabets accept the text and ranks them by readability. A readable output is strong evidence, but a short string can be valid in several alphabets by chance, so check the result against the challenge.

Is my text sent anywhere?

No. Decoding and encoding run in a background worker in your browser. This tool does not intentionally transmit your text or put it in analytics events. If you send a result to another tool, it is stored in your browser’s IndexedDB for that page to read and is not sent to a server.

Can I convert Base64 into Base85 or Base58?

Yes. Paste the Base64 string in Decode mode, then open Convert this output to another scheme under the layer, choose the variant and press Convert. It re-encodes the decoded bytes. Encode mode is different: it encodes the characters you type exactly as typed, so encoding a Base64 string there gives the Base85 of that Base64 text, not of what it decodes to.

Does it verify a Bitcoin address?

It checks the Base58Check checksum: the last four bytes must equal the first four bytes of the double SHA-256 of the rest. A string that passes is shown as Base58Check with the version byte and ranked first. A pass is strong evidence of a valid Base58Check payload (for a random string the chance of matching a 4-byte checksum is about 1 in 2³², roughly one in 4.3 billion), not proof of a Bitcoin address or WIF key. It does not tell you whether the address exists, has been used or belongs to a particular network.

What does it do that the Encoding Auto-Decoder does not?

The Encoding Auto-Decoder handles a wider range of encodings and transformations, with one alphabet per base. This tool focuses on the base-N family and supports the 19 schemes and variants listed above, including the named variants of Base32, Base58 and Base85, plus Base36, Base45, Base62, Base91, Base92, Base100 and Base58Check, with ranking between alphabets, stacked layers and an encode direction.