Skip to content
Bought Pro? It is on your account.
Sign in
SVG Creator
Create
Free icons
Gallery
Guides
Pricing
Go Pro
SVG Creator
Guides
SVG icon guides
In short
Short, tested how-tos for getting SVG icons into real projects. Every code sample uses icons and exports straight from SVG Creator, so you can copy it as it is.
By Mumshad Jawad · Updated 2026-10-21
How to use SVG icons in React
The most flexible way is to turn each SVG into a small React component that takes size and color props and uses currentColor. Import SVG files with SVGR if you have many, use <img> for icons you never restyle, and mark decorative icons aria-hidden.
How to use SVG icons in CSS
Put the SVG in a data URI or a file and use it as background-image when the colour is fixed, or as mask-image with background-color: currentColor when the icon must follow the text colour. Encode # as %23 in data URIs and set an explicit width and height.
How to use SVG icons in Figma
Drag the .svg file onto the canvas or paste the SVG code straight into Figma; both create editable vector layers. Recolour the strokes or fills, use the Scale tool (K) so strokes resize with the icon, and turn it into a component so every copy updates together.
SVG vs PNG icons: which should you use?
Use SVG for icons in websites and apps: one small file stays sharp at every size and can be recoloured with CSS. Use PNG where SVG is not accepted, such as most email clients, app-store icons and some social or CMS uploads.
How to change an SVG icon's colour
Replace hard-coded fill and stroke colours with currentColor, render the SVG inline, and set color in CSS. For SVGs used as <img> or background images, use a CSS mask instead, or change the colour inside the file.
Accessible SVG icons
Hide decorative icons with aria-hidden="true". Give icon-only buttons and links an accessible name with aria-label or visually hidden text. Standalone meaningful icons get role="img" and aria-label. Meaningful icons need 3:1 contrast, and touch targets should be at least 24×24 CSS pixels.
Free icons to practise with
outline SVG icons
filled SVG icons
duotone SVG icons
glyph SVG icons
UI icons for apps and websites
e-commerce and shopping icons
communication icons
security and privacy icons
weather and nature icons
space icons
developer and tech icons
media icons
Make the icons too
Describe an icon and export it as SVG, PNG, React or CSS.
Open the generator