Base64 Encoder / Decoder

Encode UTF-8 text to Base64 or decode Base64 back to text, locally.

Paste plain text to encode it as UTF-8 Base64, or paste valid Base64 / Base64URL text to decode it. Copy the result only after checking which representation the receiving API expects.

Up to 100,000 characters. Text is encoded as UTF-8; file bytes are not supported.

Enable JavaScript to process content locally in your browser.

How to use

Encode or inspect a Base64 text value

Encode UTF-8 text to Base64 or decode Base64 back to text, locally.

Step by step

  1. Provide the source using: Enter text or Base64.
  2. Set: Encode as Base64 / Decode Base64. Use the reference below to choose the options that fit your task.
  3. Choose: Copy result. Inspect the result before copying, downloading or using it elsewhere.
  4. Paste plain text to encode it as UTF-8 Base64, or paste valid Base64 / Base64URL text to decode it. Copy the result only after checking which representation the receiving API expects.

Choosing the settings

OptionWhat changes
Encode as Base64Encode plain text as UTF-8 Base64, or decode standard/Base64URL text back to UTF-8. Whitespace and missing padding are accepted when valid. Invalid Base64 and invalid UTF-8 are rejected. This tool handles text, not arbitrary file bytes.
Decode Base64Choose encoding for plain text and decoding for Base64 input. If decoding reports invalid UTF-8, the bytes are not supported text; do not replace or discard them to make the error disappear. Base64 is an encoding, not encryption.

Example and expected result

“Hello” encodes as SGVsbG8=. The unpadded form SGVsbG8 also decodes to “Hello”. This tool handles UTF-8 text, not arbitrary binary files; invalid UTF-8 is reported instead of being replaced silently.

If it is not working

  • Choose encoding for plain text and decoding for Base64 input. If decoding reports invalid UTF-8, the bytes are not supported text; do not replace or discard them to make the error disappear. Base64 is an encoding, not encryption.

How to use

Encode plain text as UTF-8 Base64, or decode standard/Base64URL text back to UTF-8. Whitespace and missing padding are accepted when valid. Invalid Base64 and invalid UTF-8 are rejected. This tool handles text, not arbitrary file bytes.