Interface icon systemsClean, recolor, then reuse
Start with the optimizer to remove editor residue while preserving the viewBox. Map fills and strokes to your theme palette, then combine repeated interface icons into symbols. Check the result at 16, 20 and 24 pixels: a file can be smaller yet render worse if precision is reduced too aggressively.
Build an SVG sprite → CSS & component assetsEmbed only when it helps
A data URI is useful for a tiny background icon owned by one component. It is usually the wrong choice for a shared logo because the asset cannot be cached separately. Prefer URL encoding for readable SVG text, keep the original file in source control, and provide visible text when the graphic conveys meaning.
Compare embedding options → Raster fallbacks & social assetsExport at the real display size
SVG is ideal in modern browsers, but some document, email and legacy workflows still need PNG or WebP. Export at the largest required display size, preserve the aspect ratio, and use a white background only when transparency would make the artwork unreadable. Resize downward in the final layout rather than upscale a small raster.
Export PNG or WebP →