Skip to content

Base64 Encode / Decode

How to Encode Text to Base64

Base64 represents data using a safe set of ASCII characters, which is handy for embedding or transmitting it. Paste your text below to encode it to Base64 or decode it back.

Encode or decode Base64

Steps to encode to Base64

  • Paste your text into the box above.
  • Choose Encode to produce the Base64 string.
  • Copy the result into your config, data URL or API payload.
  • To reverse it, paste Base64 and choose Decode.

What Base64 is (and isn't)

Base64 is an encoding, not encryption. It makes binary or text data safe to embed in places that expect plain ASCII — CSS, HTML data URIs, JSON or email — but anyone can decode it. Never use it to hide secrets.

Frequently asked questions

Is Base64 secure?

No. It's reversible by anyone, so it offers no security. Use it for transport and embedding, not for protecting sensitive data.

Why is Base64 longer than the original?

Base64 encodes every 3 bytes as 4 characters, so the output is about 33% larger than the input. That's the trade-off for ASCII safety.

Related