Iconkeep › Blog

Icon size guidelines for web and mobile: a practical guide

· 6 min read

For most interfaces, use 24px icons by default, 16–20px icons next to small text, and 32px or larger for feature and empty-state icons. On touch screens, keep the icon at that size but make the tappable area bigger: at least 44x44 pt on iOS, 48x48dp on Android, and at least 24x24 CSS pixels on the web to meet WCAG 2.2 at level AA.

This guide puts the platform numbers in one table, then covers what the short lists skip: why the icon and the touch target are two different sizes, how stroke width changes when you scale an icon, and how to size icons next to text.

Icon sizes at a glance

Where Visible icon Tap or click area Source
Web, inline with text 1em (16–20px) The link or button around it —
Web, toolbar or icon button 20–24px At least 24x24 CSS px (WCAG 2.2 AA), 44x44 for AAA >W3C
iOS and iPadOS Smaller than the hit region At least 44x44 pt >Apple HIG
visionOS Smaller than the hit region At least 60x60 pt >Apple HIG
Android 24dp At least 48x48dp (about 9mm) >Android Accessibility Help
Material Icons 18, 24, 36 or 48px (default 24) — >Google Fonts
IBM Design Language 16, 20, 24 or 32px 44px or more on touch surfaces >IBM
Feature, empty state, illustration 32–96px — —

The numbers in the last column are the sources' own recommendations, not laws. WCAG is the one most likely to be part of a contract or an accessibility audit.

What is the difference between icon size and touch target size?

The icon is what people see. The target is what they can click or tap. They are rarely the same size, and confusing them is the most common sizing mistake.

Android's accessibility help puts it directly: an icon may look 24x24dp while the padding around it makes up the full 48x48dp touch target. IBM gives the same advice for the web: the icon can be smaller than 44px if CSS padding makes the target reach 44px.

.icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;   /* the target */
  padding: 0;
}
.icon-button svg {
  width: 24px;
  height: 24px;       /* the icon */
}

Three rules worth knowing:

  1. WCAG 2.5.8 (level AA) asks for 24x24 CSS pixels. A smaller target can still pass if a 24px circle centred on it doesn't overlap another target or another small target's circle. Links inside a sentence are exempt.
  2. WCAG 2.5.5 (level AAA) asks for 44x44 CSS pixels. Apple's general rule for buttons uses the same number: a hit region of at least 44x44 pt.
  3. Spacing counts too. Android recommends 8dp or more between touch targets, and Apple suggests keeping visionOS button centres at least 60 pt apart.

Common icon sizes and when to use them

16px. Dense tables, breadcrumbs, inline hints, small labels. Only simple shapes read at this size.

20px. Buttons with text, form fields, menus, sidebar items. IBM pairs its 16 and 20px icons with 14pt and 16pt text.

24px. The default for toolbars, navigation, tab bars and icon-only buttons on both web and mobile.

32px. Larger controls, list items with an icon in front, settings screens.

48px and above. Feature lists, empty states, onboarding, cards and printed material. This is where detailed icons, with several objects in one picture, have room to read.

The more detail an icon has, the larger it needs to be. A search or home icon still reads at 16px. A scene like team at laptops with gear needs 48px or more; at 16px its lines run together.

These read well at small sizes. Icons like these below are better at 48px and up:

How does stroke width change when you resize an icon?

For line icons this matters more than the pixel size. An SVG scales as a whole, so the stroke shrinks with the icon.

Iconkeep icons are drawn on a 48px grid with a 1.5px stroke. Shown at other sizes, the line becomes:

Displayed size Line at stroke 1.5 Stroke for a 1.5px line Stroke for a 1px line
16px 0.5px 4.5 3
24px 0.75px 3 2
32px 1px 2.25 1.5
48px 1.5px 1.5 1
96px 3px 0.75 0.5

The formula: line in px = stroke-width × displayed size ÷ 48. For an icon on a 24px grid, divide by 24 instead.

