SvgX cleans up SVGs exported from design tools and icon sets, shows you how they render on light and dark backgrounds, and turns them into whatever your project needs: inline SVG, a CSS data URI, a Vue or React component, or a PNG at any resolution. Everything stays in your browser.
Paste the code, open a file, or drop an .svg anywhere on the page. You can edit the code directly.
SVGO removes editor metadata, comments and redundant precision. Compare the result with the original on transparent, white and black backgrounds.
Copy the format you need, download the optimized .svg, export PNG or WebP at 1× to 4× or an exact width, or download a complete favicon set.
SVGO (SVG Optimizer) is the most widely used open-source SVG optimizer, also used inside many build tools and icon libraries. It removes editor metadata, comments, empty groups and excess decimal places, and rewrites paths more compactly, without changing how the SVG looks.
favicon.ico (16, 32 and 48 px, for older browsers and anything that requests /favicon.ico directly), icon.svg (the tab icon in current browsers), apple-touch-icon.png (180 px, for iOS home screens), icon-192.png and icon-512.png (Android and PWAs, referenced from manifest.webmanifest), and head.html with the link tags. It's the minimal set today's browsers need.
iOS shows transparent areas as black, so the Apple touch icon is filled with the background color you pick and given some padding. All other sizes stay transparent.
No. Parsing, optimization and image export all run in your browser.
Yes. SvgX never inserts your SVG into the page; it is shown as an image, where scripts and event handlers don’t run.
For icons and illustrations you size with CSS, yes. The viewBox keeps the proportions. Keep them if the SVG is used in an img tag without CSS sizing.
For one-color icons, so they take the color of the surrounding text, including hover states and dark mode. Multi-color artwork would lose its colors.
Icons that use currentColor have no color of their own. SvgX previews them in the text color that suits each background; set color in your CSS where you use them.