What the Browser Optimizer Strips—and What It Protects
When you paste XML or drop a file into the client-side SVG Optimizer on SVG Nexus, it parses and cleans the document entirely in your browser tab and displays exact before-and-after byte telemetry (for example, shrinking an editor export from 3,639 B to 3,311 B or tighter depending on metadata overhead—without ever inventing fake compression claims).
- Removed safely:
<?xml ...?>prologs,<!DOCTYPE>, Adobe/Inkscape/Sketch/ Sodipodi namespaces, XML comments, empty<g>wrappers, redundant whitespace, and unsafe script/event attributes. - Preserved carefully: Root
xmlnsandviewBoxcoordinates,currentColorhooks, and visible vector geometry.
Choosing Between Web, App, and Print Presets
| Preset | Target Use Case | Key Behavior & Trade-Off |
|---|---|---|
| Web (Default) | Inline HTML icons, React/Vue components, CSS Data URIs | Aggressive metadata removal and compact coordinates; note that it may flatten complex SVG filters that render inconsistently across browsers. |
| App (Mobile-First) | React Native, Flutter (flutter_svg), iOS/Android vector assets | Balances compact path strings with strict SVG element compatibility expected by mobile vector parsers. |
| Print (High Fidelity) | Large-format signage, PDF embeds, high-zoom diagrams | Retains higher coordinate decimal precision so subtle Bézier curves never develop micro-steps when scaled up. |
Coordinate Decimal Precision and Single-File Workflow Caveats
<!-- Raw export with excess sub-pixel decimals -->
<path d="M12.00014 2.00031L15.09017 8.26044L22.00002 9.27019" />
<!-- Optimized down to 2 decimals -->
<path d="M12 2l3.09 6.26L22 9.27" />