Figma plugin
Search SketchValley illustrations and drop them straight into your Figma frames.
- Search the whole library inside Figma
- Inserts editable vectors, not flat images
- Free, no account needed
Turn any SVG into a Tailwind bg-[url()] class that actually compiles, an icon that changes color with text-*, plain CSS or a data URI. The SVG is cleaned up and shrunk first, you can recolor it, and you get reusable snippets for Tailwind v3 and v4.
Drop one or more .svg files, or paste SVG code, JSX from a React icon library, or an existing data URI.
Background for patterns, dividers and illustrations; Icon mask for icons that follow the text color; img for an image tag. Adjust fit, size and colors while the live preview shows exactly what the class renders.
Copy the Tailwind class, the CSS, or a reusable tailwind.config.js / @utility snippet so you can write bg-wave instead of a long URL.
text-*, hover: and dark mode — something background images can’t do.currentColor, before encoding.bg-[url()] class to get the SVG back.Use an arbitrary value: bg-[url('data:image/svg+xml,…')]. The SVG has to be percent-encoded first, and Tailwind classes can’t contain spaces, so every space, quote, bracket and underscore inside the SVG must be encoded too. Paste your SVG here and copy the finished class — it is tested against the real Tailwind v3 and v4 compilers.
Almost always because the SVG inside it contains spaces or quotes. A space splits the class into two broken classes, and Tailwind silently generates nothing. Underscores also turn into spaces in arbitrary values. This encoder escapes all of those characters so the class compiles.
A background image can’t inherit text color. Switch to Icon mask mode: the SVG becomes a CSS mask over bg-current, so the icon takes the color of any text-* class, like text-indigo-600 or hover:text-white. It works best with single-color icons.
URL-encoding. It is usually 20–35% smaller than base64, compresses better with gzip and stays readable. Use base64 only if a tool or email client requires it — you can switch between both here and compare the sizes.
Yes. The arbitrary-value classes work in both. For icons you reuse, the tool also writes a tailwind.config.js entry for v3 or an @utility block for v4, so you can use short classes like bg-wave or icon-arrow.
Yes. Paste a data URI, a CSS url(…) or a Tailwind bg-[url(…)] class and the tool decodes it back into editable SVG code.
Yes. It removes editor metadata from Illustrator, Inkscape, Figma and Sketch, comments, unused IDs and empty groups, compacts path data and can round decimals — and shows exactly how many bytes you saved. You can also paste JSX from React icon libraries.
No. Everything happens in your browser. Your SVG code never leaves your device.
Download a free SVG illustration from SketchValley, recolor it with the SVG Color Changer, or make one with the AI SVG Generator.
Browse free SVG illustrations →