Base64 Encoder/Decoder

Encode and decode Base64 data with support for text, files, and images

Select Operation

About Base64 Encoding

What is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data in ASCII string format. It's commonly used to encode data that needs to be stored or transferred over media designed to handle text.

  • Email attachments (MIME)
  • Data URLs in HTML/CSS
  • JSON/XML data transfer
  • Storing binary data in databases

Encoding Information

  • Character Set: A-Z, a-z, 0-9, +, /
  • Padding: Uses = character
  • URL-Safe: Replaces + with - and / with _
  • Size Increase: ~33% larger than original
  • Line Breaks: Optional (MIME standard: 76 chars)

Examples

Plain Text:

Hello, World!

Base64 Encoded:

SGVsbG8sIFdvcmxkIQ==

Data URL (Image Example):

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA...