Developer tool

Base64 Encoder / Decoder

Encode UTF-8 text to Base64 or decode Base64 back to text. Invalid strings fail with an error instead of garbled output.

How to use Base64 Encoder / Decoder

  1. Paste plain text or a Base64 string.
  2. Choose encode or decode.
  3. Copy the result.

Examples

Encode

Hello becomes SGVsbG8=.

UTF-8

Emoji and accented letters are encoded from UTF-8 bytes, not from broken Latin-1 shortcuts.

Privacy

Encoding stays in the browser.

FAQ

Can I encode files?

This page is for text. Use Image Compressor or the JPG/PNG converter for image files.

Why was my decode rejected?

Length must be a multiple of 4 and only use the Base64 alphabet.

Where is the old decoder URL?

It redirects to this combined encoder/decoder page.

Related tools