Convert an SVG into a CSS background-image or an optimized data URI — URL-encoded or Base64 — ready to paste into your stylesheet. No hosting and no extra HTTP request.
Embedding an SVG directly in CSS as a data URI removes a network request and keeps the icon versioned with your styles. URL-encoding is usually smaller than Base64 for SVG, so this converter produces an optimized background-image value you can paste straight into a rule.
background-image or a raw data URI, URL-encoded or Base64.URL-encoding is normally smaller and more readable for SVG than Base64. The tool gives you both so you can compare.
A data URI removes an HTTP request and keeps the graphic versioned alongside your styles — handy for small icons and backgrounds.
Yes. Run the Optimize tab (SVGO) first to shrink the markup, which makes the resulting data URI smaller too.
No. The conversion runs entirely in your browser.