Quick start
- Find an icon with the search box on the home page, or browse all icons.
- On the icon page, choose a stroke weight. The presets are 1.5, 1.75 (our default) and 2, and the slider covers everything in between.
- Copy the code for your stack, download the SVG, or download a PNG.
Style bar
On the All icons page and every category page, the Style bar changes all the icons at once: stroke weight, colour or gradient, size, round or square line ends and a background tile (rounded or circle). Use the copy button on any icon to copy it in your style, or open it to get the same style as SVG, React, Vue, CSS or a PNG.
Your style travels in the link, so Copy style link gives you an address you can share, and it is kept while you browse in the same tab. Reset style goes back to the defaults. The home page has a small live demo of the same controls.
To restyle an icon that is not from SVGPitch, use the SVG stroke and colour changer: paste or upload any SVG, set the same options and copy or download the result.
How every icon is built
- A
24 × 24grid with about 2px of padding. - Strokes only, no fills, with round line caps and round joins.
- The colour is
currentColor, so an icon takes the colour of the text around it. - All styling lives on the root
<svg>, so your CSS can override it. - Each icon stays clear at any stroke weight from 1.5 to 2.5.
Inline SVG
The most flexible option: paste the markup into your HTML. You can then style it with CSS.
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
<path d="M10 20h.01" />
<path d="M17 20h.01" />
<!-- …the rest of the icon -->
</svg> .icon {
width: 20px;
height: 20px;
color: #4f46e5; /* sets the colour */
stroke-width: 2; /* overrides the stroke weight */
} React and Vue
The icon page generates a ready-made component with size and strokeWidth props. Save it as a file and import it.
import { CartAddIcon } from './icons/CartAddIcon';
<CartAddIcon size={20} strokeWidth={2} className="text-indigo-600" /> CSS mask
The CSS tab gives you a class that draws the icon with mask and currentColor. It works well for icons in buttons, lists and pseudo-elements, with no extra
markup. It carries your stroke weight and line ends; a gradient or tile is included in the SVG, React, Vue and PNG instead.
As an image link
Every icon is also available at https://svgpitch.com/i/<name>.svg, which is handy for prototypes.
<img src="https://svgpitch.com/i/cart-add.svg" width="24" height="24" alt="">
An icon loaded through <img> cannot take its colour from your CSS and shows in black. For production, copy the file into your own project and host it yourself, so your
pages do not depend on ours.
PNG downloads
Pick a size (64 to 512 px) on the icon page, then choose Download PNG. The PNG has a transparent background and uses the style you chose: stroke weight, colour or gradient, line ends and tile. It is created in your browser, so nothing is uploaded.
Sizes
Icons are designed for 16 to 32 px. At 16 px, the default 1.75 stroke renders at about 1.2 px, which stays readable on modern screens. Use 20 or 24 px where you can.
Accessibility
<!-- decorative: sits next to a text label -->
<button><svg aria-hidden="true" …>…</svg> Add to cart</button>
<!-- meaningful on its own -->
<svg role="img" aria-label="Add to cart" …>…</svg> Icons beside a text label are decorative, so hide them from screen readers. An icon that stands alone, such as an icon-only button, needs a label.
Search
The search box matches icon names and everyday words, so “basket” finds the cart icons and “merge” finds the git merge icon. Can't find what you need? Tell us which icon you are missing.
Licence
The icons are free for personal and commercial projects under the MIT licence. See the licence page for the plain-language version.
Keyboard shortcut
Press / on the home page to jump to the search box, and Esc to clear it.