🔐 Base64 Encoder/Decoder

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

Examples & Information

Encoding Examples

Text:

Hello World!

Base64:

SGVsbG8gV29ybGQh

Text:

Base64 Encoding

Base64:

QmFzZTY0IEVuY29kaW5n

Text:

https://example.com

Base64:

aHR0cHM6Ly9leGFtcGxlLmNvbQ==

About Base64

Base64 is a binary-to-text encoding scheme that represents binary data in ASCII format by translating it into a radix-64 representation.

It uses 64 characters: A-Z, a-z, 0-9, +, and / (with = for padding).

Common Use Cases

  • • Encoding binary data for transmission over text protocols
  • • Embedding images in CSS or HTML (data URLs)
  • • API authentication tokens
  • • Email attachments (MIME)
  • • Storing binary data in JSON or XML
  • • URL-safe data encoding

Technical Details

Character Set

A-Z (26 chars)

a-z (26 chars)

0-9 (10 chars)

+ and / (2 chars)

= (padding)

Encoding Process

  1. 1. Convert text to binary
  2. 2. Group into 6-bit chunks
  3. 3. Map to Base64 alphabet
  4. 4. Add padding if needed

Size Impact

• Base64 increases size by ~33%

• 3 bytes → 4 characters

• Good for small to medium data

• Not efficient for large files