Base64 Encode / Decode
Encode or decode text as Base64, UTF-8 safe — handles accented letters, emoji, and non-English text correctly.
This tool encodes and decodes text, UTF-8 safe (accented letters, emoji, and non-English characters all round-trip correctly). Base64 is a text encoding, not encryption — it provides no confidentiality or security. Text is encoded and decoded locally in your browser.
Choose Encode to turn plain text into Base64, or Decode to turn Base64 back into text. For example, encoding Hello produces SGVsbG8=; decoding it returns Hello exactly. Unicode text (accented letters, emoji, non-English scripts) round-trips correctly.
Base64 is not encryption. It’s a reversible text encoding — anyone can decode it back to the original text, so it provides no confidentiality or security on its own.
How to use the Base64 Encode / Decode
- Choose Encode to convert text to Base64, or Decode to convert Base64 back to text.
- Type or paste into the input box; the Result updates as you type.
- Check the status badge: Encoded. or Decoded. on success, or an error message if decoding fails.
- Click Copy result to copy the output, or Clear to empty the input.
Example: Encoding text with an accent and an emoji
With Encode selected, typing café ☕ produces Y2Fmw6kg4piV. Switching to Decode and pasting Y2Fmw6kg4piV returns café ☕ exactly, because the text is converted to UTF-8 bytes before encoding.
Questions about the Base64 Encode / Decode
- Can I decode Base64 that is missing its = padding?
- Yes. Input such as SGVsbG8 decodes to Hello without the trailing =. Spaces or line breaks around the value are also ignored.
- Why do I get "This isn't valid Base64-encoded text."?
- Either the input contains characters outside the standard Base64 alphabet, or it decodes to bytes that are not valid UTF-8 text. URL-safe Base64 that uses - and _ instead of + and / is rejected, so replace those characters first.
- Can this tool decode an image or other binary file?
- No. It only returns text, and decoded bytes that are not valid UTF-8 are reported as an error instead of being shown as garbled characters. Use the Base64 to Image Converter for image data.
- Is my text uploaded anywhere?
- No. Encoding and decoding use the browser's built-in TextEncoder, TextDecoder, btoa and atob functions, so the text stays on your device.