Image to Base64
Turn an image into Base64 text to place directly in HTML, CSS or emails, with no separate file.
- 1.Select, drag or paste an image.
- 2.Choose the format: data URI, plain Base64, CSS or HTML.
- 3.Copy the code.
Everything is processed in your browser. Your text and files are never sent to a server.Questions about this tool?
Learn more about Image to Base64
Convert images to Base64 and data URIs, ready for HTML and CSS. Accepts PNG, JPG, WebP, GIF and SVG. Free and with no file uploads.
- Should I use Base64 for every image?
- No. Base64 makes the image about 33% larger. Use it for icons and small images, where saving an extra download is worth it.
- Is the image uploaded to a server?
- No. The conversion happens in your browser.