Skip to content
Media Forge

SVG Optimiser

SVG optimizer powered by SVGO: strip editor bloat from SVG files and minify them without changing how they look, with a before and after preview.

  • #svg optimizer
  • #svgo online
  • #minify svg
  • #svg
  • #optimise
  • #minify
  • #svgo
  • #vector
  • #compress
100% client-side

Runs in your browser. Your data never leaves this device.

The Workbench
SVG Optimiser — workspaceLive

Drop SVG file here

or click to select, or paste SVG code below

Network requests0
Bytes uploaded0
Trackers fired0
The Guide

About SVG Optimiser

/01 Stripping the bloat out of SVG files

SVGs exported from design tools carry a great deal that the browser does not need: editor metadata, hidden layers, empty groups, comments, excessive coordinate precision and unused definitions. Removing it commonly cuts the file substantially without changing a single visible pixel.

Paste or load an SVG and get the minified version back.

/02 What is safe to remove and what is not

Editor metadata, comments and unused definitions are always safe. Coordinate precision is the biggest saving — designers routinely export coordinates to many decimal places when two or three are indistinguishable on screen, though going too far distorts curves.

Be careful with anything referenced from outside the file. Stripping IDs breaks CSS or JavaScript that targets them, and removing title or description elements removes the accessible name a screen reader depends on. Always compare the optimised output against the original before shipping it.

/03 An SVG optimizer powered by SVGO

SVG files exported from Illustrator, Inkscape, Figma or Sketch carry far more than the drawing. They include editor metadata, comments, hidden layers, default attribute values that change nothing, and path coordinates written to many more decimal places than any screen can show. That bloat often makes up a large share of the file.

This SVG optimizer runs SVGO, the open-source optimiser that most build pipelines and icon libraries rely on, directly in your browser with multipass enabled, so it keeps optimising until no further savings are found. Paste SVG code or drop a file, and you see the original and optimised versions side by side, with both file sizes and the percentage saved. Copy or download the result.

The current SVGO defaults keep the viewBox, which is what lets an SVG scale cleanly, so optimised icons still resize properly in CSS.

/04 Optimising SVGs for websites

Optimised SVG is ideal inline in HTML, where it can be styled with CSS and loads with no extra request. If you rely on IDs or class names for CSS or JavaScript, check them after optimising, since unused-looking IDs may be shortened or removed.

On a server, SVG also compresses extremely well with gzip or Brotli because it is plain text, so an optimised and compressed icon is often only a few hundred bytes over the network. For React projects, SVGR converts SVG into components and uses SVGO under the hood.

FAQ

Questions about SVG Optimiser.

How much smaller will my SVG get?
It depends entirely on the source. Files exported from design tools often shrink dramatically because most of their content is editor metadata; hand-written SVGs may barely change.
Will optimising break my icon?
It can if the SVG is animated or styled from outside, since removing IDs breaks those references. Check the result, and keep the original.
Should I keep the title element?
Yes, if the graphic conveys meaning. It provides the accessible name for screen readers, so removing it costs accessibility for a handful of bytes.
What is SVGO?
SVGO is the widely used open-source SVG optimiser behind many build tools and design exports. This tool runs its browser build directly in the page with multipass enabled, so you get the same optimisation without installing Node or a command-line tool.
Does optimising remove the viewBox?
No. The viewBox is what lets an SVG scale to any size, and the current SVGO defaults keep it, so optimised files still resize correctly with CSS width and height.
Can I use the optimised SVG in React?
Yes. Paste it inline after renaming attributes such as class and stroke-width to className and strokeWidth, or convert the file with SVGR, which turns SVGs into React components and uses SVGO itself.
Related
WiFi File Transfer

Transfer files from phone to PC, PC to phone or phone to phone over WiFi. Scan a QR code to connect — no app, no cable, no upload and no file size limit.

wifi file transferphone to pcpc to phone
Placeholder Generator

Placeholder image generator: make PNG or SVG placeholders at any size, colour and label, with presets for banners, avatars and social cards.

placeholder image generatorplaceholder imagedummy image
Matte Generator

Add a white border to a photo, or a colour, blur or gradient frame, so it fits square, 4:5 portrait or 9:16 story posts uncropped.

add white border to photophoto borderinstagram border
Social Media Cropper

Resize an image for Instagram, Bluesky or Threads: crop to 1:1, 4:5, 1.91:1, 9:16 and more at full resolution, right in your browser.

resize image for instagraminstagram photo sizeinstagram crop
Seamless Scroll Generator

Instagram carousel splitter: slice a wide panorama into square or 4:5 portrait panels that scroll seamlessly across swipes.

instagram carousel splitterpanorama carouselseamless carousel
Watermarker

Add a watermark to a photo: place your logo or any PNG over an image with position, size, padding, opacity and blend mode controls.

add watermark to photologo watermarkwatermark image
Image Splitter

Online image splitter: cut any image into an even grid of tiles for Instagram grids, sprite sheets and printing, then download every tile.

image splittersplit imageinstagram grid splitter
Image Clipper

Crop transparent image padding: trim the empty transparent border from a PNG so it sits at its true size, in one click.

crop transparent imagetrim transparent pngremove transparent padding
Favicon Generator

Favicon generator: turn any image into 16 to 512 pixel PNG icons plus a favicon.ico file, with the HTML link tags ready to paste.

favicon generatorfavicon icoapple touch icon
Paste Image

Paste image online: press Ctrl+V or Cmd+V to paste a screenshot or copied image, crop it, and download it as a PNG file.

paste image onlineclipboard to imagesave screenshot as png
Image Converter

PNG to JPG converter and more: convert images between PNG, JPEG, WebP, JPEG XL, GIF, BMP, TIFF and ICO in batches, with resizing.

png to jpg converterjpg to pngconvert to webp
Image Stitcher

Combine images into one: join photos side by side, stacked, or in custom grid layouts, with spacing and background colour, then download.

combine imagesmerge photoscombine images into one
Image Tracer

Free image to SVG converter: trace a PNG, JPG, WebP or GIF into real scalable vector paths, with presets and detail control.

image to svg converterpng to svgvectorize image
Artwork Enhancer

Add noise to image artwork: lay fine grain over flat artwork and gradients to remove colour banding and add texture, with opacity and scale control.

add noise to imagegrain texturefilm grain effect