Base64 Encoder/Decoder

Encode text to Base64 or decode Base64 to text. Supports UTF-8.

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 embed images in HTML/CSS, encode email attachments (MIME), and transmit binary data over text-based protocols.

Common Use Cases

  • Embedding images in HTML/CSS using data URIs
  • Encoding binary data for JSON APIs
  • Email attachments (MIME encoding)
  • Storing binary data in text-based formats like XML
  • Basic authentication headers in HTTP requests

Features

  • Full UTF-8 support for international characters
  • Real-time encoding/decoding as you type
  • Swap button to quickly reverse input and output
  • Byte size comparison between input and output
  • 100% client-side — your data never leaves your browser