Input
Output
Image to Base64
Drop image here or click to select
Supports PNG, JPG, GIF, WebP, SVG
Base64 to Image
File to Base64
Drop any file here or click to select
Max recommended: 5MB
Free Base64 Encoder & Decoder Online
Convert text, images, and files to Base64 encoding and back. Our free online tool supports encoding and decoding with various options including URL-safe encoding, line breaks, and padding control.
What is Base64?
Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used to embed images in HTML/CSS, encode data for URLs, transmit binary data over text-based protocols, and store complex data in JSON or XML.
Features
- Text Encoding/Decoding - Convert any text to Base64 and vice versa
- Image Support - Convert images to Base64 data URLs for embedding in HTML/CSS
- File Support - Encode any file type to Base64
- URL-Safe Mode - Use URL-safe characters (+ → -, / → _)
- Drag & Drop - Easy file uploading
- 100% Client-Side - All processing in your browser, no data sent to servers
Common Use Cases
- Embedding images directly in HTML/CSS without external files
- Encoding data for URL parameters
- Storing binary data in JSON
- Email attachments (MIME encoding)
- API authentication tokens
- Data URI schemes for web resources
Frequently Asked Questions
Is Base64 encryption?
No, Base64 is an encoding scheme, not encryption. It's designed for data representation, not security. Anyone can decode Base64 without a key.
Why does Base64 increase file size?
Base64 encoding increases data size by approximately 33% because it converts 3 bytes of binary data into 4 ASCII characters.
Is my data safe?
Yes! All encoding and decoding happens entirely in your browser. No data is ever sent to our servers.
What's URL-safe Base64?
Standard Base64 uses + and / characters which have special meaning in URLs. URL-safe Base64 replaces these with - and _ to avoid encoding issues.