Free Image to Base64 Converter (and Back)
Encode an image to Base64 or decode a Base64 string back to an image, directly in your browser.
Add an image to encode
Choose a JPG, PNG, WebP, GIF, or SVG image.
Maximum 15 MBProcessed in your browser. Your image never leaves your device.
Processed in your browser. Nothing is uploaded.
How to convert an image to Base64
- Choose the "Image to Base64" tab.
- Upload an image.
- Copy the generated Base64 / data URI string.
How to convert Base64 back to an image
- Choose the "Base64 to Image" tab.
- Paste a Base64 string or full data URI.
- Preview and download the decoded image.
How this works
Your browser reads the image file (or decodes the pasted Base64 string) entirely locally using its own built-in FileReader and Blob APIs — no image or string is uploaded, and no server-side processing is involved.
Common use cases
- Embed a small image directly in CSS or HTML as a data URI
- Decode a Base64 image string back into a downloadable file
- Inspect or debug a Base64-encoded image from an API response
Frequently asked questions
Is this converter free?
Yes. It is completely free, with no signup and no limits.
Is my image uploaded anywhere?
No. The conversion happens entirely in your browser. Nothing is sent to Inqita or stored.
What's a data URI?
A data URI embeds the image's data directly in a string (starting with "data:image/...;base64,") so it can be used inline in HTML or CSS without a separate file.
Can I paste just the Base64 string without "data:image/..."?
Yes. If you paste a raw Base64 string without a data URI prefix, it's treated as a PNG by default.
Is there a file size limit?
Yes, images up to 15 MB are supported.