Base64 Encoder & Decoder

Encode text or files to Base64 and decode Base64 back to text or files. Full UTF-8 support, URL-safe Base64URL, MIME line wrapping and file type detection.

Runs 100% in your browser. Nothing you paste is uploaded.

Text

—

Base64

—

About the Base64 Encode / Decode

Base64 represents binary data using 64 printable characters, so it can be embedded in JSON, XML, HTTP headers and email. This tool encodes and decodes text as UTF-8 (so emoji and accents survive), handles the URL-safe Base64URL alphabet used by JWTs, and works on files of any type.

When decoded data is binary, the tool recognises common formats (PNG, JPEG, PDF, ZIP, GZIP) and lets you download it as a file.

Features

  • UTF-8 safe encoding and decoding
  • Standard and URL-safe (Base64URL) alphabets
  • Tolerates missing padding and whitespace
  • MIME 76-character line wrapping
  • Line-by-line mode for lists
  • Encode any file; download decoded binary
  • File type detection

How to use it

  1. Choose Encode or Decode.
  2. Type or paste your input — the result appears instantly.
  3. For files, use Encode file… or Download decoded as file.

Frequently asked questions

Is Base64 encryption?

No. Base64 is a reversible encoding with no key. Never use it to hide passwords or secrets.

What is the difference between Base64 and Base64URL?

Base64URL replaces + with - and / with _ and usually drops = padding, so the result is safe in URLs and filenames. JWTs use Base64URL.

Why is the Base64 output larger than the input?

Base64 encodes every 3 bytes as 4 characters, so output is about 33% larger (plus line breaks if wrapping is enabled).

How do I decode a Basic Authorization header?

Paste the part after Basic and decode — you’ll get username:password.

Esc