Get started
- Import or paste. Import an .svg file, choose a sample, or paste SVG into SVG markup. Apply changes to validate and preview it.
- Edit geometry. Open Path data and select a path. Paste a d attribute value (starting with M or m) or one complete <path> element, then Apply changes. Add path creates another editable path and preserves existing styling.
- Clean selectively. Select an element in Inspect & clean. Remove an attribute with ×, or remove the element and all its children. Undo restores the previous applied version, and Redo reapplies it. A new applied edit clears the redo history.
- Optimize. Start with the default switches and precision 3. Multipass repeats optimization to find more savings. Lower precision reduces coordinates and may change curves; increase it for intricate icons.
- Compare and export. Check both previews and the byte savings. Gzip sizes estimate compressed transfer size, not the downloaded SVG size. Copy SVG or Download SVG exports the current applied result; Copy paths exports only d values.
Download formats and compression details
Choose SVG or PNG in the top download bar. SVG stays editable vector markup. PNG exports a transparent image in the preview color; choose its longest side from 24 to 1024 pixels. The icon aspect ratio is preserved. After compressing paths or optimizing SVG, the size summary shows original bytes, resulting bytes, and percentage saved. Path-data sizes count d values only; SVG sizes count the whole file. Editing, loading another icon, or Undo clears the previous summary.
Compress path data
Use Compress path in the Source header to shorten d data. In Path data mode it compresses the selected path; in SVG markup mode it compresses all paths. Styling, transforms, and other attributes are retained. Coordinates use five decimal places, so very small rounding changes are possible. A longer result is discarded. Undo restores the original path data.
Convert strokes to shapes
Open-line icons such as the plus icon need their stroke to remain visible. In the Convert stroke to shape section, choose Convert to shape to turn the stroke into closed, filled geometry with the same thickness, caps, and joins. Removing a stroke attribute through the checkboxes or inspector performs this conversion first. Undo restores the original editable centerlines. Stroke-only paths with numeric widths are supported; mixed fill-and-stroke paths and gradient strokes are kept unchanged with an explanation.
Export simple path markup
In Path markup, expand Choose attributes and uncheck stroke, fill, opacity, transform, or other attributes you want to omit. Empty attributes are omitted automatically; d is always included. Uncheck Include parent <g> tags to export only paths. This also drops inherited group effects and can change appearance. Copy path markup exports your selection. Use this markup in the icon applies it to the preview and full SVG export; Undo restores the prior version. Path fragments need an SVG wrapper and may need definitions for referenced gradients, masks, or clipping paths.
Optimization settings
Keep viewBox for scaling. Keep title and description for accessible meaning. Only remove IDs when nothing outside the file references them. Merge paths, group collapse, and shape conversion change the structure, which can affect CSS selectors and future editing. Removing width and height makes the icon responsive; size it with CSS. Pretty markup is easier to read but larger.
Safety & limits
The always-on safety filter removes scripts, event handlers, external resources, unsupported tags, and unsafe styles before preview. SVGO then reduces the sanitized SVG. Unsupported filters, text, animation, and use references may change an imported image. This utility focuses on icons; it does not preserve every SVG feature. Files stay in your browser and edits are not saved after closing.
Invalid edits leave the last valid preview visible and disable export. File limit: 256 KB. Path-only exports omit styling and parent transforms. Use full SVG export to retain them. Separate arc flags with spaces when entering path data.