Image to Base64 Converter

Upload an image to get its Base64 string — as a Data URL, raw Base64, CSS background-image, or HTML <img> snippet. Switch to Base64-to-Image mode to preview and download a decoded image. Your files never leave your device.

All processing is done locally — your image never leaves your browser.

Upload Image

Drop an image here or click to browse

JPEG, PNG, GIF, WebP, SVG, BMP, ICO — up to 50 MB

Base64 Output

Frequently Asked Questions

Why would I convert an image to Base64?
Base64 encoding embeds images directly in HTML, CSS, or JSON without needing a separate file URL. Common in email templates and data URIs.
Can I convert Base64 back to an image?
Yes. Switch to 'Base64 to Image' mode, paste your Base64 string, and download the decoded image.
Is this tool free to use?
Yes, completely free. No account, no subscription, no hidden limits.
Are my files safe? Do you upload them?
Your files never leave your device. All processing runs locally in your browser using JavaScript — nothing is sent to any server.
Does it work on mobile?
Yes, it works on all modern browsers including mobile Safari and Chrome on iOS and Android.