Tools

Base64 encode

Encode text as Base64 in your browser. UTF-8 bytes, standard alphabet. Nothing is uploaded.

Paste, then Encode.

How to use the Base64 encode

  1. Paste the text or open a file.
  2. Click Encode. The result is standard Base64 of the UTF-8 bytes.
  3. Copy the string into a header, config, or data URI.

UTF-8 first

JavaScript strings are Unicode. This page encodes UTF-8 bytes, then Base64, so non-English text round-trips with the decoder. It does not read binary files as bytes beyond what the file picker loads as text.

Nothing is uploaded

Encoding stays in the tab. 1.5 MB cap.

Base64 encode FAQ

Is this URL-safe Base64?

No. This is the standard alphabet with + and /. Use URL encode if you need a query value.

Padding?

Output includes = padding when the length needs it.

Decode?

Use the Base64 decode page.

Related tools