UTF-8 Base64 Encoder and Decoder

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

FormattingBase64

Reading a Base64 field in an API response

Try decoding Y2Fmw6k=. The result is café, which is a useful check that the sender encoded UTF-8 bytes. If a field starts with data:text/plain;base64, copy only the part after the comma into the decoder.

Base64URL can use hyphens and underscores in place of plus and slash. This decoder expects ordinary Base64. If ordinary Base64 decodes to non-text bytes, use the receiving application's binary file workflow.

How to use it

  1. Paste UTF-8 text or a Base64 string.
  2. Choose Encode for text or Decode for Base64.
  3. Copy the output after checking the expected format.

Common questions

Does Base64 encrypt the input?
No. Base64 is a reversible representation of bytes and does not use a secret key.
Can I decode an image with this text tool?
This tool decodes Base64 into UTF-8 text. Arbitrary binary data may fail UTF-8 validation.

The tool processes your input in this browser. It does not upload the input itself.