Base64 Encoder/Decoder

Encode text to Base64 or decode Base64 strings back to readable text. Perfect for data encoding and API work.

Characters: 0 Lines: 0

About Base64 Encoding

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used in web development, email systems, and data storage.

Common Use Cases

  • Data URLs: Embedding images directly in HTML/CSS
  • API Authentication: Basic authentication headers
  • Email Attachments: MIME encoding for binary files
  • Data Storage: Storing binary data in text-based systems
  • URL Safe Data: Transmitting data in URLs safely

How It Works

  • Encoding: Converts text/binary data to Base64 string
  • Decoding: Converts Base64 string back to original data
  • Character Set: Uses A-Z, a-z, 0-9, +, / and = for padding
  • Size Impact: Increases data size by approximately 33%

Tips

  • Base64 is encoding, not encryption - it's easily reversible
  • Use for data transmission, not security
  • Perfect for embedding small images in CSS/HTML
  • Essential for API authentication tokens

Examples

Text: "Hello World!"
Base64: SGVsbG8gV29ybGQh
Text: "user:password"
Base64: dXNlcjpwYXNzd29yZA==