No upload, 100% local, no account

Image → Base64 Converter

Encode any image to a Base64 data URI, or paste a data URI to decode it back to an image. Copy the result or grab the CSS url() snippet. Nothing leaves your device.

How Image to Base64 works

Convert any image to a Base64 data URI directly in your browser, or paste a data URI to decode it back to an image. The tool also generates ready-to-use CSS and HTML snippets. No file is ever uploaded; the conversion is done entirely with the browser's built-in FileReader API.

Useful for embedding small images directly into CSS (background-image), HTML email templates, or JSON payloads without needing a separate file or CDN request.

Frequently asked questions

Are my files uploaded to a server?

No. Your file is read by the FileReader API (readAsDataURL) in your browser tab, it is converted into a Base64 data URL on your own device and shown in the page for you to copy. Nothing reaches Sunasty or any third party. Open your browser's DevTools, go to the Network tab and watch: no request carries your file.

Does Base64 encoding increase file size?

Yes, Base64 encoding increases the data size by roughly 33% compared to the raw binary file. It is best suited for small images (icons, logos under ~10 KB) where the convenience of inlining outweighs the size cost.

Can I convert the Base64 string back to an image file?

Yes. Paste a valid data URI (starting with data:image/...) into the input field and the tool will decode it and let you download the original image.

Does it work offline?

Yes, once the page has loaded. Because the processing happens on your device, you can disconnect from the network and the tool keeps working. This is the clearest proof that your data never leaves your machine.

Is it free? Do I need an account?

It is completely free and requires no sign-up. There are no watermarks, no daily limits and no tracking cookies needed to use the tool.