Base64 Encoder & Decoder
Convert plain text to Base64, or decode Base64 back to text. Fully Unicode-safe, so emoji and accented characters round-trip correctly.
How to use the Base64 converter
- To encode: type or paste text into the left box, then click "Encode →" to fill the right box with its Base64 form.
- To decode: paste a Base64 string into the right box, then click "← Decode" to fill the left box with the original text.
- If the Base64 you pasted is malformed, you'll see an error instead of garbled output.
- Use the Copy buttons to grab either value, or "Clear both" to start fresh.
Why use a Base64 encoder/decoder?
Base64 turns arbitrary binary or text data into a safe, printable string of letters, numbers, and a few symbols — commonly used for embedding data in JSON, URLs, email attachments, or config files that only accept plain text. This converter is Unicode-safe: it UTF-8 encodes your text first, so non-English text and emoji encode and decode without corruption, unlike a plain btoa() call. Everything runs locally in your browser, so pasted data never leaves your device. Remember that Base64 is an encoding, not encryption — it's trivially reversible and shouldn't be used to hide sensitive information.
Does this Base64 tool support Unicode and emoji?
Yes. Text is UTF-8 encoded before Base64 conversion, so accented letters, non-Latin scripts, and emoji all round-trip correctly.
What happens if I try to decode invalid Base64?
The tool shows a friendly error message telling you the input isn't valid Base64, instead of failing silently or showing garbled text.
Is Base64 the same as encryption?
No. Base64 is a reversible encoding, not encryption — anyone can decode it back to the original text. Don't use it to protect secrets or passwords.