UTILITYCO

Base64 Encode / Decode

Encode text and files to Base64 and decode Base64 back to text or files in your browser. Supports standard and URL-safe alphabets, with copy and download.

Tool / developer / base64-encoder

Loading tool...

01 / How it works

How it works

  1. 01Choose Encode or Decode mode.
  2. 02Type or paste text, or drop a file to convert.
  3. 03Optionally enable the URL-safe alphabet.
  4. 04Copy the result, or download the decoded file.

02 / FAQ

Frequently asked questions

What is Base64 encoding?

Base64 represents binary or text data using 64 printable ASCII characters. It is widely used to embed images in HTML or CSS, transmit binary data in JSON, and encode email attachments.

Can I encode a file to Base64?

Yes. Drop or select any file and the tool converts it to a Base64 string you can copy. In decode mode, a Base64 string can be turned back into the original file and downloaded.

What is URL-safe Base64?

URL-safe Base64 replaces the + and / characters with - and _ and omits padding, so the result is safe to place in URLs and filenames. Toggle it on when your target system requires it.

Is my data private?

Yes. All encoding and decoding is performed locally in your browser. Files and text are never uploaded, so you can safely convert sensitive documents or tokens.

Why did decoding fail?

Decoding fails when the input is not valid Base64, for example if it contains stray characters or an incorrect length. The tool shows an inline error so you can fix or re-copy the string.