Base64 encoder

Encode or decode text as Base64.

🔒 This file is processed in your browser. It is never uploaded anywhere.

What it is for

Base64 turns data into a text string using only letters, numbers and a couple of symbols. It exists because many systems were designed to carry text and choke on binary data: email, some configuration formats and certain URL fields.

Its most visible use is on web pages, where a small image can be embedded directly in the HTML or CSS as a Base64 string, avoiding an extra request to the server. It is also the mechanism email attachments travel by underneath.

One point deserves to be very clear: Base64 is not encryption. It is a reversible encoding with no key at all, and anyone can decode it in a second. Storing a password in Base64 thinking it is protected is a classic and serious security mistake.

How it works

  1. Type or paste the text you want to encode or decode.
  2. Click "Encode" to turn it into Base64, or "Decode" if you already have Base64 text.
  3. Copy the result from the output box.

When to use it

Embedding web resources

Icons and small images as Base64 inside CSS save requests to the server.

Reading tokens and headers

Many authentication tokens contain Base64 sections that reveal their contents when decoded.

Carrying data through text

When a field accepts only plain text, Base64 lets you put information there that is not.

Practical tips

  • Never use it as a security measure: it hides nothing from anyone who knows to look.
  • Encoding grows the size by roughly a third, so it does not pay off for large files.
  • If decoding produces unreadable characters, the original was probably binary data rather than text.
  • To make text valid inside a URL, the correct tool is the URL encoder, not Base64.

Frequently asked questions

What is Base64 encoding used for?

It's used to embed binary data (like images) inside plain text, for example in JSON, URLs or emails.

Is Base64 a form of encryption?

No, it's just a reversible encoding with no key at all; anyone can decode it — it provides no security or privacy.

Related tools