SVG Viewer

Paste SVG code or drop .svg files, a folder or a .zip, and this SVG viewer draws them straight away with the real size, the viewBox and anything that would stop the file from showing up. Fix it in the SVG viewer, then export a PNG, a data URI or a React component. Your files never leave the browser.

shop-sign.svgSample
Esc, then Tab, leaves the editor

Paste SVG code, or drop files here

.svg files, a whole folder, or a .zip of them.

Paste SVG code or open a file, and its size, colors and checks show here.

Export

Size
Background
Copy as

How to open an SVG file

An SVG is a text file that describes shapes, so a good SVG viewer has two jobs: draw those shapes, and let you read the text behind them.

This SVG viewer does both at once. On a computer the SVG viewer puts the code, the drawing and the Details panel side by side; on a phone the drawing comes first and Code, Details, Edit and Export are tabs under it. Open a file with Open files, drop files or a whole folder anywhere on the page, or paste code into the editor, including a full chat answer with its ``` fence. Besides .svg, the SVG viewer opens compressed .svgz files and SVG saved as .txt or .xml, and long lines wrap unless you switch Wrap off.

SVG viewer controls
Fit 1:1Fit the drawing to the canvas, or show it at its real pixel size
Pinch Ctrl/⌘ + scrollZoom around your fingers or the pointer; drag to move (one finger moves sideways on phones), arrow keys to nudge
OutlineDraw every shape as a thin blue line, fills off
FrameShow or hide the magenta viewBox frame and its size labels
Transparency grid, white, black or a color of your own
Format OptimizeIndent the code (2 spaces, 4 spaces or tabs, chosen in the menu next to Format), or shrink it with SVGO at 1 to 5 decimals and a pixel check. On phones these, Outline and Frame sit under More tools, and Share link is in the Export tab
Icons From URLOpen one of 8,587 free icons in the SVG viewer, or an SVG from a web address
EditIn the Edit tab: change a color everywhere, set the size, rotate 90°, flip; Undo and Redo step through each change, Revert goes back to the file as opened
Copy linkA link with the SVG packed inside it, for sending to someone

What the SVG viewer checks

The SVG viewer draws each file the way a web page draws an image: scripts off, outside files blocked. Then the SVG viewer looks for the problems that most often make an SVG look wrong or not appear at all.

November 2026. Before building this SVG viewer I ran the same nine test files through the SVG viewer pages on the first two pages of Google. Of the nine sites I could test, four showed nothing for an icon copied out of a web page (no xmlns), three gave only a general failure message (“Failed to process SVG”, “Could not render”) for a file with one unclosed tag, one called that file valid, and one ran a script from inside a test file. The site-by-site results are on the About page.

When the markup itself is broken, one Fix it button applies every safe repair the SVG viewer can find: a bare &, HTML entities like &nbsp;, an attribute written twice, tags left open, a second <svg> pasted after the first, or React/JSX code pasted as SVG. Every fix and edit in the SVG viewer can be undone step by step with Undo in the code bar or Ctrl/⌘+Z, Revert takes the SVG viewer back to the file as opened, and when nothing visible is drawn or part of the drawing runs past the edges, Fit viewBox to the drawing resizes the viewBox around the shapes and text, strokes included, and changes a fixed width and height to match at the same scale.

Line 4, column 5: a tag is closed in the wrong place
open-sign-broken.svg: the <rect> is never closed. The SVG viewer marks the line in the code and writes out the reason.
xmlns added
bell-from-chat.txt: a chat answer with ``` fences and no xmlns, which the SVG viewer draws after handling both.
dark background
logo-white.svg: white on transparent, so the SVG viewer turns the canvas dark by itself.
Problems the SVG viewer finds and fixes
ProblemWhat you would see elsewhereWhat happens in the SVG viewer
No xmlns on the <svg> tag (common when you copy an icon out of a web page)A broken-image icon or an errorThe SVG viewer adds it to the preview at once; Save fix to code writes it into the file
Code wrapped in ``` fences or surrounded by HTMLNothing rendersThe SVG viewer keeps only the <svg> element
A tag that is never closed, a stray &, a repeated attributeA blank boxThe SVG viewer explains the error in plain words, with the line (and the column when the browser reports one); the line is highlighted, and while you edit, the last working version stays on screen
Width and height but no viewBoxThe drawing gets cropped when you resize itAdd viewBox writes viewBox="0 0 width height"
White artwork on a transparent backgroundAn empty white squareThe SVG viewer switches to a dark background by itself
Outside images, stylesheets or web fontsMissing parts, a different fontThe SVG viewer counts what will not load when the file is used as an image
<script>, onload or javascript: linksOn some sites, the script runsThe SVG viewer never runs them; one click removes them, and exports leave them out

Free icons to open in the SVG viewer

Press Icons in the toolbar to search 8,587 open-source icons from Tabler Icons and Lucide, then open any of them in the SVG viewer to recolor, resize, rotate or export it. Click an icon below to find it in the SVG viewer icon library.

Icons open in the SVG viewer like any other file, so the Edit tab (size, colors, turns), Outline and every export work on them too.

Tabler Icons 3.52.0 (MIT, 6,533 icons) and Lucide 1.73.0 (ISC, 2,054 icons) allow use in personal and commercial work. Every icon opened from the library into the SVG viewer keeps a one-line credit comment, and the full license texts are in LICENSES.txt.

Files from Illustrator, Inkscape, Figma and Canva

Adobe Illustrator

Exports start with an XML prolog and keep colors in a <style> block with classes like .st0. The SVG viewer reads those classes too, so the color list includes the style block, not just the inline fills.

Inkscape

Plain SVG from Inkscape, opened in an SVG viewer, is often sized in millimeters and full of inkscape: and sodipodi: attributes. The SVG viewer converts those sizes to pixels in the Details panel, and its React export leaves the editor attributes out.

Figma

Figma writes pixel width and height, which the SVG viewer shows as declared, a matching viewBox and fill="none" on the root. To make an icon scale with its container, use Let it stretch to fit in the SVG viewer, which removes the fixed width and height.

Canva and photo editors

These often wrap a photo in an <image> tag that no SVG viewer can make sharp, so the file is really a bitmap in an SVG wrapper and will blur when enlarged. The SVG viewer counts embedded images in the Details panel so you know before you scale it up.

ChatGPT, Claude and other chat tools

Answers put the code in ``` fences and sometimes leave out the xmlns line that an SVG viewer needs. Paste the whole answer: the SVG viewer keeps only the <svg> element and adds what is missing.

