🍋 Privacy & Security

Base64 Encoder / Decoder

Encode and decode Base64 with URL-safe variants

Free Browser-only No sign-up
chars words sentences lines

Type or paste something into the Input box to enable this button.

Results

Result

About Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 strings. Supports standard (RFC 4648) and URL-safe variants. Shows data URI format, byte size, and encoding overhead.

Step by Step

  1. 1 Enter text to encode or a Base64 string to decode
  2. 2 Mode is auto-detected (or choose encode/decode)
  3. 3 View standard and URL-safe Base64 variants
  4. 4 Copy the result or data URI format

Tips

  • Base64 increases size by ~33% — every 3 bytes become 4 characters
  • URL-safe Base64 replaces + with - and / with _ to avoid URL encoding issues
  • Data URIs (data:text/plain;base64,...) embed content directly in HTML/CSS

Frequently Asked Questions

Is Base64 encryption?
No. Base64 is encoding, not encryption — it's trivially reversible. Never use it to hide sensitive data. It's meant for safe transport of binary data in text-based systems.
When should I use Base64?
Email attachments (MIME), embedding images in CSS/HTML (data URIs), storing binary in JSON/XML, and HTTP Basic Authentication headers.