✳ OMNIVIEWER

Drop an SVG. Render, then optimize.

safe · secure · no server · works offline · fast

…or just start typing at the cursor.

Or try it now

↓ scroll for about & FAQ

View and optimize SVG online — without uploading it

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.

What each tab does, in plain terms

What is SVG, and why optimize it?

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.

How SVG compares to PNG, JPEG and PDF

AspectSVGPNGJPEGPDF
KindVector (text/XML)Raster (lossless)Raster (lossy)Document
Scales without blurYes, infinitelyNoNoVector parts yes
Editable as textYesNoNoNo
Best forIcons, logos, chartsScreenshots, UIPhotosPrint/docs
StandardW3C SVGISO/W3C PNGISO JPEGISO 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.

FAQ

Is my SVG file uploaded anywhere?

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.

How does the SVG optimizer work?

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.

Is it safe to open an SVG I don’t trust?

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.

Can I convert an SVG to PNG?

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.

How large an SVG file can I open?

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.

What is the difference between SVG and PNG or JPEG?

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.