Microdeck.tools 100% In-Browser

SVG Optimizer (SVGO), Color Swapper & Exporter

New

Run full SVGO multipass compression directly in the browser, extract and recolor every fill/stroke hex token in one click, inspect exact byte savings, and copy optimized SVG, React TSX, Vue 3 SFC, or Astro components.

100% In-Browser No Server Storage Instant Results
371B → 276B-26% Saved
1-Click SVG Color Swapper (2 detected)

Did this tool save you time? Help keep Microdeck free and maintained. Completely optional · From $3.

ADVERTISEMENT
Privacy-Friendly Sponsor Unit
Contextual tech, developer, & creator tools sponsorship slot. Zero intrusive tracking.

How It Works Under the Hood

SVGO Browser runs multipass AST minification (stripping editor metadata, empty groups, and excess decimals) while scanning hex tokens to retheme fills/strokes before emitting React TSX, Vue 3, or Astro markup.

Step-by-Step Instructions

1

Paste raw SVG markup or load a .svg file exported from Figma/Illustrator.

2

Adjust decimal precision, viewBox retention, and swap any detected hex colors visually.

3

Copy or download the compressed SVG, React TSX, Vue 3 SFC, or Astro component.

Key Features & Performance

  • True SVGO Multipass Engine: Typically shrinks design tool SVGs by 40–80%
  • Interactive Color Swapper: Detects every embedded hex token for instant brand retheming
  • Multi-Framework Code Export: Outputs Clean SVG, TypeScript React JSX, Vue 3, and Astro props
  • Script-Safe Sanitization: Blocks embedded <script> tags automatically

Local Browser Processing & Privacy

Traditional web converters upload your documents, snippets, or media files to remote servers. SVG Optimizer (SVGO), Color Swapper & Exporter runs inside your browser tab:

Processed in This Tab

Your input text and files are processed locally without uploading payloads to a processing server.

No Tool Payload Logging

Microdeck does not log or store the files or inputs you paste into tool workspaces (normal static hosting/CDN requests still load page assets).

Tab Memory Lifecycle

Working outputs stay in your browser tab and are released when you reset the tool or close the tab.

Frequently Asked Questions

Should I keep viewBox enabled when removing width/height?

Yes. Keeping viewBox allows the SVG to scale smoothly via Tailwind classes (e.g., w-6 h-6) when width and height attributes are stripped.

Does SVGO work offline without calling an API?

Yes. We bundle svgo/browser so optimization executes completely inside your browser tab.

Explore Related Micro-Tools

Support Microdeck

Completely optional · From $3 · No account required

Choose an amount (USD): Selected: $5

Minimum support amount is $3 USD.

Completely optional · From $3 · Checkout opens on Gumroad.