Base64 Encoder & Decoder

Encode text to Base64 or decode Base64 to text instantly. All processing happens locally in your browser.

Plain Text

Base64 Encoded

What is Base64 Encoding?

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 designed to deal with text.

Common Use Cases

  • Email Attachments: MIME email uses Base64 to encode binary attachments
  • Data URLs: Embed images directly in HTML/CSS using Base64
  • Basic Authentication: HTTP Basic Auth encodes credentials in Base64
  • Encoding Binary Data: Transfer binary data over text-based protocols
  • API Responses: Encode binary data in JSON responses

How Base64 Works

Base64 encoding converts binary data into a set of 64 characters:

  • A-Z (26 characters)
  • a-z (26 characters)
  • 0-9 (10 characters)
  • + and / (2 characters)
  • = (padding character)

Important Notes

  • Base64 is encoding, not encryption - it doesn't provide security
  • Encoded data is approximately 33% larger than the original
  • Base64 is case-sensitive
  • Padding (=) characters may be added at the end