Encode text to Base64, handling UTF-8 correctly where the browser btoa() throws.
Base64 Decoder
Decode Base64 to text, accepting either alphabet, missing padding and wrapped lines.
- Free
- No sign-up
- Runs in your browser
Input
0 characters
Processed entirely in your browser. Nothing is uploaded.
Fill in Input to continue.
Enter your input to see the result
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Paste your text or encoded data.
- 2
The result appears below. Anything that cannot be handled is reported rather than silently dropped.
Questions about Base64 Decoder
Why does it reject some input?
Two reasons, both reported specifically. A length of 4n+1 is structurally impossible, because one Base64 character carries 6 bits and cannot complete a byte. And bytes that are not valid UTF-8 are refused rather than returned as replacement characters, which would silently corrupt the output.
Does it need the padding?
No. Missing `=` padding is inferred, either alphabet is accepted, and whitespace and line breaks are ignored - so PEM blocks and wrapped MIME both decode directly.
Is my data sent anywhere?
No. This tool runs as JavaScript inside your browser tab. There is no network request carrying your input, nothing is written to a server log, and it keeps working with your connection switched off. You can confirm it in the browser’s network panel. That matters more here than elsewhere on the site: developer tools handle tokens, keys and production data.
Does the Base64 Decoder work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Base64 Decoder keeps working with the network switched off and nothing is ever sent to a server.
Is anything I enter into the Base64 Decoder uploaded or stored?
No. The Base64 Decoder runs in your browser, so whatever you type or paste never leaves your device — there is no server round-trip, nothing is logged, and there is nothing to delete afterwards.
Related tools
Other tools you might reach for next.
Encode text to URL-safe Base64, replacing + and / and omitting padding by default.
Decode URL-safe Base64 to text, inferring missing padding and accepting either alphabet.
Format and indent JSON, with optional alphabetical key sorting and a precise syntax error when it will not parse.
Strip every byte of insignificant whitespace from JSON and report the saving.
Check that JSON is syntactically valid, report its structure, and flag duplicate keys that JSON.parse accepts silently.
Compare two JSON documents structurally, by path, distinguishing a type change from a value change.
Evaluate a JSONPath expression against a document and see every match with the path that produced it.