Free Base64 Encoder & Decoder
Convert text, files, and images to Base64 instantly. URL-safe encoding, drag-drop upload, and batch processing.
Drag & Drop File
or browse to upload
Max size: 10MBDecode Base64 to File
Drag multiple files here or browse
Max 20 filesFast
Real-time processingSecure
100% client-sideUnlimited
No file size limitsFree
No registration neededHow to Use the Base64 Encoder & Decoder
Encoding and decoding Base64 is quick and easy. Our tool offers four modes for different use cases:
- Text Mode: Paste text or Base64 string, click Encode/Decode. Enable "Real-time" for instant conversion as you type.
- File Mode: Drag & drop any file (up to 10MB) to convert to Base64 string. Or paste Base64 to download as a file.
- Image Mode: Upload an image to get Base64 string, HTML <img> tag, and CSS background-image code.
- Batch Mode: Process up to 20 files at once and download results as JSON.
What is Base64 Encoding?
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, +, /) plus "=" for padding. Base64 is widely used in email (MIME), data URIs, and anywhere binary data needs to be transmitted as text.
- Data URIs - Embed images directly in HTML/CSS
- API Payloads - Send binary data in JSON
- Email Attachments - MIME encoding
- JWT Tokens - Encode header and payload
- Credentials - HTTP Basic authentication
- 33% larger - Encoded data is ~33% bigger
- Not encryption - Base64 is NOT secure!
- No compression - Use Gzip for smaller files
- CPU overhead - Processing adds latency
- Cache inefficiency - Data URIs don't cache well
Common Base64 Use Cases
Image Data URIs
Embed small images directly in HTML to reduce HTTP requests. Ideal for icons and logos.
JWT Tokens
Decode JWT tokens to inspect the header and payload without verification.
Email Attachments
Email systems use Base64 (MIME) to encode binary attachments in plain text.
Frequently Asked Questions About Base64
+ and / which have special meaning in URLs. URL-safe Base64 replaces these with - and _, making it safe to use in URLs, filenames, and regex patterns. Our tool supports both with a simple toggle.
= padding adds slight additional overhead.