Image to Base64
Select an image file to convert it to a Base64 encoded string. Toggle the data URI prefix for ready-to-use CSS/HTML output. All processing happens in your browser.
About Image to Base64
This tool converts images to Base64-encoded strings entirely in your browser. No data is uploaded to any server.
- Data URI: With the prefix enabled, the output is ready to use in CSS
background-imageor HTML<img src="...">. - Raw Base64: Without the prefix, you get the raw encoded string.
- Supports JPEG, PNG, GIF, WebP, SVG and other browser-supported image formats.