Tối ưu SVG
Tối ưu file SVG: giảm dung lượng, bỏ markup thừa, giữ graphic nhẹ cho web mà không vỡ vector.
Drop SVG file here
or click to select, or paste SVG code below
SVG Optimiser feeds your markup to SVGO and reports the size before and after. It is meant for icons, illustrations, and exported assets where you want the smallest possible payload while keeping the picture identical. The original file never leaves your device.
It runs SVGO's preset-default plugins together with removeDimensions and a removeAttrs rule that strips data-* attributes. Multipass is enabled, so SVGO repeats the passes until the output stops shrinking.
removeDimensions deletes width and height when a viewBox is present so the SVG scales freely in CSS. If you need fixed pixel dimensions, set them on the surrounding element or in a class.
No. SVGO runs in your browser through its browser bundle. The file or pasted code stays on your device, and the preview is rendered from a local blob URL inside an img tag for safety.
Aggressive defaults can collapse paths, drop seemingly unused IDs, or merge styles in ways that break references. If something looks wrong, compare the optimised output with the original and remove the offending parts before saving.