B6

Base64 Encoder & Decoder Online

Free online Base64 encoder and decoder. Convert text or files to and from Base64. Supports text and file drag-and-drop.

Text / Data
Result
💡 What is this

Base64 Encoding

  • Base64 converts binary data into a text-safe ASCII format using 64 characters.
  • It's widely used in email attachments, data URIs, API payloads, and embedding images in HTML/CSS.
📖 How to use

Step by Step

  • Type or paste text, then click Encode
  • Paste Base64 string, then click Decode
  • Use the File button to encode any file
  • Drag & drop files onto the input area
🎯 Use cases

When to use

  • Embedding images as data URIs in HTML/CSS
  • Encoding binary data for JSON/XML APIs
  • Sending attachments via email protocols
  • Storing binary blobs in text-only databases

Frequently Asked Questions

Does Base64 encrypt my data?
No. Base64 is encoding, not encryption. Anyone can decode it. It's meant for safe transport of binary data, not security.
Why does Base64 make files larger?
Base64 increases size by about 33% because it represents every 3 bytes as 4 ASCII characters. This is the trade-off for text-safe representation.
Is my data safe?
Yes. All encoding and decoding happens in your browser. Nothing is sent to any server.