Back to Tools

Base64 Encoder & Decoder

Encode text to Base64 or decode Base64 to text instantly. Free online tool — all processing happens in your browser.

Result will appear here...

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 encoding data in emails, embedding images in HTML/CSS, and transmitting data over text-based protocols.

Common Use Cases

  • Data URLs: Embed images directly in HTML/CSS as data:image/png;base64,...
  • API Authentication: Basic Auth headers use Base64 encoding
  • Email Attachments: MIME encoding for email attachments
  • JSON Web Tokens: JWT header and payload are Base64 encoded
  • Storing Binary Data: Store binary data in text-based formats like JSON

Base64 Character Set

Base64 uses 64 characters: A-Z, a-z, 0-9, + and /. The = character is used for padding. URL-safe Base64 replaces + with - and / with _.

Related Tools