Encode images to Base64 data URIs with ready-to-paste CSS and HTML snippets, or decode a data URI back to an image.
In Encode mode, drop an image or pick one with the file picker. The tool generates a full data URI plus ready-to-paste CSS and HTML snippets, and shows the file size and base64 length. Toggle "Raw base64 only" if you don't want the data: prefix. Switch to Decode mode to paste a data URI and preview or download the original image. Everything happens in your browser.