Base64 Encoder Decoder

Encode UTF-8 text as Base64 or decode Base64 back into UTF-8 text.

Your input is processed in this browser and is not uploaded.

Base64 Encoder Decoder

Convert UTF-8 text into Base64 or recover text from Base64. Unicode letters and emoji are encoded as UTF-8 bytes before Base64 conversion.

How to use it

  1. Select Encode or Decode.
  2. Paste ordinary text or raw Base64.
  3. Select Run tool, then copy or download the result.

Worked example

Encoding Hello gives SGVsbG8=. Decoding it returns Hello. A UTF-8 message containing emoji also round-trips when its byte sequence is valid.

Limits and troubleshooting

Base64 is reversible encoding, not encryption. The text decoder rejects invalid UTF-8; binary images and ZIP data are not necessarily text. Whitespace in Base64 input is ignored. This decoder expects standard Base64 (+ and /), not Base64url (- and _). The input expects raw Base64, not a complete data URL. Limit: 200,000 input characters.

Frequently asked questions

Why does valid Base64 fail to decode?

Its decoded bytes may be binary rather than UTF-8 text. Use a file-specific decoder for that data. For an image data URL, use Base64 to Image; that tool expects the data:image/...;base64, prefix.

Can Base64 hide a password?

No. Anyone can reverse it. Use appropriate encryption or secure secret storage.