Browser support
CSS helpers
How to use
Paste your SVG markup
Drop the full <svg> element into the input box, or click the Sample button to load a demo checkmark. Clear resets the field when you want to start over.
Pick encoding and a CSS helper
Choose Modern (URL-encoded, smaller and readable) or Legacy (base64 for IE9+). Then select a wrapper under CSS helpers: URL wrapper, basic or advanced background-image, CSS bullets, or Inside class.
Check the preview and copy
Your graphic renders over a checkered preview strip, and the Data URI size in KB appears under the output. Click Copy CSS once it looks right.
Why SVG to CSS Converter
- Embed SVGs directly in CSS as Data URIs — one fewer HTTP request per icon or background.
- Modern URL-encoding keeps the output readable and ~33% smaller than base64.
- Legacy base64 mode for IE9+ and maximum compatibility.
- Five output formats: bare url(), basic and advanced background-image, list bullets, or a complete CSS class.
- Live preview renders your SVG so you can confirm it before copying.
- Runs entirely in your browser — your SVG never leaves your machine.