Convert images to Base64 encoded strings and data URIs.
Image to Base64 Converter in 3 simple steps
Select a JPEG, PNG, SVG, or WebP image.
The Base64 string and data URI are generated instantly.
Copy the Base64 string or data URI for your code.
Get a complete data URI you can paste directly into HTML or CSS.
Works with JPEG, PNG, SVG, GIF, and WebP.
See the original file size and encoded string length.
Encoding happens immediately in your browser.
Embedding images directly in HTML or CSS as Base64 data URIs eliminates extra HTTP requests and can speed up page loading for small images. Our converter generates Base64 strings and ready-to-use data URIs.
Perfect for embedding icons, small graphics, and thumbnails directly in your code.