🔤 Base64 Encoder / Decoder

Encode and decode Base64 strings instantly

Text Input

Result

What is Base64?

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

Common Uses

  • Embedding images in HTML/CSS (data URIs)
  • Encoding email attachments
  • Storing binary data in JSON
  • URL-safe encoding of binary data
  • Basic authentication headers

How It Works

Base64 encoding converts every 3 bytes of binary data into 4 ASCII characters. The 64 characters used are A-Z, a-z, 0-9, +, and /. The = character is used for padding.