Input Type
Text to Encode
Base64 Output
Quick Actions
How to Use with Files & Images
📄 Working with Files
HTML, JSON, XML, etc.
To Encode:
Click "File" tab → Upload your file → Click "Encode"
Result:
Base64 text appears in the output area
To Download:
Click "Download" button to save as .txt file
To Decode:
Switch to "Decode" mode → Paste Base64 text → Click "Decode"
Save Original:
Click "Download" and rename file with original extension
(e.g., rename "decoded.txt" to "myfile.html")
💡 Tip: The download gives you a text file - just rename it with the correct extension (.html, .json, .xml, etc.)
🖼️ Working with Images
PNG, JPG, GIF, SVG, WebP
To Encode:
Click "Image" tab → Upload your image → Click "Encode"
Result:
Base64 string appears in output
(starts with "data:image/png;base64,")
To Use:
Copy this entire string and paste it into HTML/CSS as a data URI
Example:
<img src="data:image/png;base64,iVBORw0KG...">
⚠️ Note: For images, you typically don't decode back to a file. Instead, use the Base64 string directly in your HTML/CSS as a data URI. To get the image back, paste the data URI into a browser address bar or use an online converter.
💻 Common Use Cases
When Base64 is useful
Encode files to include in JSON/XML
Embed small images directly in HTML/CSS
Send binary files as text through REST APIs
Create self-contained HTML files with embedded images
⚠️ Important Limitations
Things to keep in mind
Anyone can decode it easily
What is Base64?
📖 Definition
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.
🎯 Common Uses
- Embedding images in HTML/CSS
- Encoding data in JSON/XML
- Email attachments (MIME)
- Data URLs for browser
- Storing binary data in text fields
⚡ Features
- 100% client-side processing
- No data sent to servers
- Instant encoding/decoding
- Supports files up to 10MB
- Works completely offline
💡 Tips
- Base64 increases size by ~33%
- Not encryption (easily reversible)
- Use for data transmission, not security
- Combine with compression for efficiency