Base64 Encoder/Decoder

Encode and decode Base64 strings online. Support for text and file encoding with instant results.

What is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used for:

  • Embedding images in CSS or HTML
  • Email attachments (MIME)
  • Data URLs in web browsers
  • API authentication tokens
  • Storing binary data in text-based formats like JSON or XML

How to Use

Text Mode

  1. Enter your text in the input area
  2. Click "Encode to Base64" to convert text to Base64
  3. Click "Decode from Base64" to convert Base64 back to text
  4. Copy the result using the "Copy Result" button

File Mode

  1. Select a file using the file input
  2. Click "Encode File" to convert the file to Base64
  3. Copy the result or download as a .txt file
  4. To decode: paste Base64 string, set filename, and click "Decode & Download"

Important Notes

  • File Size: Large files will produce very long Base64 strings
  • Size Increase: Base64 encoding increases data size by ~33%
  • Not Encryption: Base64 is encoding, not encryption - anyone can decode it
  • Browser Limits: Very large files may cause browser performance issues