ListFan
Design · Free

SVG path compactor

Remove redundant whitespace from an SVG path string. Preserve the shape without rounding coordinates.

01Enter your values

Runs in your browser
SVG / path

02SVG path compactor

Runs in your browser

How it works

Remove redundant whitespace from an SVG path string. Preserve the shape without rounding coordinates.

Runs in your browser

Discovery source

Your data stays yours

Inputs are processed on this page and are never sent to a server.

About this tool

Remove redundant whitespace from an SVG path string. Preserve the shape without rounding coordinates.

Optimize SVG markup or compact path whitespace; check the resulting graphic in your own design.

Use tool ↑

How to use it

  1. Enter your values

    Text · Decimal places

  2. Calculate / generate

    Remove redundant whitespace from an SVG path string. Preserve the shape without rounding coordinates.

  3. Result

    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="#2855e8" d="M10 10h80v80H10Z"/></svg>

Calculation method

Optimize SVG markup or compact path whitespace; check the resulting graphic in your own design.

Example scenario

SVG path compactor

Text
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="#2855e8" d="M 10 10 L 90 10 L 90 90 L 10 90 Z"/></svg>
Decimal places
3
Result
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="#2855e8" d="M10 10h80v80H10Z"/></svg>

Frequently asked questions

How should I interpret the result?

Optimize SVG markup or compact path whitespace; check the resulting graphic in your own design.

Where does my data go?

Calculations run on your device. Form inputs are not sent to a server.