A single icon is easy. A set of forty icons that still looks like one family at 16 pixels is the hard part. The difference is never talent, it is structure: a grid that every shape obeys, a stroke weight that never drifts, and export settings that do not quietly destroy your pixel alignment.
This tutorial walks through how to design an icon set in Illustrator from a blank document to production-ready SVG and PNG files. It is the same workflow we use for the interface icons on our own product pages, where a shopping cart, a delivery truck and a measurement icon all have to sit next to each other in a 24 pixel row and look like they were drawn by the same hand.
What You Will Build
- A 24 x 24 px artboard system with a 20 px live area and 2 px safe padding
- A set of keyline shapes (square, circle, portrait, landscape) that control optical size
- A locked 2 px stroke weight with consistent caps, joins and corner radii
- Export presets for SVG (web) and PNG at 1x, 2x and 3x (app interfaces)
Plan on roughly 30 minutes for setup. That setup then pays for itself across every icon you draw afterwards.

Step 1: Create the Right Document
Icon sets fail at the document level, before a single shape is drawn. Pixel-based artwork needs a pixel-based document.
- Go to File > New (Ctrl/Cmd + N).
- Choose the Web tab.
- Set Width: 24 px and Height: 24 px.
- Set Units: Pixels, Color Mode: RGB, Raster Effects: Screen (72 ppi).
- Create as many artboards as you have icons, or start with 1 and add more later.
Then turn on three things that will save you hours:
- Pixel Preview: View > Pixel Preview (Alt/Opt + Ctrl/Cmd + Y). This shows how your vector will actually rasterize on screen.
- Snap to Pixel: View > Snap to Pixel.
- Align New Objects to Pixel Grid: Preferences > General, or the checkbox in the Transform panel.
Rule to memorise: every X, Y, width and height value in your Transform panel should be a whole number. If you see 11.5 or 7.333, something is off-grid and it will look soft in the browser. The piece 55 Adobe Illustrator Icon Design Tutorials makes a good next read.
Step 2: Build the 24px Pixel-Perfect Grid
24 px is the default UI icon size for most design systems, and it divides cleanly by 2, 3, 4, 6, 8 and 12. That divisibility is why it survives scaling down to 16 px and up to 48 px.
Set the Illustrator grid
- Open Preferences > Guides & Grid (Ctrl/Cmd + K).
- Set Gridline every: 24 px.
- Set Subdivisions: 24. Each cell is now exactly 1 px.
- Choose Style: Lines and a light grey colour so the grid stays readable.
- Show it with Ctrl/Cmd + ‘ and enable Snap to Grid with Shift + Ctrl/Cmd + ‘.
Define the live area and padding
Never draw to the edge of the artboard. Icons need breathing room so they align consistently inside buttons and menus.
| Zone | Size on a 24px artboard | Purpose |
|---|---|---|
| Artboard | 24 x 24 px | Full bounding box, exported size |
| Live area | 20 x 20 px | Where all artwork lives |
| Padding | 2 px on each side | Prevents clipping and crowding |
Draw the keyline shapes
Keylines solve the optical size problem: a 20 px circle looks smaller than a 20 px square even though the numbers match. Inside the live area, draw these four shapes with no fill and a thin guide-coloured stroke, then convert them to guides (Ctrl/Cmd + 5) or lock them on a separate layer named Keylines.
| Keyline | Dimensions | Use for |
|---|---|---|
| Square | 18 x 18 px | Boxes, documents, grids, calendars |
| Circle | 20 px diameter | Clocks, avatars, info badges, search |
| Portrait rectangle | 16 x 20 px | Phones, pages, tall furniture, bottles |
| Landscape rectangle | 20 x 16 px | Cards, monitors, sofas, trucks |
Add two diagonals at 45 degrees through the centre if your set contains arrows or cutlery-style shapes. Every icon you draw should touch at least one keyline edge, which is what makes a mixed set feel balanced.

