SVG Path Simplifier
Trim the decimals in SVG path coordinates to shrink your file size
This tool cleans up the needlessly long decimal coordinates inside an SVG path's d attribute to cut down file size. SVGs exported from design tools often carry six or seven decimal places, and you can round them to whatever precision you want — or all the way to whole numbers — to optimize the output. Everything is processed entirely in your browser, so the code you paste in is never sent to a server.
도구를 불러오는 중…
🔒 Everything runs 100% in your browser. Your files and input are never uploaded to any server.
How to use
- Paste your full <svg> code or just a path's d attribute value into the input box.
- Use the decimal-places slider to set the precision you want, or check "Round to integers."
- Compare the original and simplified previews and check how much size you saved.
- Click "Copy result" to grab the simplified code and use it right away.
FAQ
- Will cutting decimals distort the shape?
- Rounding to just one or two decimal places usually leaves vector shapes visually identical while noticeably shrinking the file.
- Does it handle both a full SVG file and a bare path value?
- Yes. It automatically detects and processes complete markup with an <svg> tag as well as a standalone d attribute value.
- Does it work on SVGs with multiple paths?
- Yes. It finds every d attribute in the code at once and simplifies them all with the same settings.
