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
Decode from Base64
Accepts standard or URL-safe Base64, padding is optional
Result
Statistics:
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:
Example: "Hello" → "SGVsbG8="
Efficiency: 33% larger than original (3 bytes → 4 characters)
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:
Sending...
Feedback sent. Thank you!
Error occurred!
-
-
-
-
-
-
-
-
- Acceleration
- Substance Amount
- Angle
- Area
- Astronomical
- Base Converter
- Blood Sugar
- Capacitance
- Electric Charge
- Cooking
- Data Transfer
- Data Storage
- Density
- Energy and Work
- Force
- Fuel Economy
- Illuminance
- Inductance
- Length / Distance
- Power
- Pressure
- Electrical Resistance
- Time
- Speed
- Temperature
- Viscosity
- Volume
- Weight
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-