JSON Stringify and Unstringify
Escape JSON into a string, or peel every layer of escaping off a log payload. Handles double and triple escaping.
Minify and clean SVG files in your browser. Remove editor bloat, optimize numbers and colors, clean unused attributes, and keep your SVGs scalable.
Drop in a batch of SVGs exported from Figma, Sketch, or Illustrator. It strips editor bloat, guarantees a scalable viewBox, and can safely swap flat colors to currentColor — all in your browser, nothing uploaded.
Drop SVG files here, or click to choose
Any number of files. Nothing leaves your browser.
| File | Before | After | Saved |
|---|
Always keeps <title>/<desc>, class, style, and every aria-*/role attribute untouched — those can carry accessibility or CSS meaning this tool can't verify. Unused <defs> entries (gradients, clipPaths, masks, filters, symbols, patterns with zero references anywhere in the file) are always removed, since an unreferenced definition can't affect rendering. What it doesn't do: rewrite path commands (relative/absolute conversion, command merging, shape-to-path conversion) or validate the cleaned output against the original by rendering both — both need a real path parser and a rendering harness to do safely, so treat this as cleanup, not a full path-data optimizer. Always spot-check a batch of your real icons after cleaning.
processed in your browser · never uploaded
Drop one or multiple SVG files into the tool, or choose them from your device. Files are processed locally in your browser.
Enable the SVG cleanup options you need, such as making the SVG scalable, shrinking numbers and colors, swapping flat colors to currentColor, or removing unused IDs and data-* attributes.
Click Clean to process the selected SVG files.
Compare the original and cleaned file sizes to see how much space was saved.
Download individual SVG files or download the complete batch as a ZIP.
| Input | Output | Typical saving | Best for |
|---|---|---|---|
| SVG files | Cleaned SVG | Depends on the SVG | Exported and metadata-heavy SVGs |
| Multiple SVG files | ZIP download | Per-file optimization | Icon and asset batches |
| SVG with width/height but no viewBox | SVG with generated viewBox | Depends on cleanup options | Making fixed-size SVGs scalable |
| SVG with unused IDs/data attributes | Cleaner SVG | Depends on references | Exported design assets |
| SVG with unused | SVG without unreferenced definitions | Depends on the file | SVGs containing unused gradients, masks, filters or symbols |
We ran the same files through the popular alternatives first. These are the gaps we found, and what this tool does instead.
It cleans and minifies SVG files so they are smaller, cleaner, and easier to use on websites without requiring the files to be uploaded to a server.
test: The tool processes SVG files directly in the browser, helping users reduce file size while keeping important SVG structure and functionality intact.SVG Minifier & Cleaner
Clean and minify SVG files without uploading them to a server. Drop one SVG or a batch of SVG files to remove unnecessary editor metadata, clean unused attributes, optimize numbers and colors, remove unused definitions, and keep scalable SVG output.
Everything runs directly in your browser, so your SVG files stay on your device.
An SVG minifier removes unnecessary data from an SVG file to reduce its size while keeping the SVG usable. This can include extra whitespace, editor metadata, unused attributes, unnecessary numeric precision, shortenable colors, and unreferenced definitions.
No. SVG files are processed directly in your browser and are not uploaded to a server.
Yes. You can select or drop multiple SVG files and process them as a batch. The cleaned files can also be downloaded together as a ZIP.
The cleanup operations are designed to preserve the SVG's structure and important rendering attributes. However, SVGs can contain complex CSS, masks, filters, animations, and external references, so you should visually check important assets after cleaning.
When the scalable option is enabled, the tool creates a viewBox from the existing width and height before removing fixed width and height values. This ensures the SVG has a scalable coordinate system before those dimensions are removed.
No. The tool currently focuses on cleanup rather than full path-data optimization. It does not rewrite relative and absolute commands, merge path commands, or perform shape-to-path conversion.
Escape JSON into a string, or peel every layer of escaping off a log payload. Handles double and triple escaping.
Convert epoch timestamps to dates and back, with seconds, milliseconds, micro and nanoseconds detected for you.
Minify JSON, beautify it back, and see the real compressed size. Flags duplicate keys your parser silently drops.