SVG Path Optimizer

Optimise SVG path data for smaller file size and cleaner code. Removes redundant commands, merges segments, applies relative coordinates, and rounds precision.

Drop SVG file to analyse or click to browse

Extract path coordinates, length, bounds & georeference

Visual Path Render

Closed Paths Open Paths

How to Use

1

Upload SVG or paste path

Upload SVG or paste path data.

2

Select optimisations

Choose: round coordinates, use relative commands, merge collinear segments, remove redundant movetos.

3

Copy optimised path

Copy the optimised "d" attribute string with a size reduction report.

SVG Path Optimisation

SVG paths exported from design tools often contain unnecessary precision, redundant commands, and inefficient segment representations. This optimizer applies a series of lossless and configurable lossy optimisations to reduce path data size while preserving the intended shape.

Real-World Examples & Use Cases

Web Performance

Optimise SVG icon paths to reduce file size before including them in a web application.

Inline SVG

Minify SVG path data before inlining in HTML to reduce markup size.

Frequently Asked Questions

How much size reduction is typical?
Path optimisation typically reduces path data by 30–60%. Rounding to 2 decimal places alone often saves 20%.
Does this change the visible shape?
Rounding coordinates may cause sub-pixel changes. Collinear segment merging and redundant command removal are visually lossless.

Related Tools

Explore other tools in this category.

Looking for something else?