Base64 Encoder & Decoder
Convert text to Base64 and back in an instant. Whether you need to encode a string for a URL, an API call or data embedding, this tool handles it with correct UTF-8 support for non-ASCII characters.
About the Base64 Encoder & Decoder
What this tool does
Encode and decode Base64 strings without writing code or hunting for a command line. It handles the UTF-8 pitfall that trips up simple encoders — where accented letters and emoji get corrupted — by encoding text as bytes first, then decoding back to the original text.
How it works
Encoding converts your text to UTF-8 bytes, then maps those bytes to the Base64 alphabet. Decoding reverses the process back to the original text. All conversion runs locally in your browser, so your data never leaves your device.
Assumptions
The tool treats input as UTF-8 text, so characters from any language and emoji round-trip correctly. For Base64 that represents raw binary (not text), the decoded output will show replacement characters where bytes are not valid text.
Key features
- Encode and decode in both directions
- Full UTF-8 support for accents and emoji
- Runs locally — nothing is uploaded
How to use the Base64 Encoder & Decoder
- Paste or type your text into the input box.
- Click Encode to convert to Base64, or Decode to convert back.
- Copy the result with one click.
Frequently Asked Questions
What is Base64 used for?
Base64 encodes binary data as text so it can be safely embedded in URLs, JSON, emails and other text-only formats.
Is Base64 encryption?
No. Base64 is an encoding, not encryption — it provides no security and can be decoded by anyone. It is for data transport, not secrecy.
Why does my Base64 string not decode correctly?
It may be missing padding characters (=), contain whitespace, or represent raw binary rather than UTF-8 text. The decoder handles standard padded Base64.
Does this support non-English text?
Yes. It encodes text as UTF-8 bytes first, so accented characters, Chinese, Japanese and emoji all round-trip correctly.
Is my data uploaded to a server?
No. All encoding and decoding happens locally in your browser.