How to view an SVG image on Mac OSX?

I am pretty happy with Gapplin. It can convert (export) SVG images to other image formats (e.g. PNG) too.


A simple way is to use preview in Mac, simply press space key on the keyboard.


I needed a nearly-portable solution to view SVG files (vector export from Google Drawings, which doesn't print large images well) since my Mac is locked down to prevent typical software installation, App Store access and Chrome extensions. Fortunately, I can run Homebrew. That led me to install Inkscape from Homebrew using this command.

brew install caskformula/caskformula/inkscape

If you're part of the unlucky few where double clicking an .svg from Finder or opening it from the command line like open filename.svg just opens your svg file source in a text editor (and you wanted to see it visually), it appears possible to view them in a browser these days. What has happened is you installed a text editor and it "took over" as the default app to open for those file types.

Navigate in your web browser to its location, ex: file:///Users/my_username/... full URL should have look like file:///Users/username/folder/folder/my_file.svg you can start by just putting file:// in your browser URL then navigate to it.

This will "open it" visually in any major web browser. Alternatively right click on it in Finder and select "open with" and select a browser.