Base64 Encoder / Decoder
Encode and decode Base64 for text (UTF-8 safe) and files, with URL-safe output. Everything runs locally.
How to use
Text is encoded as UTF-8, so non-ASCII text works as-is. The URL-safe option replaces + and / with - and _ and drops the = padding. To encode a file, just pick one (10 MB cap) — you also get a ready-made data URL. To turn Base64 back into a file, paste it into the input, set the MIME type and use the download button.
Notes
Everything is processed in your browser; files are never uploaded. Decoding to text validates the result as UTF-8, so arbitrary binary data may fail with an error — use the download button for binary content instead.
FAQ
How much larger is Base64 output?
About 33%: every 3 bytes become 4 characters.
Can it decode Base64 with line breaks?
Yes, whitespace is ignored when decoding.