All tools
Image to base64
Turn an image into a data URI, with the CSS rule ready beside it.
imagedev
Drop an image, or paste it
PNG, JPEG, WebP, GIF or SVG. It never leaves your browser.
Base64 carries three bytes in four characters, so a data URI is always about a third bigger than the file it came from. That is a fair trade for a small icon that saves a request, and a poor one for a photo. The file is read by this tab alone, so nothing is uploaded.