Image to Base64
Convert images to Base64 encoded strings and data URLs. Free, fast, and works entirely in your browser with no sign-up required.
Upload Image
Drop an image here or click to upload
PNG, JPG, GIF, WebP, SVG, BMP, ICO
Live Preview
Image preview will appear here
About Base64 Encoding
Common Use Cases
- Embed images directly in HTML/CSS
- Send images in JSON APIs
- Store images in databases
- Email inline image attachments
- CSS sprites as data URIs
Output Formats
- Data URI — full embeddable string
- Raw Base64 — pure encoded data
- CSS — ready for background-image
- HTML — complete <img> tag
- Markdown — image syntax
Size Impact
Base64 encodes every 3 bytes as 4 ASCII characters, increasing size by ~33%. Best suited for small images (<10 KB) to avoid HTTP request overhead; for larger images, external files with proper caching are more efficient.
All processing is 100% local — no data leaves your browser.