Top horizontal ad space

Base64 Encoder/Decoder

Encode text to Base64 or decode Base64 back to text. Convert files to Base64 data URLs. All processing happens locally.

Completely Private

  • All processing in your browser
  • Data never sent to servers
  • Works offline
In-page ad space

Features

  • 🔤 Text to Base64
  • 🔙 Base64 to text
  • 📁 File to data URL
  • 🌐 Unicode support
  • 📋 One-click copy
  • 🔒 100% private

Frequently Asked Questions

What is Base64 encoding?

Base64 is a way to represent binary data using only printable ASCII characters. It's commonly used to embed images in HTML/CSS, transmit data in URLs, and encode email attachments.

Why does Base64 increase file size?

Base64 uses 4 characters to represent every 3 bytes of data, resulting in about 33% size increase. This is the trade-off for being able to represent binary data as text.

Is Base64 encryption?

No, Base64 is encoding, not encryption. Anyone can decode Base64 data. It's meant for data transport compatibility, not security. Don't use it to hide sensitive information.

Can I encode files to Base64?

Yes! You can drag and drop or select any file to convert it to a Base64 data URL. This is useful for embedding small images directly in HTML or CSS.

Is my data sent to a server?

No. All encoding and decoding happens locally in your browser using built-in JavaScript functions. Your data never leaves your device.

What's a Base64 data URL?

A data URL includes the Base64 data along with the MIME type, like 'data:image/png;base64,...'. This can be used directly as an image src in HTML.