How the SVG viewer measures size

Size is the size the file has on its own, the size a browser gives it in an <img> tag without CSS. The SVG viewer takes it from the width and height attributes. A file with only a viewBox has no fixed size: it stretches to fill whatever box it is placed in, keeping its ratio, so the SVG viewer says so and uses the viewBox numbers for the preview and for 1× exports.

viewBox is the coordinate system inside the file, which the SVG viewer reads as four numbers, x, y, width and height. The SVG viewer draws its magenta frame exactly around it, so you can see when shapes spill outside and will be cut off.

The SVG viewer converts physical units the way CSS does it: 1 inch is 96 px, 1 mm is 96 ÷ 25.4 px, 1 pt is 1⁄72 inch. Percentages have no fixed size, so the SVG viewer says so instead of guessing; em counts as 16 px, the browser's default text size. Every number in the SVG viewer Details panel can be selected and copied.

SVG viewer size examples
Attributes on <svg>Size in an <img>
width="48" height="48" viewBox="0 0 24 24"48 × 48 px
viewBox="0 0 400 200" onlyNo fixed size; fills its box at 2:1 (1× export is 400 × 200 px)
width="100" viewBox="0 0 400 200"100 × 50 px
width="10in" height="6in"960 × 576 px
width="50mm" height="50mm"188.98 × 188.98 px
width="2em" height="1em"32 × 16 px (16 px text size)
no width, height or viewBox300 × 150 px (browser default)
Normal
Outline
The white sample logo in the SVG viewer: almost invisible drawn normally on the transparency grid, every shape visible in Outline.

Outline view

Outline makes the SVG viewer draw every shape as a thin line with fills off, the way vector editors show a wireframe. Outline is the quickest way in an SVG viewer to find a white rectangle hiding behind a logo, a path that runs far outside the viewBox, text that was never converted to outlines, or the separate pieces a cutting machine will follow.

