Last updated: October 2026
Base64 encoder decoder online free — Unicode-safe
Short answer: paste text above and click the button to get Base64 — or switch to Decode to reverse it. Emoji and non-Latin scripts encode correctly, and URL-safe mode makes output link-friendly. No signup, nothing leaves your browser.
Why Unicode-safe matters
Many online Base64 tools use the browser's btoa() directly on text, which corrupts anything outside basic Latin — emoji become garbage, Chinese/Arabic/Urdu text breaks. This tool encodes text as UTF-8 bytes first, so every script round-trips perfectly. If another tool mangled your text, paste its output here in Decode mode — if the bytes are valid UTF-8 you'll get your text back.
Standard vs URL-safe Base64
Standard Base64 uses +, / and = padding — all of which have special meaning inside URLs. URL-safe mode swaps +→-, /→_ and drops the padding, so the output can go straight into a query string, JWT-style token or filename. Decoding auto-detects both variants.
Frequently asked questions
How do I encode text to Base64?
Paste your text into the box above, make sure Encode is selected, and click the button. The encoder is Unicode-safe, so emoji and non-Latin scripts encode correctly.
How do I decode Base64?
Switch the mode to Decode, paste the Base64 string, and click the button. Invalid input gets a clear error instead of garbage output.
What is URL-safe Base64?
Standard Base64 uses + / and = which have special meaning in URLs. URL-safe mode swaps + for -, / for _ and drops the padding, so the output can go straight into a URL or filename.
Does it handle emoji and non-English text?
Yes. The tool encodes text as UTF-8 bytes first, so emoji, Chinese, Arabic, Urdu and every other script round-trip perfectly — unlike naive encoders that corrupt them.
Is my data private?
Completely. Encoding and decoding run entirely in your browser — nothing is uploaded, stored or tracked.