Base64 Encode

Encode any text — including emoji and Unicode — to Base64 with correct UTF-8 handling, entirely in your browser.

Input
Output
Ad · in-content

About the Base64 Encode

Base64 represents binary or text data using a 64-character ASCII alphabet, which makes it safe to embed in URLs, JSON, HTML data attributes, email and data URIs. This encoder uses proper UTF-8 byte handling so that accented characters, emoji and non-Latin scripts encode correctly — something naive btoa() usage gets wrong.

Encoding is local and private. Use it to embed images as data URIs, prepare HTTP Basic Auth tokens, or store binary-ish data in a text-only field.

How to use the Base64 Encode

  1. 1Type or paste your text.
  2. 2Click “Encode to Base64”.
  3. 3Copy the Base64 string.

Key benefits

  • Full UTF-8 and emoji support.
  • Safe for URLs, JSON and email.
  • Private and instant.

Real-world examples

Build a data URI

Encode content to embed inline in HTML or CSS.

Create a Basic Auth token

Encode user:password for an Authorization header.

Frequently asked questions

Does it handle Unicode correctly?+

Yes — text is UTF-8 encoded before Base64, so emoji and accents work correctly.

Is Base64 encryption?+

No. Base64 is reversible encoding, not encryption. Never use it to protect secrets.

Related tools

Ad · sticky-mobile