Base64 Encoder / Decoder
Turn text into Base64 for embedding in configs and URLs, or decode Base64 back into readable text. Handles emoji and non-English text without breaking a sweat.
How to use
- Type or paste your text into the input box β plain text, JSON, or anything else.
- Click Encode to convert it to Base64, or Decode if you pasted Base64 that you want to read.
- Read the result in the output box. If decoding fails, you'll get a friendly explanation instead of a cryptic crash.
- Click Copy to copy the result, ready for your config file, data URI, or API call.
- Nothing leaves your browser. Encoding and decoding happen on your device β paste sensitive strings with confidence.
Frequently asked questions
How do I encode text to Base64 online for free?
Paste your text into the input box above and click Encode. The tool converts it to Base64 using proper Unicode handling, so emoji and non-English characters survive the trip. Hit Copy to grab the result.
How do I decode a Base64 string back to text?
Paste the Base64 string into the input box and click Decode. If the string isn't valid Base64 β wrong characters, bad padding β you'll see a friendly message explaining the problem instead of a broken output.
Does this Base64 tool handle emoji and Unicode?
Yes. Many online encoders use the browser's basic functions directly and mangle anything outside plain ASCII. This tool goes through UTF-8 encoding first (via TextEncoder/TextDecoder), so emoji, accented letters, and CJK characters round-trip perfectly.
What is Base64 used for?
Base64 represents binary data as plain ASCII text, which makes it handy for embedding images or files in HTML and CSS (data URIs), passing binary blobs through JSON APIs, and encoding credentials in HTTP Basic auth headers. It's an encoding, not encryption β anyone can decode it.
Is Base64 encoding secure? Can I use it to hide a password?
No β Base64 is not encryption and offers zero real secrecy; it exists to make data transport-safe, not secret. Never use it to "hide" passwords, tokens, or sensitive data. This page is safe to use, but the output is trivially reversible by anyone.
Related tools
Keep the momentum going.