Base64 Encoder / Decoder

UTF-8 safe Base64 encode and decode, URL-safe variant, files to Base64.

Plain text

0 chars

Encoded

Runs on this device. Nothing is uploaded.

File to Base64

Images, fonts, PDFs up to 10 MB. Read locally.

About the Base64 Encoder

Encode text to Base64 or decode it back, with full UTF-8 support, so accented letters, Korean and emoji survive the round trip, which plain btoa() in JavaScript does not handle. Choose the URL-safe alphabet for JWTs and URLs, drop padding, or wrap lines at 76 characters for email. You can also turn a local file into Base64 or a data URL without uploading it.

How to use it

  1. Choose Encode or Decode.
  2. Paste the text or Base64.
  3. Copy the result.

Example

Input
héllo ✓
Result
aMOpbGxvIOKckw==

Questions

Is Base64 encryption?

No. Base64 is an encoding that anyone can reverse. Never use it to hide passwords or secrets.

What is URL-safe Base64?

A variant that uses - and _ instead of + and /, so the result can go in a URL or a filename without escaping. JWTs use it, usually without the = padding.

Why does decoding say the result is binary?

The Base64 holds a file such as an image, not text. Decoding to text would produce garbage, so the tool tells you instead.

Related tools