The file itself is not changed. Outline only affects what the SVG viewer shows, and every export uses your original colors.

Next to Outline, Frame hides or shows the magenta frame the SVG viewer draws and its two size labels, for when you want to see the drawing with nothing on top.

SVG viewer gallery showing the eight Hollis Street Cycles sample files as thumbnails with file names, pixel sizes, file sizes and the export controls
The eight sample files opened together in the SVG viewer with Samples → Open all as a gallery.

Open a whole folder in the SVG viewer

Select several files, drop a folder, or drop the .zip a sticker or cut-file bundle came in (a zip inside the zip, and .svgz files in it, open too), and the SVG viewer switches to a thumbnail grid with each file's name, size and weight. Filter by name, sort by size, make the thumbnails bigger, and click any one to inspect it in the SVG viewer; the arrows step through the rest.

The SVG viewer marks files that will not open in red with the reason, and files that only needed an automatic fix (such as the missing xmlns) are marked fixed. When several files are broken in ways the safe repairs handle, Fix all next to the count in the SVG viewer repairs them in one click. In the gallery, Export all as PNG (.zip) has the SVG viewer draw every working file at one width and save them in a single .zip, named after the original files; SVGs (.zip) saves the SVG files themselves, with every fix and edit made in the SVG viewer included and any file that won't open added unchanged. Both keep the bundle's folders, and print-sized files can go out at 300 dpi.

Exporting from the SVG viewer

The one-click Download PNG button in the SVG viewer (under the Details panel on a computer, above the tabs on a phone) covers the most common case, and its label shows the pixel size you will get: 2× for most files, 512 px for a small icon (64 px or smaller, or no fixed size with a viewBox under 256 units), and 300 dpi for a file sized in inches or millimeters (a print file too big for 300 dpi saves at a lower dpi with the same print size). For anything else, open Export: pick PNG, JPG or WebP, choose 1× to 4× or type a width, and the SVG viewer reads the saved file back to confirm its real pixel size. For files measured in inches or millimeters, the SVG viewer also offers a 300 dpi size for printing. Every PNG, JPG and WebP is drawn in your browser; the SVG viewer never uploads the file to make it.

PNG and WebP keep transparency. JPG cannot, so the SVG viewer gives it a white background or a color you choose. In the SVG viewer, ICO packs 16 to 256 px images into one file, and Favicon set for a website adds the Apple and Android sizes, a manifest and the link tags. Optimize runs SVGO 4.1 with safe settings; the SVG viewer then draws the old and new file at up to 512 px and compares them pixel by pixel; if more than half a percent of the pixels change, the result is not applied. Files with HTML inside a foreignObject can't be read back by the browser, so for them the SVG viewer says the check could not run and Undo is the way back.

For code

  • Data URI: for CSS and <img src>, usually smaller than base64 for SVG.
  • CSS background: a ready background-image line.
  • React Native: a react-native-svg component, with unsupported elements listed in a comment.
  • React component: JSX with strokeWidth and className, extra props passed through, editor metadata and links to scripts removed.
  • Share link: the SVG packed into the link itself, for sending to someone.

SVG viewer on Windows, Mac and phones

Every current browser can draw SVG, but each operating system treats .svg files a little differently.

Windows 10 and 11. File Explorer shows a generic icon instead of a thumbnail, so a folder of designs is a wall of identical icons until you open it in an SVG viewer. Drop the folder, or the .zip it came in, on this SVG viewer to see every design at once.

macOS. Finder and Quick Look show a preview, but they are no SVG viewer for checking: no size, viewBox or code, and no way to turn the file into a PNG.

iPhone and Android. Whether the Files app works as an SVG viewer depends on the phone and the app, and attachments sometimes open as text. Open files in the SVG viewer reads straight from the Files app; pinch the canvas to zoom.

Chromebook. The Files app opens an SVG in a browser tab, one file at a time, with none of the checks an SVG viewer gives. In the SVG viewer many files open together and can be saved as PNG in one go.

SVG viewer questions

Is this SVG viewer free, and does it upload my files?

