Base64 to Text and Text to Base64 Converter

Encode text to Base64 or decode Base64 back to text, with full Unicode support.

Frequently asked questions

Does this tool support Unicode characters?

Yes. Text is encoded as UTF-8 before Base64 conversion, so emoji and non-Latin scripts round-trip correctly.

Is my data sent to a server?

No, encoding and decoding both happen locally in your browser using standard JavaScript APIs.

What happens if I try to decode invalid Base64?

Malformed Base64 shows an error message. Valid Base64 that holds binary data rather than text, such as an image, decodes to replacement characters, because this tool reads the result as UTF-8 text.

Is Base64 the same as encryption?

No. Base64 only changes how data is written; it has no key or secret, so anyone can decode it. Use real encryption when content must stay private.

Why is the Base64 version longer than my text?

Every 3 bytes of input become 4 Base64 characters, so the output is about a third longer, plus any padding. Non-English text takes more bytes in UTF-8, so it grows further.

Can I encode an image or a file with this tool?

No. Only text that you type or paste is accepted; there is no file picker. Decoding a file's Base64 here shows text, not a downloadable file.

Why does decoding fail when my text contains - or _?

Those characters belong to URL-safe Base64, while this tool decodes only the standard alphabet (A-Z, a-z, 0-9, + and /). Swap - for + and _ for / and try again.