What the Base64 Encoder / Decoder does
The page converts text to Base64 and Base64 back to text through UTF-8, so accented letters, Chinese characters and emoji survive the round trip without turning into question marks. Paste text and press Encode to get the Base64 string, or paste a Base64 string and press Decode to read it back. Encoding the sample already sitting in the box, Hello, 世界!, produces SGVsbG8sIOS4lueVjO+8gQ==.
Base64 appears wherever data has to travel through a channel that only tolerates plain text: HTTP Basic authorization headers, data URIs in HTML and CSS, email attachments, JSON and XML fields, and the segments of a JSON web token. The usual reason to open a converter like this is to see what a value someone sent you really says, or to make a block of bytes safe to paste into a config file.
How to use it
- Paste your textType or paste into the single input box. Because encoding and decoding share that box, whatever is already in it gets read in whichever direction you run next.
- Press EncodeThe button reads the box as UTF-8 text and writes standard Base64 into the result area below. Spaces at the ends of your input count as characters, so trim accidental ones first if they were not meant to be there.
- Or press DecodeDecoding treats the box contents as Base64 and writes the recovered text back out. Whitespace around the string is trimmed for you, but line breaks inside the string are not tolerated.
- Copy the resultThe output is plain selectable text with no copy button and no download step. Select and copy it, then press the clear button when you are finished with anything confidential.
Options and formats
Things to watch out for
Frequently asked questions
Is Base64 a form of encryption?
No. It is a reversible encoding that needs no key, and anyone can turn a string back into readable text in one step. That is why credentials hidden in Base64 still count as exposed. Use it to move data through text-only channels, not to protect anything.
Why does decoding give me strange symbols?
The encoded bytes were never text, or they are text in an encoding other than UTF-8. The tool recovers characters rather than files, so an image or archive has to be decoded by a program that can write binary output instead.
Does it handle emoji and non-Latin scripts?
Yes. The conversion passes through UTF-8 before Base64 is applied, which is the step a plain browser encode usually skips and the reason so many converters mangle non-English text. Latin accents, Chinese, Japanese, Arabic, Cyrillic and emoji all survive a full encode followed by a decode.
Why does my JSON web token refuse to decode?
Tokens use the URL-safe alphabet and usually drop padding, and only the middle segment holds the readable payload. Swap the dash and underscore characters, restore the equals signs, and decode one segment at a time rather than pasting the whole token into the box.
Can I turn a Base64 string back into an image file?
Not with this page. The result is displayed as text, so decoded image bytes show up as unreadable characters rather than a picture. Use a data URI in a browser or a decoder that writes files when you need the original bytes back.
How much longer is the encoded text?
Base64 represents every three bytes of input as four characters, so the output runs roughly a third longer than the original, plus a little padding at the end. The counter beneath the result gives the exact figure for whatever you pasted in.