Data
Base64 encode / decode
Encode or decode text in Base64.
Everything runs in your browser. No file is ever uploaded to a server.
- 1Paste or type your text into the input box.
- 2Click "Encode → Base64" to convert it, or "Decode Base64 → text" to reverse an existing Base64 string.
- 3Check the result box that appears below, and use the copy icon to grab the output.
- 4If decoding fails, the error message tells you the input wasn't valid Base64. Fix it and try again.
What can I actually use Base64 encoding for?+
Base64 turns arbitrary text into a safe, ASCII-only string, handy for embedding data in JSON payloads, URLs, HTML data-URIs, or config files where raw special characters would break the format. Decoding does the reverse, turning that ASCII string back into your original text.
Will accented letters, emoji, or non-Latin scripts survive the round trip?+
Yes. The encoder first converts your text to UTF-8 before Base64-encoding it, so characters like ñ, é, 中文, or 🎉 come back exactly as you typed them after decoding. A plain btoa() call would mangle them.
Does my text get uploaded anywhere while I use this?+
No. Encoding and decoding both happen with JavaScript running in your browser tab, and nothing is sent to a server, so you can paste sensitive strings like API keys or tokens without them leaving your device.