1 · Add SVGs
Or paste SVG code
2 · Options
3 · Optimized
Using SVG as a CSS data URI
A data URI puts the whole SVG inside your stylesheet, so a small decorative graphic like an arrow, a divider or a background pattern needs no extra request. The converter optimizes the SVG first, then writes a ready-to-paste background-image rule.
For SVG, URL-encoding is usually 20 to 30 percent smaller than base64, so that’s the default. The Base64 tab is there for tools that only accept base64.
Keep data URIs for small graphics. A large illustration is better as a normal file, which the browser can cache on its own and load only where it’s used.
Questions
Why are the quotes changed?
Double quotes inside the SVG are swapped for single quotes, so the data URI can sit inside url("…") without breaking the CSS.
Are my files uploaded?
No. Everything runs in your browser, inside this page.