Base64 Encoder

Encode and decode Base64 text.

Loading tool

This tool runs in your browser. Nothing is uploaded.

Paste a string or a data URL payload. Decode fails loudly if padding or the alphabet is wrong.

How to use this tool

  1. Paste the snippet. Drop JSON, code, or a token into the input. It is not sent to a server.
  2. Run the action. Format, decode, or generate. Parse errors stay on the page.
  3. Copy the output. Copy the result back into your editor or terminal.

URL-safe

The URL-safe variant swaps +/ for -_ and may omit padding. Toggle that mode when you are looking at JWT parts or query values.

Frequently asked

Can I encode a file?

Text mode is for strings. For images, convert or compress on the image pages instead.

Why do I see replacement characters?

The bytes were not valid UTF-8. Try latin1 view if you expected raw bytes.

Is this encryption?

No. Base64 is an encoding. Anyone can decode it.

Does it wrap at 76 characters?

MIME wrap is optional. Default output is one line.

Does encode send bytes to a server?

No. Encoding and decoding stay in this tab.