Base64 Encoder & Decoder
UTF-8-correct Base64, both directions.
Runs on your device
At a glance
- Input:
- Text / data you paste
- Processing:
- Runs locally in your browser
- Privacy:
- Your files stay on your device — nothing is uploaded to a server
About this tool
Bidirectional Base64 with correct UTF-8 handling, whitespace-tolerant decoding and optional URL-safe alphabet.
How to use it
- Paste text or Base64.
- Direction auto-detects; override if needed.
- Copy the converted output.
Frequently asked questions
Why do some tools break on emoji?
Naive btoa(unicode) throws on characters outside Latin-1. This tool encodes via UTF-8 first, so 🚀 and CJK text round-trip perfectly.
What's URL-safe Base64?
A variant using - and _ instead of + and / so encoded values survive inside URLs without extra escaping. Toggle it for JWT-style payloads.
Is Base64 encryption?
No — it's transparent encoding, not security. Never use it to protect secrets.