Base64 Encode & Decode
Encode text to Base64 or decode Base64 to text. Free online Base64 encoder and decoder with instant conversion.
Output will appear here...
What is Base64 Encode & Decode?
Base64 is a binary-to-text encoding scheme that represents binary data as an ASCII string. It converts every 3 bytes of binary data into 4 characters from a 64-character alphabet (A-Z, a-z, 0-9, +, /). Base64 is commonly used in email encoding, data URLs, JSON web tokens, and embedding images in HTML/CSS.
How to Use
- Select Encode or Decode mode using the buttons above the input area
- Paste or type your text in the left panel
- The converted result appears instantly in the right panel
- Use the Swap button to reverse the direction and continue working
- Click Copy to copy the result to your clipboard
Examples
Encode text
Decode Base64
Related Tools
URL Encoder/Decoder
Encode or decode URL components instantly. Free online URL encoder and decoder for special characters.
JWT Decoder
Decode and inspect JWT tokens instantly. Free online JWT decoder with header, payload, and expiration analysis.
Basic Auth Generator
Generate and decode HTTP Basic Authentication headers instantly. Free online Basic Auth header generator.
HTML Entity Encoder/Decoder
Encode or decode HTML entities instantly. Free online HTML entity encoder for special characters.
Frequently Asked Questions
When should I use Base64 encoding?
Use Base64 when you need to embed binary data (like images or files) in text-based formats such as HTML, CSS, JSON, or XML. It's also used in email attachments (MIME), data URLs, and authentication headers.
Does Base64 encoding compress data?
No. Base64 encoding increases data size by approximately 33%. It's an encoding scheme, not compression. Use gzip or other compression algorithms to reduce size.
Is Base64 encoding secure?
No. Base64 is encoding, not encryption. Anyone can decode it. For security, use encryption (AES, RSA) instead. Base64 is sometimes confused with encryption but provides zero security.