How to use SVG Optimizer and Cleaner
- Paste a supported static SVG or choose one SVG file. A chosen file replaces the source box.
- Choose whether to remove whitespace between shapes. Keep every coordinate unless rounding is intentional; comments and SVG metadata are removed in either case.
- Compare the baseline and cleaned image previews, input/output byte counts and percentage change. Both previews omit comments and metadata.
- Download the cleaned SVG, keeping your original file separately. Review any required attribution or editorial notes before replacing an asset.
Example: SVG Optimizer and Cleaner
Remove a comment and structural whitespace while keeping the sample’s coordinates and significant text spacing.
Options
- Supported static drawing
- Basic shapes, paths, groups and text are supported. A selected SVG file takes precedence over pasted text. CSS, gradients, filters, images, use references and other unsupported features are refused.
- Coordinate precision
- Keep every coordinate is the default. Explicit decimal precision can round numeric geometry attributes and change the picture; text content is not rounded. Compare the image previews at a useful scale.
- Whitespace and baseline
- Structural whitespace can be removed while significant text, title, description and xml:space="preserve" content keep their spacing. Comments and metadata are always removed, including from the baseline preview. Keep the original source for those records.
Supported inputs and limits
- One supported SVG up to 256 KiB, 2,000 elements and 32 levels.
- Numeric geometry values must be finite and within ±1,000,000; optional rounding uses 0 to 6 decimal places.
- Scripts, event attributes, external references, CSS, gradients, filters, images, use references and unsupported constructs are refused.
- Both exported image previews omit comments and metadata, so the baseline is not an untouched original.
- Output can grow; a negative percentage means the normalized output is larger.
More details
This is a conservative static-subset cleaner, without batch input or general geometry optimization.
Where your input is processed
This tool does not upload your inputs. See the limits for anything saved on your device.
Compare the output before replacing an asset
Comments and metadata are removed even when coordinate precision is kept. That can matter if the original carried attribution or editorial notes, so retain any information required by the asset’s licence separately. Compare both previews and the actual output; a supported cleanup may produce a larger file and does not certify that an SVG is safe in every application.
Questions about SVG Optimizer and Cleaner
Can rounding alter the picture?
Yes. Precision reduction is an explicit option and needs visual review.
Will SVG scripts or external resources run?
No. Unsafe or unsupported constructs are refused before preview.
Can cleanup increase the file size?
Yes. Serialization and a small original file can produce a larger result; compare the reported sizes.