Encode and decode Base64 in your browser
Two panes, one conversion. The encoder treats input as UTF-8 bytes rather than Latin-1, which is where most browser-console one-liners break on non-English text.
- Files never leave your device
- No account, no queue
- Works offline
- No upload step
How it works
- 1
Choose a direction
Encode turns text into Base64; Decode reverses it. Line breaks and missing padding in pasted Base64 are tolerated.
- 2
Paste your text
The result appears as you type. Non-ASCII characters, emoji and files’ worth of text all work.
- 3
Copy or download
Everything runs locally — Base64 is reversible, but it is not encryption, and nothing leaves the tab.
Frequently asked questions
Does Base64 encrypt anything?
No. Base64 is an encoding, not encryption: anyone can decode it instantly. Use it to move binary data through text channels, never to protect a secret.
Why does Base64 make text about a third bigger?
Every 3 bytes become 4 characters, so the output is 4/3 of the input plus padding. That is inherent to the encoding — there is nothing to tune.
What is URL-safe Base64?
Standard Base64 uses + and /, which have meaning inside URLs and filenames. The URL-safe variant (RFC 4648 §5) swaps them for - and _ and usually drops the = padding. JWTs use this form, which is why decoding one here works without changes.
Why do emoji come out as questions marks elsewhere?
Because btoa() only handles Latin-1: it throws or mangles anything outside it. This tool converts the text to UTF-8 bytes first, then encodes those, which is the correct approach for any real-world text.
Can I decode a Base64 image or PDF?
You can paste it, but the result is binary, not text, so the tool refuses with a clear message instead of showing mojibake. Use a base64-to-file converter for that — it is a different operation.
Other tools
JSON formatter
Format, minify and validate JSON as you type, with the exact error position when it is malformed.
CSV to JSON
Turn a CSV export into a JSON array of objects — quoted fields, embedded commas and CRLF included.
JSON to CSV
Export an array of objects or arrays as CSV, with correct quoting for commas, quotes and newlines.