Skip to main content

Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 back to plain text. Supports UTF-8.

Base64 Output
Output will appear here...

About Base64

Base64 is an encoding scheme that converts binary data into ASCII text. It is commonly used to embed images in HTML, transmit data in JSON APIs, and encode email attachments. This tool fully supports UTF-8 text.

About Base64 Encoder / Decoder

Base64 represents bytes with a set of printable ASCII characters. Developers encounter it in data URLs, email attachments, and text-oriented protocols that need to carry binary content; encoding increases the payload size and is not encryption.

This tool handles UTF-8 text in both directions. If decoding fails, the input may contain invalid Base64 characters or bytes that are not valid UTF-8. For arbitrary binary files, use a byte-oriented workflow rather than assuming every decoded byte sequence is text.

How to use this tool

Choose Encode or Decode, paste the text in the input field, and run the conversion. Use Swap to reuse the current output in the opposite mode.

Frequently asked questions

Does Base64 protect or encrypt data?

No. Base64 is a reversible encoding. Anyone with the encoded value can decode it, so it must not be used to protect passwords, keys, or private information.

Does this support Unicode text?

Yes. Text is converted using UTF-8 so characters outside the basic ASCII range can be encoded and decoded.

Why is my Base64 rejected?

The text may have an invalid alphabet, padding, or decoded byte sequence. Check for accidental characters or use a byte-aware tool if the data is not text.

Related Tools