Base64 decoder
Turn a Base64 string back into readable text. The decoder accepts both the standard and URL-safe alphabets, fixes missing padding for you, and decodes the bytes as UTF-8 — useful for inspecting JWT payloads, data URIs, config values and email headers.
How it works
First the tool normalises the input: URL-safe characters - and _ are
converted back to + and /, and any missing = padding is restored so the
length is a multiple of 4. It then uses the browser’s built-in atob to turn
each group of 4 characters into 3 bytes, and decodes those bytes with a strict
UTF-8 decoder. If the bytes are not valid UTF-8, or the length is malformed, it
reports an error rather than returning garbage.
Example
Decoding SGVsbG8sIEdlcmEgVG9vbHMh:
SGVsbG8sIEdlcmEgVG9vbHMh→Hello, Gera Tools!
| Base64 | Decoded text |
|---|---|
R2VyYQ== | Gera |
SGk= | Hi |
To encode in the first place, use the Base64 encoder. All decoding happens locally in your browser — nothing is uploaded.