Step 3: One Artboard Per Icon
Do not pile icons onto one giant canvas. One artboard per icon gives you clean export names, correct bounding boxes and no cropping surprises.
- Use the Artboard tool (Shift + O) and hold Alt/Opt while dragging an artboard to duplicate it with the keylines intact.
- Arrange artboards in a grid with equal spacing, for example 8 columns.
- Rename every artboard in the Artboards panel using your final file names: icon-cart, icon-delivery, icon-ruler. Illustrator uses these names during export, so naming now means zero renaming later.
Step 4: Lock Your Stroke Weights
Inconsistent stroke weight is the single most visible flaw in an amateur icon set. The human eye spots a 1.75 px line next to a 2 px line instantly, even if it cannot name the problem.
The base rule
On a 24 px grid, use a 2 px stroke for every path. That is one twelfth of the icon size, which reads clearly on standard and retina screens without looking heavy.
Stroke panel settings to standardise
- Weight: 2 px, applied to every path in the set
- Cap: Round cap (or Butt cap if your style is geometric, but pick one and never mix)
- Corner: Round join
- Align Stroke: Align to Center for open paths. For closed shapes, centre alignment keeps your maths predictable because a 20 px square with a 2 px centred stroke occupies exactly 21 px… which is why many systems use even numbers and align closed shapes to the keyline edge instead. Test both at Pixel Preview and standardise.
- Corner radius: 2 px for outer corners, 1 px for inner corners
The setting that breaks everything
In Preferences > General, there is a checkbox called Scale Strokes & Effects. Understand it:
- Off while drawing: resizing a shape keeps the stroke at 2 px. This is what you want during design.
- On when exporting a larger version: scaling a 24 px icon to 48 px will scale the stroke to 4 px, keeping proportions identical.
If you are shipping multiple icon sizes, do not just scale one master. A 2 px stroke scaled down to 16 px becomes 1.33 px and goes blurry. Build a second optical size:
| Icon size | Stroke weight | Corner radius | Notes |
|---|---|---|---|
| 16 px | 1.5 px | 1 px | Redraw, remove small details |
| 24 px | 2 px | 2 px | Master size |
| 32 px | 2.5 px | 2 px | Scale master, adjust optically |
| 48 px | 4 px | 4 px | Pure scale with Scale Strokes ON |
Pro move: save your stroke configuration as a Graphic Style (Window > Graphic Styles). One click reapplies the exact weight, cap, join and colour to any path that drifted.

Step 5: Draw With Shapes, Not Freehand
Precise icons are assembled, not sketched. Build everything from rectangles, ellipses, polygons and straight segments.
- Start with primitives. Hold Shift while drawing to force perfect circles and squares.
- Combine with the Shape Builder tool (Shift + M) or the Pathfinder panel to merge, subtract and intersect.
- Round corners with the corner widgets (the small circles on a selected shape with the Direct Selection tool). Type exact radius values in the Transform panel rather than dragging.
- Keep paths open where possible. Open paths with round caps stay lighter and are easier to adjust than outlined shapes.
- Use the Shaper tool for rough-to-clean conversion if you prefer drawing gestures, then refine numerically.
Keep angles restricted
Limit yourself to 0, 45 and 90 degrees, plus 30 and 60 when a shape really needs it. Arbitrary angles produce anti-aliasing fuzz and break the visual rhythm of a set. Hold Shift while rotating to snap in 45 degree increments. The piece Create sets of product icons in Illustrator makes a good next read.
Step 6: Align So the Set Feels Like One Family
Mathematical alignment is not the same as optical alignment. Your eye is the final judge.
Mathematical alignment (do this first)
- Select all artwork on an artboard and use Align to Artboard, then Horizontal Align Center and Vertical Align Center.
- Check the Transform panel: X and Y should be whole numbers.
- Use Object > Path > Align to Pixel Grid on stubborn shapes.
Optical alignment (do this second)
- Triangles and arrows pointing right need to shift roughly 0.5 to 1 px left of centre to feel centred.
- Circles can extend slightly beyond the square keyline to match its visual mass.
- Heavy bottoms (a truck with wheels, a cabinet with legs) usually need 0.5 px of upward nudge.
The family test
Before export, run this three-part check:
- Zoom to 100% with Pixel Preview on. Any blurred edge means an off-grid value.
- Zoom out to 25%. Icons should remain distinguishable as silhouettes. If two icons read the same at this size, redesign one.
- Line them all up in a single row. Weight, density, corner language and visual size should be uniform. Anything that jumps out gets fixed.
Consistency checklist
- Same stroke weight on every path
- Same cap and join style throughout
- Same corner radius language (all rounded or all sharp)
- Same level of detail: do not mix a six-line icon with a twenty-line icon
- Same metaphor logic: a single visual language for actions, objects and states
- Colours defined as Global Swatches so a single edit updates the whole set

Step 7: Prepare Files for Export
Work on a duplicate file. You keep the editable master with live strokes and ship a flattened version.
- Save your master as icon-set-master.ai.
- Save As a copy named icon-set-export.ai.
- In the copy, delete or hide the Keylines layer and any guides.
- Select all and run Object > Path > Outline Stroke. This converts strokes to filled shapes so weights cannot be altered by downstream CSS or scaling.
- Run Pathfinder > Unite on each icon so each one is a single compound path. Fewer nodes means smaller files.
- Set fill to a single colour, usually #000000, so developers can recolour via CSS
fillorcurrentColor.
Keep the live-stroke master. If a client later asks for a 1.5 px version, outlined shapes make that a rebuild instead of a one-field change.
Step 8: SVG Export Settings for Web
Use File > Export > Export As, choose SVG, and tick Use Artboards. Then configure the SVG Options dialog:
| Option | Setting | Why |
|---|---|---|
| Styling | Presentation Attributes | Lets CSS override fill and stroke, essential for themes and hover states |
| Font | Convert To Outlines | No font dependency, renders identically everywhere |
| Images | Preserve | Irrelevant for pure vector icons, safe default |
| Object IDs | Layer Names | Readable markup developers can target |
| Decimal | 2 | Enough precision, much smaller file size than 3 or more |
| Minify | Checked | Strips comments and whitespace |
| Responsive | Unchecked | Keeps explicit width and height so icons do not collapse in some layouts |
Open one exported file in a text editor. A clean 24 px icon should be a short <svg> tag with a viewBox="0 0 24 24" and one or two <path> elements. If you see dozens of paths, nested groups or a <clipPath>, go back and unite your shapes. You’ll find this handled well over at houstondod.com.

