Utility #3

Convert SVG to CSS url()

Drop in an SVG and get a compact, URL-encoded string ready for background-image, content, mask-image or list-style-image declarations.

Your SVG

Drop an .svg file here or click to browse

CSS output

The syntax changes required to prepare an SVG for inclusion in a stylesheet url() function are described in cheat sheet 7.