The SVG viewer is free, with no account and no limit on the number of files. The SVG viewer reads your files with the browser's own file reader and draws them in this tab; the file contents are never sent to a server. A share link carries the SVG inside the link itself.

How can I open an SVG file online for free?

Press Open files in the SVG viewer above, or drag the file onto the SVG viewer. You can also paste the code. The SVG viewer shows the picture straight away, with its size and viewBox in the Details panel. A folder or a .zip opens in the SVG viewer as a grid of thumbnails.

Can I open SVG in Chrome without an SVG viewer?

Drag an .svg into a Chrome, Edge, Firefox or Safari tab and the browser draws it on a white page, the simplest SVG viewer there is. What it does not show, and this SVG viewer does, is the size, the viewBox, why a file is blank, or a way to turn it into a PNG. This SVG viewer adds those, and reads the file the same way an image tag on a web page does.

What is the best SVG viewer?

It depends on the job. To look at files quickly and fix them, use a browser-based SVG viewer that draws files the way web pages do and keeps them on your computer; this one is built for that. To shrink files with every SVGO option exposed, SVGOMG is the classic SVG optimizer. To edit shapes by hand, a vector editor such as Inkscape (free) or Figma is the right tool rather than an SVG viewer, and a browser tab is fine for a single quick look.

Why does my SVG show up blank, even in an SVG viewer?

The usual causes are a missing xmlns attribute, a tag that is never closed, a width or height of 0, shapes that sit outside the viewBox, white shapes on a white page, and pictures or fonts loaded from another web address (browsers block those when an SVG is used as an image). This SVG viewer reports the first four directly and switches white artwork to a dark background. Turn on Outline in the SVG viewer to see every shape even when its fill is invisible.

Is there an SVG viewer for Windows 10 or Windows 11?

Windows File Explorer does not show SVG thumbnails on its own, so a folder of cut files or icons looks like a list of blank icons until you open it in an SVG viewer. Drag that folder, or the .zip it came in, into this SVG viewer and every file appears as a thumbnail you can search and open. Nothing needs to be installed, and the SVG viewer works the same on a Mac or a Chromebook.

Is this SVG viewer good for Cricut or Silhouette cut files?

Yes for looking and checking. The SVG viewer converts inch and millimeter sizes to pixels, offers a 300 dpi PNG export, and Outline shows the cut lines. Design Space and Silhouette Studio have their own import rules, so check the file there before cutting; the SVG viewer has not been tested inside those apps.

Is the SVG viewer also an SVG editor?

For quick jobs, yes: the SVG viewer changes colors, sets the size, rotates by 90°, mirrors the drawing and repairs broken files, and the code panel is editable with a live preview. For drawing and moving shapes by hand, use an editor such as Inkscape (free) or Figma, then bring the result back to the SVG viewer to check it.

What happened to Adobe SVG Viewer?

Adobe SVG Viewer was a browser plug-in from the early 2000s, when browsers could not draw SVG themselves. Adobe discontinued it long ago. Every current browser draws SVG natively, so an online SVG viewer like this one needs no plug-in.

Does the SVG viewer work offline?

Once the SVG viewer has loaded, it needs no connection to draw, check, fix or export files, because everything runs in the browser. Optimize loads its code in the background a few seconds after the SVG viewer opens, so it works offline after that; From URL and the icon library need the connection. Reloading the page does need the network.

Which SVG files does the SVG viewer not support?

Files over 25 MB and SVG that depends on scripts to draw itself, since the SVG viewer never runs scripts. Images and fonts the file loads from other sites don't show, because browsers never fetch them for an SVG image, and a file with HTML inside a foreignObject element draws in the preview but can't be exported as PNG, JPG, WebP or ICO until Remove the HTML parts (in the Details panel of the SVG viewer) takes that HTML out. Compressed .svgz files open directly in the SVG viewer. Animated SVG plays in the SVG viewer as long as it uses CSS or SMIL animation.

Can the SVG viewer show the icons inside a sprite sheet?

