Base64 encoder / decoder
Encode text to Base64 or decode Base64 back to text. UTF-8 safe, runs entirely in your browser.
aGVsbG8gV2ViVHJpY2tzIPCfkYs=
About this Base64 tool
Encode any text to Base64, or decode a Base64 string back to readable text.
It’s fully UTF-8 safe, so emoji and non-Latin scripts (Cyrillic, CJK, …)
round-trip correctly — a common pitfall with naive btoa() usage. Everything
runs locally in your browser.
What is Base64 for?
Base64 represents binary data using 64 ASCII characters, so it can travel safely
through text-only channels. You’ll see it in data URLs (data:...;base64,…),
embedding small images or fonts in CSS, encoding binary payloads in JSON, email
attachments (MIME), and basic auth headers.
Note: Base64 is encoding, not encryption — it’s trivially reversible and provides no security.
How to use it
- Choose Encode or Decode.
- Paste your text or Base64 string.
- Copy the result.
FAQ
Why does my emoji break with btoa() but work here?
btoa() only handles Latin-1. This tool encodes the text as UTF-8 bytes first, so any character — emoji, Cyrillic, CJK — survives the round-trip.
Is Base64 encryption?
No. Base64 is encoding, not encryption — it's trivially reversible and provides no security. Use it for transport, not secrecy.