Developer
Base64 Encode / Decode
Encode or decode Base64, for text or for any file. File mode produces a data URI you can paste straight into CSS or HTML.
Runs entirely in your browser
Loading tool…
How it works
- 01Choose encode or decode and paste your text.
- 02Or drop a file to get a data URI you can paste into CSS or HTML.
Questions
- Are my files uploaded anywhere?
- No. The file is read from your disk by the browser and processed in this tab using JavaScript and WebAssembly. Nothing is transmitted, which you can verify by opening your browser's network panel or by disconnecting from the internet — the tool keeps working.
- Does this handle emoji and accented characters?
- Yes. Text is converted to UTF-8 bytes before encoding, which the browser's built-in btoa cannot do — it throws on anything above U+00FF, so "café" alone breaks a naive implementation.
- Why is my Base64 file bigger than the original?
- Base64 represents three bytes as four characters, so output is always about 33% larger. That is inherent to the encoding, not a flaw.