Skip to content
Runs locally — nothing is uploaded

Image to Base64

Turn an image into a data URI to paste straight into CSS, HTML or JSON — or decode a data URI back to a file. Free, instant and 100% private.

Drop an image

or click to browse — PNG, JPG, WEBP, GIF or SVG

Why Base64 an image?

Inline assets

Embed a small icon straight into CSS or HTML — one fewer network request, and it can't 404.

Send in JSON

Carry an image inside an API payload or a data file where a binary upload isn't an option.

Stays private

The encode and decode both run in your browser — the file never leaves your device.

Frequently asked questions

Is this Base64 converter free?
Yes — free, unlimited and no sign-up. Encode and decode as many images as you like.
Are my images uploaded?
No. Both the encode and the decode run entirely in your browser, so the file never leaves your device — safe for private assets.
When should I use a Base64 data URI?
Inline a small image straight into CSS, HTML or an SVG, embed one inside a JSON payload, or avoid an extra network request for a tiny icon. For large photos a normal file is usually better, since Base64 adds about 33% to the size.
Can I decode a data URI back to a file?
Yes — switch to Base64 → Image, paste a full data: URI or raw Base64, preview it, and download the original image.

Export here and keep editing there — your image carries over, with no re-upload.