Base64 Decoder
Decodes standard or URL-safe Base64 back to text, and shows binary payloads as hex rather than as damaged text.
Loading the tool…
How to use this tool
- Paste the Base64. Line breaks, missing padding and the URL-safe variant are all handled.
- Select Decode.
- If the result comes back as hex, the payload is binary rather than text — that is a file, not a string.
What base64 decoder does
Both variants are accepted without you having to say which you have: URL-safe input using - and _ is converted before decoding, and missing padding is added back. Whitespace and line breaks are ignored, so a Base64 block wrapped at 76 characters — as it is inside an email or a PEM file — can be pasted straight in.
Not every Base64 string is text. If the decoded bytes are not valid UTF-8 the result is shown as hexadecimal rather than as a screen of replacement characters, and the summary says so. That is the honest answer for an image, an archive or an encrypted payload, and it tells you something useful: what you have is not a string that somebody encoded, it is a file.