Base64 Encoder and Decoder
Encode text to Base64 or decode it, with correct UTF-8 handling for accents and emoji. You can also turn a small file into Base64 or a data URI.
Processed in your browser. Nothing you paste is sent to a server.
How to use this tool
- Choose encode or decode and whether to use the URL-safe alphabet.
- Paste text, or use "Encode a file" for a file up to 10 MB.
- Copy or download the result.
How it works
Text is converted to UTF-8 bytes, then to Base64 (RFC 4648). URL-safe mode uses - and _ instead of + and / and drops padding. Decoding accepts either alphabet, with or without padding, and reports input that is not valid Base64 or not valid UTF-8 text.
Limitations
- Base64 is an encoding, not encryption: anyone can decode it.
- Files are limited to 10 MB because the result is about a third larger and kept in memory.
Privacy and data
Everything happens in your browser. What you paste or open is never sent to our server, logged or stored, and the page works offline once loaded.