A 0.5px line looks faint on most screens, so for small icons you have three options:

  1. Set a thicker stroke in the SVG. Change stroke-width="1.5" to the value from the table. On Iconkeep you can set the stroke with the control at the top before you copy or download. The slider goes up to 2.5, enough for 32px; for 24px or 16px, edit the number in the code.
  2. Set it in CSS for every icon at once: .icon-sm svg { stroke-width: 3; }.
  3. Keep the line constant with vector-effect. On inline SVG, add vector-effect="non-scaling-stroke" to the paths and the stroke keeps its width in screen pixels whatever the icon size. >MDN describes it: the stroke width "is not dependent on the transformations of the element". The trade-off: a thick line in a small icon can fill in small details, so check the result.

IBM's icon set shows the same principle from the designer's side: its icons use a 1px stroke at 16px, 1.5px at 24px and 2px at 32px. If you mix icon sets, match the rendered line widths, not the file's stroke numbers.

Sizing icons next to text

For icons in buttons, links and labels, size them with em so they follow the text:

.inline-icon {
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.25em;
  flex: none;
}

In flex layouts, centre the icon with align-items: center instead of using vertical-align. IBM recommends centring icons against text rather than aligning them to the baseline.

Two details that help:

  • Keep one size per row. A 20px icon in one menu item and 24px in the next looks like a mistake.
  • Give the icon the text colour. With stroke="currentColor" the icon follows the label, including hover and dark mode. Our guide on changing the color of SVG icons with CSS covers it.

Exporting icons at the right size

Prefer SVG for screens: it stays sharp at any size. Set the size with width and height in CSS or as attributes and keep the viewBox as it is. Changing the viewBox crops or shifts the drawing instead of resizing it.

Use PNG where SVG isn't accepted, such as some email clients, slide tools and social posts. Export at least twice the display size, so a 24px icon becomes a 48px or larger PNG, and the image stays sharp on high-density screens. Iconkeep PNG downloads come in 128, 256, 512 and 1024px.

A sizing checklist

  1. Pick a scale and stick to it, for example 16, 20, 24 and 32px.
  2. Use simple icons at 16–20px and save detailed icons for 32px and up.
  3. Make every icon-only control at least 24x24 CSS px on the web (44x44 is safer for touch), 44x44 pt on iOS and 48x48dp on Android.
  4. Check the rendered stroke width and adjust it for small sizes.
  5. Size inline icons in em, layout icons in px.
  6. Give icon-only buttons an accessible name, such as an aria-label.
Ui & Interface icons · 485 free icons, SVG and PNG

Frequently asked questions

What is the standard icon size for websites and apps?

24px is the most common default for interface icons. Material Icons are recommended at 18, 24, 36 or 48px with 24px as the default, and IBM's icons are made for 16, 20, 24 and 32px. Use 16 to 20px next to small text and 24px for toolbars and navigation.

What size should icons be on mobile?

The visible icon is usually 24px (24pt on iOS, 24dp on Android), but the area people tap should be bigger. Apple recommends a hit region of at least 44x44 pt and Android recommends touch targets of at least 48x48dp. Add padding around the icon instead of enlarging it.

What is the minimum touch target size for accessibility?

WCAG 2.2 Success Criterion 2.5.8 (level AA) asks for pointer targets of at least 24x24 CSS pixels, with exceptions, for example when smaller targets have enough space around them. The stricter level AAA criterion 2.5.5 asks for 44x44 CSS pixels.

Should I size icons in px or em?

Use em for icons that sit inside text, such as a link or a button label, so they follow the font size. Use px, or your design tokens, for icons with a fixed place in the layout such as toolbars, tab bars and icon buttons.

Why do my icons look thin or blurry at small sizes?

SVG stroke width scales with the icon. An icon drawn at 48px with a 1.5px stroke has a 0.75px line at 24px and a 0.5px line at 16px. Raise the stroke-width, download the icon with a thicker stroke, or use vector-effect non-scaling-stroke on inline SVG.

More from the blog

Iconkeep is free

Every static icon is free for personal and commercial work. If they save you time, you can pay what you want — $0 is a fair price too.

We only ask once. Prefer a tip? Ko-fi

Donate to Iconkeep

Payments are handled by Ko-fi. Open Ko-fi in a new tab