Base64 Encoder/Decoder

Encode and decode Base64 strings instantly. Perfect for encoding binary data, API keys, and text content.

Text to Encode

Enter plain text to encode to Base64

Base64 Output

Your encoded Base64 string

About Base64 Encoding

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

Common Use Cases:

  • Encoding binary data for JSON or XML transmission
  • Embedding images in HTML or CSS files
  • Storing complex data in URLs
  • Encoding authentication credentials
  • Email attachments (MIME encoding)

Features:

  • Supports UTF-8 encoding including emojis and special characters
  • Instant encoding and decoding with no server requests
  • Privacy-focused: all processing happens in your browser
  • Easy mode switching between encode and decode
  • One-click copy to clipboard functionality

How It Works

Encoding Process:

  1. Takes your input text (including Unicode characters)
  2. Converts it to binary representation
  3. Groups binary data into 6-bit chunks
  4. Maps each chunk to a Base64 character
  5. Returns the encoded string

Decoding Process:

  1. Takes the Base64 encoded string
  2. Maps each character back to 6-bit binary
  3. Combines the binary data
  4. Converts back to original text format
  5. Returns the decoded string