Base64 Encoder & Decoder

Encode text or files to Base64 and decode Base64 back to text or files.

This tool runs entirely in your browser. The file you choose is never uploaded to a server. Free, with no account required.

Input
Text or file
Output
Base64 or decoded data
Category
Developer Tools
Status
Available now
Price
Free — no subscription, no account

How to use Base64 Encoder & Decoder

  1. Choose a mode: text to Base64, Base64 to text, file to Base64, or read a data URL.
  2. Paste your input, or drop a file in file mode.
  3. Read the byte counts and the overhead figure.
  4. Copy or download the result.

Frequently asked questions

Does it handle accented characters and emoji?

Yes. Text is converted to UTF-8 bytes with TextEncoder before encoding, and decoded with a strict UTF-8 decoder, so nothing is mangled.

Why does Base64 decoding sometimes fail?

The tool refuses rather than guessing. Invalid characters, a length that is not a multiple of four, padding in the middle, or bytes that are not valid UTF-8 each produce a specific message.

Is Base64 encryption?

No. It is a reversible encoding that anyone can undo. Never use it to hide a password or a key.

Why is the output about a third larger?

Base64 represents three bytes as four characters, so the encoded form is about 33% longer than the original.

Related tools