📥 SVG Path Data
📊 Optimization Stats
📋 Optimized Result
👁️ Preview Comparison
Original
Optimized
Compress SVG path data, remove redundant commands, merge consecutive instructions, trim decimals
Zero Dependencies · Works OfflineOriginal
Optimized
SVG Path Optimizer is a free online developer tool that compresses SVG path d attribute data through multiple optimization strategies. It supports removing redundant command letters, merging consecutive identical commands, trimming decimal places, removing unnecessary close paths, and absolute/relative coordinate conversion. The optimized rendering result is identical, typically reducing 20%-60% of data size. Ideal for SVG icon optimization, web performance, and SVG file compression. All processing happens locally in your browser.
1. Paste SVG path d attribute value into the input box.
2. Adjust optimization options (precision, merge commands, etc.).
3. Click "Optimize Path" to see compressed results and statistics.
4. Compare previews to confirm identical rendering, then copy or download.
Designer-exported SVG icons often contain redundant data. Optimization significantly reduces file size.
Reduce inline SVG data size for faster page loading and rendering.
Optimize path data in SVG fonts to reduce font file size.
SVG path d attributes use command letters + coordinate parameters to describe paths. Uppercase = absolute coordinates, lowercase = relative. Optimization principles: consecutive identical commands can omit subsequent command letters (L 10 20 L 30 40 → L 10 20 30 40); decimals truncated by precision (10.0001→10); integers drop .0 (10.0→10); leading zeros can be omitted (0.5→.5); L commands become H when y is unchanged or V when x is unchanged. These optimizations don't affect rendering.
Compressing path data by removing redundant commands, merging instructions, and trimming decimals.
Typically 20%-60% reduction, depending on original redundancy.
No. Only non-rendering-affecting redundancy is removed. Results are identical.
All SVG path commands: M/L/H/V/C/S/Q/T/A/Z and their lowercase versions.
Depends on the path. Relative is shorter for short consecutive moves; absolute for points far from origin.
No. All optimization happens locally in your browser.