SVG Path Simplifier
Trim decimal precision in SVG path coordinates to shrink file size
도구를 불러오는 중…
🔒 Everything runs 100% in your browser. Your files and input are never uploaded to any server.
This tool cleans up overly long decimal coordinates inside an SVG path's d attribute to reduce file size. Design tools often export SVGs with 6-7 decimal places of precision, and this lets you round those down to a chosen number of decimals or to whole integers. Everything runs locally in your browser, so your SVG code is never sent to a server.
How to use
- Paste a full <svg> code block or just a path's d attribute value into the input box.
- Adjust the decimal precision slider, or enable 'Round to Integer' for whole-number coordinates.
- Compare the original and simplified previews along with the file size savings.
- Click 'Copy Result' to grab the simplified code.
FAQ
- Will reducing decimal precision distort the shape?
- Rounding to 1-2 decimal places is usually invisible to the eye while noticeably cutting file size, since most designs don't need sub-pixel accuracy.
- Does it work with a full SVG file or just a path string?
- Both. It automatically detects whether you pasted a complete <svg> tag or a raw path d value and processes it accordingly.
- Can it handle SVGs with multiple paths?
- Yes, it finds every d attribute in the pasted SVG code and simplifies them all at once using the same settings.
