Drop an SVG. Render, then optimize.
safe · secure · no server · works offline · fast
…or just start typing at the cursor.
safe · secure · no server · works offline · fast
…or just start typing at the cursor.
OmniViewer opens an SVG file right in your browser. Because an SVG is both a
picture and plain XML text, you get both worlds: drop a
.svg and it’s rendered as an image and, in
the same view, given a small toolkit — a source
formatter, a built-in optimizer, a
structural tree, a stats report, and the raw
and hex views. There is no upload and no server — the file is read
directly by your browser, and every tab runs in a background Web Worker so the
page never freezes.
<img>, which puts the file in SVG’s “secure static mode”: no scripts run and no external resources load, so even a file you don’t trust is safe to look at. Export the result to PNG. This is the default view.<metadata>, strips editor namespaces (Inkscape/Sodipodi), collapses insignificant whitespace and rounds coordinate precision — then shows the exact bytes saved and everything it did. Conservative by design: it never renames ids or rewrites shapes, so the image looks identical. Copy or download the minified .svg.viewBox. It also flags a <script> or external references.
SVG (Scalable Vector Graphics) is a W3C standard from
2001 for describing 2‑D graphics as vectors —
shapes, paths and text with exact coordinates — in XML. Because it’s
vectors it stays crisp at any size, and because it’s text you can read and
edit it directly. It’s the format behind almost every icon, logo and chart
on the web. Design tools, though, export bulky SVGs: editor metadata, an RDF
licence block, unused namespaces, whitespace between every tag and coordinates
with a dozen decimal places. Optimizing strips all of that, often shrinking the
file by a third to a half with no visible change. If you want the full story
— the viewBox coordinate system, path‑data syntax and the
optimizer in code — read
inside an SVG file.
| Aspect | SVG | PNG | JPEG | |
|---|---|---|---|---|
| Kind | Vector (text/XML) | Raster (lossless) | Raster (lossy) | Document |
| Scales without blur | Yes, infinitely | No | No | Vector parts yes |
| Editable as text | Yes | No | No | No |
| Best for | Icons, logos, charts | Screenshots, UI | Photos | Print/docs |
| Standard | W3C SVG | ISO/W3C PNG | ISO JPEG | ISO PDF |
OmniViewer opens every file format; SVG is one of the formats with dedicated tooling, powered by the same viewing engine as fastjsonviewer.com and hugecsv.com.
No. OmniViewer is a static page with no server-side processing: your .svg file is read directly by your browser, and every tab — preview, optimize, formatted, tree and stats — runs locally in a Web Worker. The file never leaves your computer.
The OPTIMIZE tab is a dependency-free, SVGO-style minifier. It removes the XML declaration and DOCTYPE, comments and <metadata>, editor namespaces such as Inkscape and Sodipodi, collapses whitespace between elements and rounds coordinate numbers to a few decimals — then reports the exact bytes saved and what it changed. It is conservative on purpose: it never renames ids, merges paths or rewrites shapes, so the rendered image is identical. On a typical design-tool export it shrinks the file by a third to a half.
Yes. An SVG can contain scripts and external references, so OmniViewer renders it through an <img> element, which puts the file in SVG’s secure static mode — no scripts run and no external resources load. The STATS tab also flags whether a file contains a <script> element or external URLs, so you know what you are looking at.
Yes. The PREVIEW tab has a “download PNG” action that rasterizes the rendered SVG to a PNG image entirely in your browser. A plain SVG exports cleanly; a file that embeds a foreignObject or an external image cannot be rasterized by the browser, and the tool says so instead of producing a broken file.
The raw and hex views are windowed — they read only the bytes needed to paint the screen — so they open files of effectively unlimited size. The preview, optimize, formatted, tree and stats tabs parse the document in memory, so on very large files they work on a bounded prefix (or, for preview and optimize, ask you to use the raw view) and tell you when they do. In practice SVGs are small, so this rarely matters.
SVG is a vector format: it describes shapes and paths with coordinates, as XML text, so it scales to any size without blur and can be edited in a text editor. PNG and JPEG are raster formats — grids of pixels — so they have a fixed resolution and get blurry when enlarged. SVG is ideal for icons, logos and charts; PNG for screenshots and lossless UI images; JPEG for photographs.