What it's for
The Icon Studio has three parts, on three tabs:
- Icons: a library of simple line icons for websites (phone, email, map pin, menu, social media and more) that you can colour, style and download.
- Draw your own: make an icon the library doesn't have, such as a cupcake for a bakery or a tooth for a dentist, in exactly the same style, or change a library icon to suit.
- Clean up an SVG: takes an SVG file from Illustrator, Figma, Inkscape or a client, and strips out everything a website doesn't need, so it's smaller, safe to use, and easy to colour with CSS.
Quick start
An icon for a site
- Find it. On the Icons tab, type in Search icons, such as "phone" or "cart".
- Style it: colour, line weight, corners, and an optional background shape.
- Say what it means. Choose whether screen readers should skip it or read a label.
- Copy or download it as SVG code, an .svg file, a PNG, or for CSS.
Cleaning up an SVG
- Open it. On the Clean up an SVG tab, paste the SVG code, drop the file on the box, or click Open .svg….
- Check the result. Compare Before and After, and read the list of what changed.
- Copy or download the cleaned-up version.
Choosing and styling icons
Search finds icons by name and by related words, so "call" finds the phone and "email" finds the envelope. Click an icon to select it.
Style
- Icon colour, and Use the text colour in code. With this ticked, the icon takes the colour of the text around it, so one icon works on light and dark backgrounds and changes colour with its link on hover. Leave it ticked for website icons.
- Line weight: thinner or bolder lines. Match the weight of the site's text.
- Corners: rounded or sharp line ends.
- Background shape: none, a circle or a rounded square, with its own colour. Swap colours swaps the icon and shape colours.
The code
- Size in the code: a fixed size, or "None" to let the site's CSS set it. "None" is more flexible.
- For screen readers: choose Decorative when the icon sits next to words that say the same thing, such as a phone icon beside a phone number, so screen readers skip it. Choose Has a meaning when the icon stands alone, such as a magnifying glass button with no text, and type what it means, such as "Search".
Copying and downloading
| Button | Gives you | Use it for |
|---|---|---|
| Copy SVG | The icon's code. | Pasting straight into a page's HTML. The most flexible choice. |
| Download .svg | An .svg file. | Uploading to the site, or using in design software. |
| Download PNG | A picture, 64 to 512 pixels. | Places that don't accept SVG, such as some email builders and social media. |
| Copy for CSS | A line of CSS with the icon built in. | Using the icon as a background in CSS. |
PNG and CSS copies use the colour you picked, since they can't follow the text colour.
Icon sets
When a site needs several icons, collect them in a set. Click Add to set, or double-click an icon. They're styled the same way, and appear under Your set.
Download set (.zip) gives you:
- each icon as its own .svg file, in an
iconsfolder icons.svg: a sprite, one file holding every icon. The page loads it once, then uses any icon from it by name, which is tidier and faster than many separate files.icons.cssand a README with the HTML to use the sprite- PNG copies of each icon too, if you tick Include PNG copies.
Your set and style choices are kept in this browser between visits. Clear set empties the set.
Drawing your own icons
The Draw your own tab is a small drawing board on the same 24 × 24 grid as the library icons. Your icon is drawn with the same line weight and corners, set on the tab or the Icons tab (they're shared), so it sits happily next to the library icons.
Quick start
- Start. Draw from scratch, or choose a library icon under Start from a library icon and click Open a copy. On the Icons tab, Edit in Draw does the same for the icon you're looking at.
- Draw with the tools above the grid.
- Check the previews beside the grid, at real sizes from 48 down to 16 pixels, and on dark. If it's unclear at 16, simplify it.
- Name it and click Save to my icons. It appears at the top of the Icons tab, marked "yours", where you style it, download it, or add it to a set like any other icon.
The tools
| Tool | Key | How to use it |
|---|---|---|
| Select | V | Click a shape to select it, Shift-click to add more. Drag to move, drag a corner to resize. On a path, drag its squares (points) and dots (curve handles) to reshape it. |
| Line | L | Drag. Hold Shift for straight and 45° lines. |
| Rectangle | R | Drag. Hold Shift for a square. Round the corners under Selected. |
| Ellipse | O | Drag. Hold Shift for a circle. |
| Pen | P | Click to place corner points. Press and drag to make a curve. Click the first point to close the shape, or press Enter to finish an open one. Backspace takes back the last point. |
Snap to keeps points on the grid: whole units, halves (the usual), quarters, or off. Library icons mostly sit on half units, which keeps lines crisp.
Changing shapes
- Selected shows the selected shape's exact position and size, to type in. For a rectangle, it also has Corner round.
- Duplicate, Flip ↔, Flip ↕, Turn 90° and Delete work on everything selected. Duplicate then Flip is the quick way to make a symmetrical icon.
- Points on a path: click a point's square to pick it, then Make it a curve or Make it a corner, or Delete this point. Double-click a path to add a point there. Hold Alt while dragging a curve handle to move it on its own, for a sharp change of direction.
- Closed shape joins the last point back to the first.
The Shapes list shows everything in the icon; click to select, × to delete. Centre on the grid moves the whole icon to the middle. Select all and Clear do what they say.
Ctrl+Z undoes (Ctrl+Shift+Z redoes), the arrow keys nudge what's selected (hold Shift for whole units), Ctrl+D duplicates, and Esc deselects.
- Keep inside the dashed square, two units in from the edge, like the library icons.
- Leave at least two units between separate lines, or they blur together at small sizes.
- Simple wins: three to six shapes is plenty for most icons.
- Starting from a similar library icon is often quickest.
My icons
Saved icons are listed under My icons, with Edit and Delete. Editing one and saving it again under the same name updates it. They're kept in this browser on this computer, so download them as a set from the Icons tab now and then to keep a copy. Your current drawing is kept too, so you can close the page and carry on later.
Cleaning up an SVG
SVG files saved from design programs carry a lot of extra baggage: editor data, hidden layers, comments, long decimal numbers, and sometimes code. The clean-up removes what a website doesn't need.
What it always does
- removes editor data from Illustrator, Inkscape, Figma and similar
- removes comments, unused ids and empty or unnecessary groups
- removes scripts and event handlers (like
onclick), since SVG files can carry code that runs, and embedded web content that many programs can't show - adds a
viewBoxif it's missing, so the SVG can be resized.
The options
- Round numbers to: 1, 2 or 3 decimals, or don't round. 2 is a good balance. If shapes look slightly off afterwards, try 3.
- Remove width and height, so CSS can size it. Kept if the SVG has no viewBox, since it would need them.
- Use the text colour (one-colour icons only): changes the colour to follow the surrounding text. Colours are kept if the SVG uses gradients or a style sheet.
- Squash onto one line: for pasting into CSS or JavaScript.
- For screen readers: leave as is, mark as decorative, or add a label describing what it shows.
Checking the result
The Before and After pictures show both versions with their file sizes. A list underneath says exactly what was changed and removed.
The studio then draws both versions and compares them pixel by pixel. Looks the same as the original means nothing visible changed. If part of the picture changed, it tells you how much; that's expected if you turned on "Use the text colour".
Copy the result, download it as .svg or PNG, or copy it for CSS.
The clean-up works on large files, such as detailed maps, but they take a moment. Very large results are shortened in the code view to keep the page fast; Copy and Download always give you the full file.
Questions
Can I use the icons on client sites?
Yes. The icons were drawn for the Studio, for use on any site you build.
Can I clean up a multi-coloured logo?
Yes. Leave "Use the text colour" off, and its colours are kept.
The icon isn't changing colour on hover.
Make sure "Use the text colour in code" was ticked, and that the icon sits inside the link. It then follows the link's colour, including on hover.
Can I give my icon the same name as a library icon?
No, library names are taken. Opening a copy of a library icon names it with "-2" on the end; rename it to something that describes your version.
Is my SVG uploaded?
No. Everything happens in your browser.