Base64 Text Encoder/Decoder
Encode and decode text to and from base64 with Unicode support.
How to use this tool
- Type (or paste) text.
- Choose encode or decode direction.
- Copy the result.
How it works
Text is UTF-8-encoded then base64-mapped (or the reverse), using the browser's TextEncoder/TextDecoder with manual base64 mapping for Unicode safety.
Tips
- Base64 adds ~33% size — fine for snippets, wasteful for large files.
- A trailing '=' pads incomplete blocks; most decoders accept it.
Limitations
Invalid base64 strings fail with a clear message.
Frequently asked questions
Why encode text in base64?
To embed text in HTML, JSON or email safely, or to pass binary-like data through text channels.
Does it support Unicode?
Yes — UTF-8 is used, so emoji and non-Latin scripts encode correctly.
Is it an encryption?
No — base64 is encoding, trivially reversible. Never use it to hide secrets.