Step 9: PNG Export Settings for Apps
SVG covers the web, but app stores and some legacy systems still want raster assets. Use File > Export > Export for Screens (Alt/Opt + Ctrl/Cmd + E).
- Select the Artboards tab and choose All or a specific range.
- Under Formats, add three entries: 1x PNG, 2x PNG, 3x PNG.
- Use suffixes
@1x,@2x,@3xso files sort cleanly. - Choose PNG (24-bit with alpha) rather than PNG 8 for anti-aliased edges and transparency.
- Click Export Artboard.
| Scale | Output size (from 24px) | Target |
|---|---|---|
| 1x | 24 x 24 px | Standard density screens |
| 2x | 48 x 48 px | Retina, most modern phones |
| 3x | 72 x 72 px | High-density flagship devices |
Because your source is vector and pixel-aligned at 1x, every multiple lands on whole pixels. That is the whole reason the 24 px grid matters.
Common Mistakes That Ruin an Icon Set
- Drawing at 100 px and scaling down. Fine details that look elegant large turn into mush at 24 px. Design at final size.
- Half-pixel coordinates. The most common cause of blurry icons. Check the Transform panel obsessively.
- Mixing stroke and fill styles within the same set without a deliberate system.
- Uneven detail density. Three icons with eight elements and one with twenty-two will never look related.
- Forgetting to outline strokes before handing files to a developer who then scales them.
- Exporting with live effects like drop shadows or blurs, which rasterize inside the SVG and bloat the file.
- Inconsistent naming, which turns a thirty-icon handoff into an hour of renaming.
A Reusable Workflow Summary
- New document, Web preset, 24 x 24 px, RGB, 72 ppi
- Grid at 24 px with 24 subdivisions, Pixel Preview on, Snap to Pixel on
- Keyline layer: 18 px square, 20 px circle, 16 x 20 and 20 x 16 rectangles
- Duplicate artboards, one per icon, named with final file names
- Draw with primitives, 2 px stroke, round caps and joins, 2 px corners
- Save stroke settings as a Graphic Style and reapply to catch drift
- Align mathematically, then correct optically
- Family test at 100%, at 25% and in a single row
- Duplicate file, delete keylines, outline strokes, unite paths
- Export SVG with presentation attributes and decimal 2, plus PNG at 1x, 2x, 3x
Save step 1 through 3 as a template file called icon-grid-24.ait. Every future set then starts in ten seconds instead of thirty minutes.
FAQ
What size should I design icons at in Illustrator?
Design at the size the icon will actually be used, most commonly 24 x 24 px for interface icons. If you need a 16 px version, redraw it with simplified detail rather than scaling the 24 px master down.
What stroke weight should I use for a 24px icon?
2 px is the standard. It keeps a clean ratio of 1:12 against the icon size and stays legible on both standard and retina displays. Use 1.5 px for 16 px icons and 4 px for 48 px icons.
Why do my Illustrator icons look blurry on screen?
Almost always because shapes sit on half-pixel coordinates. Turn on Pixel Preview, check that every X, Y, width and height value in the Transform panel is a whole number, and use Object > Path > Align to Pixel Grid on problem shapes.
Should I outline strokes before exporting SVG?
Yes for final delivery, because outlined strokes cannot be accidentally altered by scaling or CSS. Always keep a separate master file with live strokes so you can still edit weights later.
SVG or PNG for web icons?
SVG in nearly every case. It is resolution independent, smaller for simple shapes, and recolourable with CSS. Export PNG at 1x, 2x and 3x only when you need raster fallbacks, app store assets or email-compatible images. For the wider picture, see Creating an Illustrator Document For Icon Design.
How many icons should an icon set contain?
Start with the 12 to 20 icons your interface actually needs today. Set the rules with that core group, then expand. A tightly consistent set of 15 beats a loose set of 100.
Can I use one icon set for both web and app interfaces?
Yes, provided the base grid is 24 px and all coordinates are whole numbers. Export SVG for the web and PNG at 1x, 2x and 3x for native apps from the exact same artboards.
Do I need the latest version of Illustrator for this workflow?
No. Pixel Preview, Snap to Pixel, Export for Screens and the SVG options described here have been available for several release cycles, so any reasonably recent version of Illustrator will handle this tutorial without changes.