Base64 Encoder / Decoder

Encode and decode text, files, and images to and from Base64 instantly. Everything runs in your browser.

๐Ÿ“ฅ Input
๐Ÿ“ค Output
๐Ÿ“

Drop a file to encode

or

Any file type ยท Max 10 MB

๐Ÿ–ผ๏ธ

Drop an image to convert to Data URI

or

JPG, PNG, WebP, GIF, SVG ยท Max 5 MB

Advertisement

How to Use

  1. Text โ€” paste text, hit Encode or Decode. Unicode is fully supported.
  2. File โ€” drop any file (up to 10 MB) to get its Base64 representation.
  3. Image โ€” drop an image to get a ready-to-use data:image/... URI.

Frequently Asked Questions

Is my data sent to a server?

No. Everything happens in your browser. Nothing is transmitted.

What is Base64?

Base64 is a way to encode binary data as ASCII text using 64 characters. It's commonly used to embed images directly in HTML/CSS, pass data in JSON, or send attachments through text-only protocols.

Does Base64 encrypt my data?

No! Base64 is encoding, not encryption. Anyone can decode it instantly. Never use it to protect sensitive data โ€” use real encryption instead.

Does Base64 make my data smaller?

No โ€” it makes it larger. Base64 encoding increases size by about 33%. It's used for compatibility, not compression.

What is a Data URI?

A Data URI embeds a file directly into HTML or CSS as data:image/png;base64,.... Useful for small icons and reducing HTTP requests.