SVG files open in any web browser, and most image editors can open them too

An SVG file is a vector image — a graphic made from shapes and lines rather than pixels. Unlike a JPG or PNG, you can scale an SVG up or down without it getting blurry. SVG stands for Scalable Vector Graphics, and the file format is text-based, which means you can also edit it in a plain text editor if you know what you're doing.

The fastest way to open an SVG is to drag it into your web browser. Chrome, Firefox, Safari, and Edge all display SVG files natively. If you want to edit the SVG rather than just view it, you'll need different software depending on what you're trying to do — anything from a free online editor to professional design tools like Adobe Illustrator or Affinity Designer.

Key Takeaways

  • Any web browser (Chrome, Firefox, Safari, Edge) will open and display an SVG file without installing anything extra.
  • To edit an SVG, you can use free tools like Inkscape, online editors like Gravit Designer, or paid software like Adobe Illustrator.
  • SVG files are text-based, so you can open them in Notepad or any text editor, but you'll see code instead of the image.
  • Windows, Mac, and Linux all handle SVG files the same way — browser or editor, no special steps needed.

Opening an SVG in your web browser

This is the simplest method and requires no software installation. On Windows, Mac, or Linux, right-click the SVG file and select "Open with" (or "Open with >" on Mac). Choose your browser — Chrome, Firefox, Safari, or Edge — and the image will display in a new tab.

Alternatively, open your browser first, then drag the SVG file directly into the browser window. The image will load immediately. This works the same way on all operating systems. The browser will show you the image at full size, and you can zoom in and out using your browser's zoom controls (usually Ctrl+Plus or Cmd+Plus).

If you want to save the image as a different format — like PNG or JPG — right-click the SVG in the browser and select "Save image as." Your browser will let you choose a new format and location.

Editing an SVG with free software

Inkscape is the most popular free tool for editing SVG files. It works on Windows, Mac, and Linux. Download it from inkscape.org, install it, then right-click any SVG file and select "Open with Inkscape." You'll see the image with all its shapes and lines available to edit. Inkscape has a learning curve if you've never used a design tool, but there are many tutorials online.

If you don't want to install software, Gravit Designer (gravit.io) and Boxy SVG (boxySVG.com) are online editors that work in your browser. Upload your SVG file, edit it, and download the result. These are faster to start with but have fewer features than Inkscape.

For very simple edits — changing colors or text — you can also open the SVG in a text editor and modify the code directly. Right-click the SVG, select "Open with," and choose Notepad (Windows), TextEdit (Mac), or any text editor. You'll see XML code. Find the color value (usually written as hex codes like #FF0000) or text content and change it. Save the file, then open it in your browser to see the result. This method works but requires some comfort reading code.

Opening an SVG on Windows

Windows doesn't have a default SVG viewer, so the browser method is your quickest option. Right-click the SVG file, select "Open with," and pick Chrome, Firefox, or Edge. If none of those appear in the menu, select "Choose another app," scroll down, and find your browser.

If you want SVG files to always open in a specific browser by default, right-click an SVG, select "Open with," then choose "Choose another app." Find your browser, check the box that says "Always use this app to open .svg files," and click "OK." From then on, double-clicking any SVG will open it in that browser.

For editing, download Inkscape from inkscape.org or use an online editor. Windows Defender and most antivirus software recognize Inkscape as safe.

Opening an SVG on Mac

Safari, Chrome, and Firefox all open SVG files on Mac. Right-click (or Ctrl-click) the SVG file and select "Open with," then choose your browser. The image will display immediately.

To set a browser as your default for SVG files, right-click an SVG, select "Open with," find your browser, then click "Change All." Every SVG file will now open in that browser when you double-click it.

For editing, Inkscape works on Mac but requires a few extra steps — you'll need to install XQuartz first (a compatibility layer). Gravit Designer or Boxy SVG online editors are often faster on Mac because they skip the installation step entirely.

Opening an SVG on Linux

Linux distributions come with Firefox or another browser pre-installed, so opening an SVG is straightforward. Right-click the file, select "Open with," and choose your browser. The image will display in a new window.

Inkscape is available through most Linux package managers. On Ubuntu or Debian, open the terminal and type sudo apt install inkscape, then press Enter. On Fedora, type sudo dnf install inkscape. Once installed, right-click any SVG and select "Open with Inkscape."

If you prefer not to use the terminal, you can download Inkscape from inkscape.org and follow the Linux installation instructions for your specific distribution.

When an SVG won't open

If double-clicking an SVG does nothing, the file association is broken. Right-click the SVG, select "Open with," and manually choose a browser or editor. Then set it as the default (see the Windows, Mac, or Linux sections above).

If a browser opens but shows only code instead of the image, the SVG file itself may be corrupted or incomplete. Try opening it in a different browser. If it still shows code, the file may not be a valid SVG — check with whoever gave you the file.

If you're trying to open an SVG from an email or download, your browser may have blocked it for security reasons. Check your browser's download history or notification bar for a "blocked" message. You can usually click to allow the download, then try opening it again.

Frequently Asked Questions

Can I open an SVG on my phone or tablet?

Yes. On iPhone or iPad, use Safari — just tap the SVG file in Mail or Files and it will open in Safari. On Android, Chrome and Firefox both open SVG files. You won't be able to edit them easily on a phone, but viewing works fine.

What's the difference between SVG and PNG?

SVG is vector-based (made of shapes) and scales to any size without losing quality. PNG is raster-based (made of pixels) and gets blurry if you enlarge it. SVG files are usually smaller for logos and icons; PNG is better for photographs.

Do I need special software to open an SVG?

No. A web browser is all you need to view an SVG. If you want to edit it, you'll need design software like Inkscape (free) or Adobe Illustrator (paid), but viewing requires nothing extra.

Can I convert an SVG to a different format?

Yes. Open the SVG in your browser, right-click, and select "Save image as," then choose PNG, JPG, or another format. For more control over the conversion, use Inkscape or an online converter like CloudConvert or Zamzar.

Why does my SVG file show code instead of an image?

Your browser is displaying the raw XML code. This usually means the file isn't a valid SVG or your browser didn't recognize it as an image. Try opening it in a different browser, or check that the file extension is actually .svg and not something else.