Yes. A sprite (a file of symbol elements that web pages draw with use and the symbol's id) draws nothing by itself, so the SVG viewer says so and lists every symbol as a small picture in Details. Click one and the SVG viewer opens it as its own file to view, recolor, resize or export; click the next to switch, and Undo goes back.

Can the SVG viewer convert SVG to PNG or JPG?

Choose PNG, JPG or WebP in the Export panel of the SVG viewer, pick 1× to 4× or type a width in pixels, and press Download. A folder or .zip of files can be converted in one go from the SVG viewer gallery with Export all as PNG (.zip).

Can I check an SVG from ChatGPT or Claude in the SVG viewer?

Paste the whole answer into the SVG viewer, prose and ``` fence included. The SVG viewer keeps the svg element, adds the xmlns that chat answers often leave out, and shows what it changed.

Why does a viewBox-only SVG look huge in my page but small in an SVG viewer?

A file with a viewBox and no width or height has no size of its own, so an image tag stretches it to the full width of its container. The SVG viewer fits it to the canvas and reports No fixed size. Give it width and height in the SVG viewer code panel, or set a CSS width, to control how big it appears on your page.

How big a file can the SVG viewer open?

The SVG viewer opens single files up to 25 MB, and a .zip up to 200 MB once unpacked; From URL opens files up to 25 MB when the other site allows it, or up to 5 MB when the address has to go through this site's server. SVG viewer exports can be up to 16,384 px on a side; in the gallery you can type a PNG width up to 8,192 px, and print-sized files at 300 dpi go up to 16,384 px (larger ones get a lower dpi with the same print size). SVG viewer share links hold about 12,000 characters, so larger files are sent as the file itself. A 3 MB file with tens of thousands of shapes takes a second or two to appear; while you type in a big file, the SVG viewer waits a moment before redrawing so the editor stays responsive.

Does the SVG viewer keep my files after I close the tab?

No. The SVG viewer keeps the single file you are working on (up to about 2 MB of code) in this tab's session storage so that a reload doesn't lose it, and the browser deletes it when the tab closes. Files opened together in the SVG viewer gallery view are not kept at all.

Does the SVG viewer play SVG animations?

When the animation is written in CSS (@keyframes) or SMIL (animate elements), which is how most animated icons and loaders work, and the SVG viewer plays them as they would play on a web page. The SVG viewer marks such files as Animated in the Details panel. Animation driven by JavaScript does not play, because the SVG viewer never runs scripts.

Can I change colors in the SVG viewer?

Open the Edit tab of the SVG viewer, click a color swatch and pick a new color, or type a hex value such as #0077ff in the field next to it and press Enter: the SVG viewer replaces it everywhere it is written, in attributes and style blocks. In the Details tab, click a color value to copy it. The SVG viewer panel shows the 14 most used colors with a total count; any color can also be edited in the code.

Can the SVG viewer show the code of an SVG file?

The code sits beside the picture with line numbers and highlighting, and Format in the SVG viewer re-indents a file that arrived on one long line. On a phone, the SVG viewer keeps the code under the Code tab.

Can I make a favicon from an SVG in the SVG viewer?

Choose ICO in the Export panel of the SVG viewer. In the SVG viewer, Download ICO gives one .ico file with 16, 32, 48 and 256 px images, and Favicon set for a website saves a .zip with favicon.ico, favicon.svg, a 180 px apple-touch-icon, 192 and 512 px PNGs, a web manifest and the link tags to paste into your page.

Where do the free icons in the SVG viewer come from?

From two open-source sets: Tabler Icons (MIT license) and Lucide (ISC license). Both allow personal and commercial use. Every icon opened from the library in the SVG viewer starts with a one-line credit comment, and the license texts are linked under the library.

How do I rotate or flip an SVG in the SVG viewer?

Open the Edit tab of the SVG viewer and use the Left 90°, Right 90° or Flip buttons. The SVG viewer wraps the drawing in one transform group and swaps the viewBox, width and height for quarter turns, so the result is still a clean file you can download or export as PNG.

How do I change the size of an SVG?

Type a new width or height in the Edit tab; the SVG viewer keeps the unit the file uses (px, mm, in), and with the chain button on, the other side follows the proportions. The SVG viewer writes the new width and height into the file. To make the SVG fill whatever box it is placed in instead, use Let it stretch to fit in the SVG viewer.

Sources for the drawing and size rules: MDN, SVG as an image, MDN, viewBox, W3C, CSS absolute lengths.