Base64 Encoder/Decoder

Encode text to Base64 or decode Base64 strings instantly

About Base64 Encoding

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used when you need to encode binary data that needs to be stored and transferred over media that are designed to deal with text.

Common Uses

  • Embedding images in HTML/CSS using data URIs
  • Encoding email attachments (MIME)
  • Storing complex data in JSON or XML
  • Basic authentication headers in HTTP
  • Encoding data for URL parameters

How It Works

Base64 encoding takes 3 bytes of binary data and converts them into 4 ASCII characters. The character set includes A-Z, a-z, 0-9, +, and /, with = used for padding.