🧷 Base64Img

Data URLs · CSS/HTML snippets · WebP re-encode · zero uploads

Embed images as data URLs without uploading them

Drop a PNG, JPEG, WebP, GIF or SVG and Base64Img hands you the data URL plus ready-to-paste CSS and HTML snippets — all encoded in this tab. Paste a data URL back in to decode and download the original bytes.

The converter

Drop an image or paste a data URL; copy snippets or download the decoded file.

Mode
Image input

SVG input skips re-encoding (it would lose vector-ness); animated GIFs lose animation when re-encoded.

Output

—
Pro Pro
Batch folder mode and the 10 MB size cap are part of Base64Img Pro

FAQ

Is Base64Img free?

Yes — conversion in both directions is free. Pro ($3.99 once) adds batch folder mode: convert many images at once and export every data URL as a manifest.

Does my image get uploaded?

No. Encoding and decoding run through FileReader, canvas and base64 routines on this device — the page makes no network call at all.

Why is the base64 version bigger than my file?

Base64 packs 3 bytes into 4 characters, so data URLs are about 33% larger. The optional WebP re-encode often shrinks the image itself enough to more than make up for it.

Part of PZTools·ImageSwap·StegoHide·DevToolBox

Support Base64Img

Base64Img runs entirely in your browser — no accounts, no servers, no tracking. A small contribution keeps it that way.

Base64Img Pro · $3.99 lifetime

Payments are processed by PayPal. Nothing about you or your data is stored or sent anywhere by this site.