Base64 converter

Encode text to Base64, or decode Base64 to text.

  • Content
  • 100% free
  • No sign-up
  • Runs in your browser
Base64 converter

What is the base64 converter?

The Base64 converter encodes text into Base64 and decodes Base64 back into text. It fully supports UTF-8, so any language and emoji round-trip correctly, and URL-safe Base64 is decoded too. Everything runs in your browser.

Base64 represents binary data with plain characters. It's used in data URIs, email attachments, HTTP basic authentication, JSON Web Tokens and APIs. Remember that Base64 is an encoding, not encryption.

How to use the base64 converter

  1. 1Paste the text or the Base64 string.
  2. 2Choose Encode or Decode.
  3. 3Press Convert and copy the result.

Features

Both directions

Encode and decode in one place.

UTF-8 safe

Works with every language and emoji.

URL-safe input

Decodes the - and _ variant used in JWTs.

Private

Your data stays in your browser.

Frequently asked questions

Is Base64 encryption?

No. Anyone can decode Base64, never use it to protect sensitive data.

Why is the Base64 text longer?

Base64 uses 4 characters for every 3 bytes, so the output is about 33% larger.

What is the = at the end?

Padding, added when the input length isn't a multiple of 3 bytes.

Should I inline images as Base64?

Only very small ones. Large Base64 images make the HTML or CSS heavier and can't be cached separately.