Free tool

Base64 encoder / decoder

Convert text to Base64 or decode Base64 back to plain text.

Could not decode — check that the input is valid Base64.

Base64 is a way of encoding binary data (or plain text) into a string made up only of letters, numbers, and a few symbols, so it can be safely transmitted through systems that only handle plain text — email attachments, embedding images directly inside CSS or HTML, or passing data through APIs and URLs where raw binary would break things. Despite the name, Base64 is not encryption; it doesn't hide or protect information, it just re-represents it in a different, text-safe format.

Developers run into Base64 constantly: decoding a JWT token's payload to inspect its claims, embedding a small image directly into a stylesheet as a data URI, or converting an API response that arrives Base64-encoded back into readable text. This tool handles both directions instantly in the browser.

How to use this tool

Paste your plain text into the input box to get its Base64-encoded version, or paste a Base64 string into the decode field to convert it back to readable text. The conversion happens instantly as you type, and both fields support copying the result with one click.

Frequently asked questions

Is Base64 the same as encryption?

No. Base64 is an encoding scheme, not encryption — anyone can decode a Base64 string back to its original form with no key or password required. It shouldn't be used to protect sensitive data.

Why does encoded text end with one or two equals signs?

The equals signs are padding characters, added when the original data length isn't a multiple of three bytes. They're a normal part of the format and don't indicate an error.

Can I encode special characters and emoji?

Yes — this tool handles Unicode text correctly, including accented characters and emoji, by encoding the underlying UTF-8 bytes.

Why would I use Base64 instead of just sending plain text?

Some systems (like certain APIs, URLs, or older email protocols) can't reliably handle raw binary data or special characters, so encoding it as Base64 text avoids corruption or errors during transmission.

Does decoding work with Base64 from any source?

Yes, as long as it's standard Base64. If a string uses a URL-safe variant (with - and _ instead of + and /), you may need to convert those characters back first.

Related tools