Advertisement
📢 728×90 Leaderboard
🔐

Base64 Encode / Decode

Encode text to Base64 or decode Base64 strings back to text

Result will appear here...
0 input chars
0 output chars
Advertisement
📢 728×90 Leaderboard

About Base64 Encode/Decode

Base64 is a binary-to-text encoding scheme that represents binary data using only 64 printable ASCII characters. It's widely used in web development for encoding binary data in text contexts.

Common Use Cases

  • Embedding images in HTML/CSS as data URIs (data:image/png;base64,...)
  • Encoding credentials in HTTP Basic Authentication headers
  • Encoding binary data in JSON payloads
  • Email attachments (MIME encoding)
  • Encoding data in URLs (use URL-safe mode)

URL-Safe Base64

Standard Base64 uses + and / characters, which have special meanings in URLs. URL-safe Base64 replaces + with - and / with _ to make the encoded string safe for use in URLs without percent-encoding.

Frequently Asked Questions

Is Base64 an encryption method?
No! Base64 is an encoding scheme, not encryption. It's easily reversible and provides no security. Anyone who sees the Base64 string can decode it instantly. Don't use it to protect sensitive data.
How much larger is Base64 data compared to original?
Base64 encoding increases data size by approximately 33% because 3 bytes of binary data become 4 Base64 characters (each representing 6 bits).