Base64 Encode/Decode
Convert text to Base64 and decode Base64 strings instantly
Text to Encode
Base64 Encoded
About Base64 Encoding
Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used for encoding data that needs to be stored and transferred over media designed to deal with text.
Common Use Cases
- Embedding images in HTML or CSS files
- Encoding binary data for transmission in emails
- Storing complex data in URLs
- Encoding authentication credentials
Technical Details
Base64 uses a 64-character alphabet consisting of uppercase and lowercase letters (A-Z, a-z), digits (0-9), plus (+), and slash (/). The equals sign (=) is used for padding at the end when the input length is not divisible by 3.
How to Use
- 1
Select mode
Choose between Encode or Decode mode using the toggle buttons
- 2
Enter input
Type or paste your text (for encoding) or Base64 string (for decoding)
- 3
View result
The encoded or decoded result appears automatically in the output field
- 4
Copy result
Click "Copy to Clipboard" to copy the result
Frequently Asked Questions
What is Base64 encoding?
What is Base64 encoding?
Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It converts binary data into a set of 64 characters (A-Z, a-z, 0-9, +, /) making it safe for transmission over text-based protocols.
When should I use Base64 encoding?
When should I use Base64 encoding?
Use Base64 for embedding images in HTML/CSS, encoding binary data for emails, storing complex data in URLs, encoding authentication credentials, or when you need to transmit binary data over text-only media.
Is Base64 encryption?
Is Base64 encryption?
No, Base64 is not encryption. It's an encoding scheme that can be easily reversed. Never use Base64 alone for securing sensitive data - it provides no security, only data format conversion.
Why does Base64 increase data size?
Why does Base64 increase data size?
Base64 encoding increases the data size by approximately 33% because it uses 4 characters to represent every 3 bytes of data. This overhead is the trade-off for making binary data text-safe.