Encode text to Base64 and decode Base64 back to text. Handles Unicode, data URIs, and API tokens.
Encode text to Base64 and decode Base64 back to readable text instantly. Useful for data URIs, API tokens, email attachments, and embedding binary data in JSON — all processed locally in your browser.
Type or paste your text and click Encode to convert it to a Base64 string using the standard Base64 alphabet (A–Z, a–z, 0–9, +, /). Paste a Base64 string and click Decode to convert it back to UTF-8 text. The tool handles Unicode characters correctly via TextEncoder/TextDecoder. All processing is client-side.
Base64 is a binary-to-text encoding scheme that represents binary data using 64 printable ASCII characters (A–Z, a–z, 0–9, +, and /). It is commonly used to embed binary data in text-based formats like JSON, HTML, and XML.
No. Base64 is an encoding scheme, not encryption. It provides no security — anyone can decode a Base64 string. Use it for data transport, not for protecting sensitive information.
Yes. The encoder uses TextEncoder to convert text to UTF-8 bytes before encoding, and the decoder uses TextDecoder to convert bytes back to text. This correctly handles emojis, Khmer script, and other multi-byte characters.
The input may not be valid Base64, or it may have been encoded with a different character set. Ensure your Base64 string uses the standard alphabet and that the original text was UTF-8. Line breaks or spaces in the input can also cause decoding errors.