Free online tools to generate, calculate, convert, format, transform, and de/en-code.
 

Base64

Encode and decode Base64 strings according to RFC 4648. Base64 is commonly used for encoding binary data in email, JSON, and URLs.


Mode

Encode to Base64


About Base64

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It uses 64 characters (A-Z, a-z, 0-9, +, /) to encode data, making it safe for transmission over text-based protocols.

Common Uses

  • Email Attachments: MIME encoding for attachments
  • Data URIs: Embed images in HTML/CSS
  • JSON/XML: Encode binary data in text formats
  • Authentication: Basic Auth headers, JWT tokens

Variants

  • Standard: Uses +, / characters (RFC 4648)
  • URL-Safe: Uses -, _ instead of +, / for URLs
  • MIME: Line breaks every 76 characters
  • Modified: Various custom alphabets
Alphabet: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/
Example: "Hello" → "SGVsbG8="
Efficiency: 33% larger than original (3 bytes → 4 characters)
Note: Base64 is encoding, not encryption. It doesn't provide security - anyone can decode it. Use proper encryption for sensitive data.

Feedback

Help us improve this page by providing feedback:


Share with