Skip to content
Marvin's Toolbox.

Search tools

Type to filter all tools

SVG Optimizer

Shrink an SVG with SVGO. Paste the markup or drop a file, toggle every optimizer plugin individually, set the numeric precision and multipass, and compare the size before and after. Copy the result or download it as a file.

Everything runs locally in your browser. Your data never leaves your device.

Drop an .svg file here or click to browse. You can also paste the markup below.

Optimizer options

3 decimals

Document cruft

Styles and colors

Attributes and IDs

Shapes and paths

Structure

Sizing and root

Next steps

Send this tool's output straight into another tool.

Shrink any image with as little quality loss as possible. Pick a WhatsApp, Instagram or Discord preset, or switch to Custom to hit a hard file size or a fixed quality, downscale with aspect-locked resolution sliders, and keep or strip EXIF metadata. Live preview, multiple images at once.

Convert images between JPEG, PNG, WebP and AVIF. Drop in as many as you like, pick a format, and dial in the quality for the lossy ones. When you convert to JPEG, choose the colour that fills any transparency. Live previews, download one or all at once.

See and edit the EXIF metadata inside a photo, then download it with your changes or save a copy with all metadata removed, GPS included. It reads JPEG, PNG, HEIC and more, and edits JPEG files.

Draw arrows, boxes, text, highlights and numbered steps on a screenshot, blur or pixelate anything private, crop the result and add a watermark. The finished image downloads as PNG or JPG or goes straight to your clipboard.

Shrink an SVG with SVGO. Paste the markup or drop a file, toggle every optimizer plugin individually, set the numeric precision and multipass, and compare the size before and after. Copy the result or download it as a file.

Hash text or a file with MD5, SHA-1, SHA-256, SHA-512, SHA-3, BLAKE2, BLAKE3, CRC32 and more, all computed live as you type. Compare against an expected checksum and copy any digest.

Verify a checksum online: drop a file, paste the expected checksum and see instantly whether they match. The hash type is detected from the checksum itself, covering MD5, SHA-1, SHA-256, SHA-512, BLAKE3, CRC-32 and more, and sha256sum lines or whole checksum files can be pasted as-is.

Compress text or a file with gzip, deflate, brotli or Zstandard and see the size before and after, the compression ratio and how long it took. One click tries every method and recommends the smallest result.

Decompress gzip, deflate, brotli or Zstandard data from a file or pasted Base64 and read the result as text or download it. Detects the format from the magic bytes where possible, with a manual override.

About the SVG Optimizer Tool

This tool runs your SVG through SVGO, the standard SVG optimizer, right on the page. Paste the markup or drop a file and the optimized result appears next to a before-and-after size comparison, usually a good deal smaller with no visible difference.

Every SVGO plugin is a switch you can flip. Start from the safe defaults, then enable the aggressive extras or disable anything that changes your file in a way you do not want. Numeric precision and multipass are exposed too.

What you can do

  • Minify an SVG exported from Figma, Illustrator or Inkscape.
  • Toggle each SVGO plugin individually to control exactly what is rewritten.
  • Reduce path precision to trade invisible detail for smaller files.
  • Compare the size before and after, with the saving as a percentage.
  • Preview the optimized SVG rendered next to the original.
  • Copy the optimized markup or download it as a file.

How to use the SVG Optimizer

  1. 1Paste SVG markup into the input, or drop an .svg file on it.
  2. 2Check the preview and the size numbers.
  3. 3Flip plugins on or off if the defaults removed something you need, like IDs you reference from CSS.
  4. 4Copy the result or download the optimized file.

When a plugin bites

A few plugins are worth knowing by name. removeViewBox deletes the viewBox attribute, which breaks responsive scaling, so it stays off here by default. cleanupIds renames or strips IDs, which matters when CSS or JavaScript outside the file references them. convertShapeToPath turns rectangles and circles into paths, which is fine for display but loses the semantic shape. If an optimized file misbehaves, turn plugins off in small groups to find the culprit.

What the numbers mean

The precision setting controls how many decimal places coordinates keep. SVGs exported from design tools often carry six or more decimals, far below what any screen can show. Three decimals is safe for icons, and one or two often still looks identical while cutting the file substantially. Multipass simply reruns the optimizer until the output stops shrinking.

Credits

Open source does the heavy lifting in this tool. Thank you to:

  • SVGO

    The standard optimizer for SVG files.

Everything this site builds on is listed on the credits page.

Create barcodes in dozens of formats, from EAN-13, UPC-A and Code 128 to QR Code, Data Matrix and PDF417. Type the content, tune the size, colors and text options, and download the result as PNG or SVG.

Turn any image into a complete favicon set: a multi-size favicon.ico, PNG icons in every common size, Apple touch and Android icons, a web manifest and the HTML tags to paste into your page. Download everything as a zip.

Compare two images and see exactly what changed. Slide between them horizontally or vertically, blink or blend them over each other, view them side by side, and let the pixel diff highlight every changed region with a difference percentage.

Shrink any image with as little quality loss as possible. Pick a WhatsApp, Instagram or Discord preset, or switch to Custom to hit a hard file size or a fixed quality, downscale with aspect-locked resolution sliders, and keep or strip EXIF metadata. Live preview, multiple images at once.

Enter a resolution to get its simplified aspect ratio, or start from a ratio and one side to get the missing dimension. Knows the common ratios like 16:9, 4:3 and 21:9 and shows how close your size is to each.

See any image the way people with a color vision deficiency see it. Upload a picture and preview protanopia, deuteranopia, tritanopia, the milder anomalous forms and monochromacy next to the original, then download any simulation as a full resolution PNG.