Image to Base64 Converter
Convert a PNG, JPEG, GIF, WebP or SVG file to raw Base64 or a data URL.
Encode an image
PNG, JPEG, GIF, WebP or SVG, up to 5 MiB.
When to use a data URL
Use the whole data URL as an image source in HTML or inside url(...) in CSS. Choose raw Base64 when a field expects only the encoded bytes.