Skip to main content
忆云竹

SVG optimizer and PNG converter

Clean and optimize SVG files, compare their size and appearance, then download SVG or export a PNG with custom dimensions and a transparent or solid background.

One UTF-8 SVG, up to 1 MiB and 5,000 elements. You can also drop a file here.

Coordinate precision

Lower precision can change fine details. ViewBox, IDs and accessible title/description text are retained.

Artwork preview

Add an SVG file or paste source to preview the result.

Original size
Output size
Size change

Export a PNG

Up to 8,192 px per side and 20 million pixels. A different canvas ratio may leave margins.

View output source
Processed in this browser. Nothing is uploaded or saved.

About this tool

Prepare an icon, illustration or logo for a page or document. Inspect the actual optimized artwork and file size before saving; PNG export provides a ready-to-use raster image.

How to use

Choose a UTF-8 SVG file or paste its source to optimize it automatically. Compare the byte counts and switch to the cleaned original in the same preview. Balanced mode rounds geometry to three decimal places; choose five for fine detail or two for smaller output. Check thin lines, small lettering and gradients before replacing the source file.

This tool prepares static artwork. Scripts, event handlers, external resources, embedded bitmap images, foreign HTML and animation are removed; a notice appears when unsupported content is stripped. Local gradients, masks, supported presentation styles and internal references can remain. DOCTYPE, custom entities, recursive references and excessive complexity are rejected. Both previews use cleaned images; the unsafe original is never rendered.

SVG export preserves viewBox, IDs and title/description text while removing comments, editor metadata and redundant geometry where possible. It does not convert text to outlines or fetch fonts. If an optimized version is larger, the smaller cleaned version is used. The byte comparison includes safety cleanup, and reduction is not guaranteed.

For PNG, set width and height, optionally link the dimensions, and choose transparency or a solid background. The artwork keeps its SVG aspect-ratio setting inside that canvas; changing the canvas ratio can leave empty margins. Limits: one 1 MiB SVG, 5,000 elements, depth 64, and a bounded expansion of internal references. PNG allows 1–8,192 pixels per side and at most 20 million pixels. Processing is local, with no upload or saved input. Keep the original file and inspect the exported result.

Common questions

Why can the cleaned original look different from my file?

Both previews exclude scripts, animation, external assets, embedded bitmap images and foreign HTML. Unsupported styles are also removed. This prevents active content from running but can remove visible artwork. The removal notice is part of the result; compare with your trusted original before replacing it.

Will every SVG become smaller?

No. A compact file may already contain little redundancy, and required cleanup or dimensions can add bytes. The tool compares the optimized and cleaned versions and keeps the smaller safe one. Lower coordinate precision can help, but may affect fine details.

Will text look identical on another computer?

Not necessarily. Text remains text and uses fonts installed on the device; remote fonts are not loaded. Convert important lettering to outlines in your design application before importing if identical appearance is required. The SVG title and description are retained.

How do PNG dimensions and transparency work?

Width and height define the PNG canvas, with a limit of 8,192 pixels per side and 20 million pixels in total. Linked fields keep the original ratio. A different ratio follows the SVG’s aspect-ratio rule and may leave margins. Use transparency for overlays or a solid background for documents.

Comments

0
to join the discussion.
No comments yet.
Reply thread

Follow the complete conversation chronologically; each reply identifies the specific message it answers.