How to Open an SVG File on Windows, Mac, iPhone & Android
How to open an SVG file on any device. Use your browser, a free online viewer, Inkscape, Figma or a text editor, plus fixes for blank or broken SVGs.
MintConvert Team
"Double-clicking an SVG and getting an unexpected app, a blank window or a "no app to open this file" message is common. The reason is that SVG is a web-native vector format, and operating systems do not always agree on what should open it by default.
This guide shows every reliable way to open an SVG file, how to view the code inside, and how to fix the usual problems. If you are not sure what the format is, read what an SVG file is first.
The fastest ways to open an SVG (any device)
1. Drag it into your web browser
Every modern browser (Chrome, Edge, Firefox, Safari) renders SVG natively. Drag the file into an open browser window, or right-click the file, choose Open with, and pick your browser. This takes seconds and needs no install.
2. Use a free online SVG viewer
A browser tab is fine for a quick look, but an online SVG viewer gives you far more control:
- Zoom from a small preview to 800% to inspect fine detail
- Switch between transparent, white, black and custom backgrounds
- See dimensions,
viewBox, element counts and file size - Replay SVG animations
- Edit the code and watch the preview update
You can drop in a file or paste raw <svg> code, and it runs locally in your browser, so nothing is uploaded.
3. Open it in a text editor to see the code
An SVG is plain text. Right-click the file, choose Open with, then pick Notepad, VS Code, TextEdit or any code editor. You will see XML markup describing shapes, colors and paths. This is useful for debugging or making small edits.
How to open an SVG file on Windows
- Browser: Right-click the file, choose Open with, then Microsoft Edge, Chrome or Firefox.
- Photos app: Depending on your Windows version and installed extensions, the default Photos app may not display SVG. If it does not, use a browser or an editor.
- Inkscape (free): Install it, then use File, Open. This is the best free option when you want to edit.
- Microsoft Office: Recent versions of Word, PowerPoint and Excel can insert SVG graphics through Insert, Pictures.
- Set a default: Right-click an SVG, choose Open with, Choose another app, select your browser or editor, and tick Always use this app.
How to open an SVG file on Mac
- Browser: Drag the file into Safari, Chrome or Firefox.
- Quick Look: Select the file in Finder and press the spacebar for an instant preview.
- Inkscape, Figma or Affinity Designer: Use File, Open to edit the artwork.
- Text editor: Right-click, Open With, then TextEdit or VS Code to read the code.
- Change the default: Select the file, press Command and I, pick an app under Open with, and click Change All.
How to open an SVG file on iPhone and iPad
- Open the Files app and tap the SVG. It may show a preview.
- If it does not render, open Safari and use a browser-based SVG viewer to load the file.
- To use the graphic in other apps, convert it to PNG or JPG first, since many mobile apps do not accept SVG.
How to open an SVG file on Android
- Open the file from your Files app or a download notification.
- If your gallery cannot display it, open Chrome and load the file there, or use a browser-based viewer.
- For sharing or posting, convert the SVG to PNG, which almost every app accepts.
How to open an SVG in design software
| App | Cost | Best for |
|---|---|---|
| Inkscape | Free | Full vector editing |
| Figma | Free tier | Collaborative design, UI work |
| Adobe Illustrator | Paid | Professional illustration and print |
| Affinity Designer | One-time purchase | Illustration and layout |
| GIMP | Free | Opens SVG but rasterizes it |
| Canva | Free tier | Uploading SVG graphics to designs |
Note on raster editors such as GIMP and Photoshop: they can open SVG, but they convert it to pixels first, which removes the scalability benefit unless you keep it as a vector or smart object.
How to open an SVG on a website or in HTML
You can show an SVG in a web page in several ways:
<img src="logo.svg" alt="Company logo" />This is the simplest option and blocks scripts inside the file for safety. You can also use CSS background-image, or paste the SVG markup directly into the HTML (inline SVG) when you want to style or animate individual shapes with CSS or JavaScript.
SVG won't open or looks wrong? Try these fixes
The file opens as a blank page
- The
viewBoxmay be missing or wrong, so the artwork sits outside the visible area. - The shapes may be white on a white background. Try a dark or checkerboard background in a viewer.
- The file may be empty or truncated. Open it in a text editor and check that it starts with
<svgand ends with</svg>.
"No application is associated with this file"
Your system has no default app for .svg. Open it through your browser, or set a default app as described in the Windows and Mac sections above.
The image opens but fonts look different
The SVG probably references a font that is not installed on your computer. Install the font, or ask the creator to convert text to outlines.
Images inside the SVG are missing
The file may link to external pictures instead of embedding them. Keep the linked images in the same folder, or re-save the SVG with images embedded.
My snippet will not render at all
SVG code copied from a web page often lacks the xmlns="http://www.w3.org/2000/svg" attribute. Standalone files need it. A viewer that auto-adds it can help you preview the snippet.
The SVG will not upload to a site or app
Many platforms reject SVG. Convert it to a format they accept. An SVG converter can export PNG, JPG, WebP and ICO, and a dedicated SVG to PNG tool lets you pick a high-resolution scale such as 2x or 4x.
Is it safe to open an SVG file?
Most SVG files are safe, but remember that the format can contain JavaScript. Browsers do not run scripts inside an SVG loaded through an image tag, and good viewers render files in a way that blocks them. Be more careful when opening SVGs from unknown senders directly as standalone documents in a browser tab, or inlining untrusted SVG into your own web pages.
Key takeaways
The quickest way to open an SVG is to drag it into a browser. For more control, such as zoom, background tests, animation replay and code inspection, use a dedicated SVG viewer. If the file will not open where you need it, convert it to PNG or another common format and move on.
Frequently asked questions
More articles
How to Make an SVG File: 5 Easy Methods for Beginners
Learn how to make an SVG file five ways: vector editors, hand-written code, tracing an image, design tools and code generation. Includes tips for clean, working SVGs.
SVG vs PNG vs EPS: Which Format Should You Use?
SVG vs PNG vs EPS explained. Compare vector and raster formats, see whether SVG is a vector format, and pick the right file type for web, print and design.
What Is an SVG File? Meaning, File Type & How It Works
What is an SVG file? Learn the SVG meaning, file type and extension, how vector graphics work, when to use them, and how to open or convert one.