Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 back to text. UTF-8 safe.

About Base64

  • Base64 represents binary data in ASCII characters. Useful for embedding in JSON, URLs or email.
  • Output is ~33% larger than the input.
  • URL-safe mode uses - and _ instead of + and /, and omits trailing =.

Frequently asked questions

Why is the encoded output longer than the input?

Base64 represents every 3 bytes of input with 4 ASCII characters, so the encoded form is roughly 33% larger. That overhead is the cost of being able to carry binary safely through text-only channels.

What is URL-safe Base64?

A variant that swaps the + and / characters for - and _, and usually omits padding. It is safe to embed in URLs and filenames without further escaping.

Can I encode an entire file?

Yes. Drop a file into the panel and the entire content is encoded in your browser. Nothing is uploaded, so even large or sensitive files stay local.

Does Base64 provide any security?

No. Base64 is encoding, not encryption. Anyone can decode it trivially. Use real cryptography if you need confidentiality.

Advertisement