Base64 Encoder/Decoder

Encode and decode text to/from Base64

Loading...

About Base64 Encoding

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's widely used for encoding data that needs to be stored and transferred over media designed to deal with text. This free Base64 encoder and decoder allows you to convert between text and Base64 format instantly, making it essential for web development, email attachments, data URLs, and API communications.

How Base64 Works:

Base64 encoding converts binary data into a text string using 64 different ASCII characters (A-Z, a-z, 0-9, +, /). Each Base64 character represents 6 bits of data, and the encoded output is approximately 33% larger than the original input. The "=" character is used for padding when the input length is not a multiple of 3.

Common Use Cases:

  • Data URLs: Embed images and files directly in HTML/CSS using base64-encoded data URLs
  • Email Attachments: Encode binary attachments for email transmission (MIME encoding)
  • API Responses: Encode binary data in JSON or XML APIs
  • Authentication: Encode credentials in HTTP Basic Authentication headers
  • Configuration: Store binary configuration data in text-based config files
  • Web Storage: Store binary data in localStorage or sessionStorage

Features:

  • Encode text or binary data to Base64 format
  • Decode Base64 strings back to original text
  • Instant conversion with real-time results
  • Copy encoded or decoded text to clipboard
  • Handle large text inputs efficiently
  • No data is sent to servers - all processing happens locally

This Base64 encoder/decoder is completely free and requires no sign-up. All encoding and decoding happens in your browser for maximum privacy and security.