# How to download inline SVGs

- Link: https://cagrimmett.com/2019/11/20/downloading-inline-svgs/
- Published: 2019-11-20T22:18:00-05:00
- Author: Chuck Grimmett

I find myself regularly scouring business websites for logos to use. More and more
of them use build pipelines that take all SVGs and embed them inline, making it 
impossible to just right click and download the image.

Here is my short workflow for downloading inline SVGs:

 1. [Open up your inspector](https://www.lifewire.com/get-inspect-element-tool-for-browser-756549)
    and copy the whole SVG element.
 2. Open your favorite text editor (mine is [VSCode](https://code.visualstudio.com/))
    and paste the whole SVG element you just copied into a new file and save it as `
    companyname.svg`
 3. Open your new `companyname.svg` in [Sketch.app](https://www.sketch.com/) and change
    the colors if needed. Sometimes the colors are applied via CSS, which won’t come
    in with the SVG element.
 4. Export the logo as your filetype of choice. Mind the size because inline SVG elements
    are often small. I usually export PNGs at @2x.

Note: I still use steps 3 and 4 even if my end goal is SVG. First, I want to make
sure the colors are correct. Second, Sketch adds some important attributes to SVGs
like Viewbox that are helpful if you are using the file on the web.

Here is a video I made walking through the process:
