Base64 Encode & Decode

Free online Base64 tool: decode Base64 back to text, or encode text to Base64, in your browser — full Unicode support, no upload and no sign-up.

Encode text to Base64

Converts text to Base64. Every three bytes become four characters from a 64-character alphabet, which is why encoded output is about a third larger than the input. Text is read as UTF-8 first, so accented letters, emoji and non-Latin scripts all survive.

hello world exampleaGVsbG8gd29ybGQgZXhhbXBsZQ==

Decode Base64 back to text

Converts Base64 back to text, reversing the encoding exactly. Input that is not valid Base64 is returned unchanged rather than throwing an error or emitting mojibake, so a mistaken paste costs you nothing.

aGVsbG8gd29ybGQ=hello world

Frequently asked questions

How do I decode a Base64 string?

Paste the Base64 into the box above and choose Decode. The original text appears immediately. If the input is not valid Base64 it is returned unchanged, so nothing is lost if you paste the wrong thing.

Is Base64 encryption?

No, and this is the most common misunderstanding about it. Base64 is an encoding, not encryption: there is no key and anyone can reverse it in seconds. Never use it to protect a password, a token or anything else that needs to stay secret.

Why does Base64 output end in one or two equals signs?

Base64 works on groups of three bytes. When the input length is not a multiple of three, the final group is padded with one or two = characters so the output length stays a multiple of four. The padding carries no data.

Does this work with emoji and non-English text?

Yes. Text is converted to UTF-8 before encoding, so accented characters, emoji, and Arabic, Chinese, Japanese, Cyrillic, Greek, Hebrew and Thai text all round-trip back to exactly what you started with.

Why is my encoded text longer than the original?

Base64 represents three bytes as four characters, so output is roughly 33% larger than the input, plus padding. That overhead is the price of making binary data safe to put in text-only places like URLs, email bodies and JSON strings.

What is Base64 actually used for?

Anywhere binary data has to travel through a text-only channel: embedding images in CSS or HTML as data URIs, attachments in email, binary fields inside JSON or XML, and HTTP Basic Authentication headers.

Is my text uploaded to a server?

No. Easy Formatter is a static site with no backend — the encoding and decoding run in your browser using JavaScript, so your text never leaves your device.