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.
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.