How to Optimize an SVG File and Make It Smaller
Remove comments, metadata and extra whitespace from SVG code and round long numbers, with a live size comparison in your browser.
Why SVGs get bloated
SVGs exported from design tools often contain comments, metadata, editor-specific data and numbers with many decimal places. None of that is needed to draw the image, but it adds to the file size.
How to optimize
Open the SVG Optimizer and paste your SVG. Choose which clean-ups to apply: remove comments, remove metadata and title, collapse whitespace and round numbers. The original size, optimized size and percentage saved update as you change options, then copy the result.
Check the result
Rounding numbers to two decimals normally looks identical, but on very small or detailed graphics it can shift a shape slightly. Untick Round numbers if the picture changes. Removing the title also removes text that screen readers can use, so keep it if accessibility matters.
What it does not do
This is a simple text clean-up. It does not simplify paths, merge shapes or remove unused definitions, so a heavily bloated file may shrink less than it would with a full SVG optimizer.
Mais do blog
O que é a Becoderr? Mais de 120 ferramentas online gratuitas num só lugar
A Becoderr é uma coleção gratuita de mais de 145 ferramentas online para PDFs, imagens, JSON, texto, desenvolvedores e tarefas do dia a dia — privada, rápida e sem cadastro.
Como comprimir imagens sem perder qualidade
Reduza o tamanho das imagens em até 90% mantendo as fotos nítidas. Guia rápido para comprimir JPG e PNG online, grátis e privado.
Como converter um PDF em documento Word editável
Transforme qualquer PDF em um .docx editável que você altera no Microsoft Word, grátis e sem cadastro.