Best Free Icon Libraries for Web Development (2026)
Seven free icon libraries counted from their current npm packages on October 14, 2026: from Heroicons' 324 icons per style to Material Design Icons' 7,447, with licenses (Lucide is ISC, not MIT), grids, stroke widths and how to add icons without bloat.
Seven Free Icon Libraries, Counted
Icon counts on library homepages are often rounded or out of date, so we installed the current npm package of each library on October 14, 2026 and counted the SVG files, then opened each library's search icon to compare grids and styles:
| Library (npm version) | Icons | License | Grid and style |
|---|---|---|---|
| Lucide (1.57.0) | 2,154 | ISC | 24 × 24, 2 px stroke |
| Tabler Icons (3.49.0) | 5,184 outline + 1,054 filled | MIT | 24 × 24, 2 px stroke |
| Heroicons (2.2.0) | 324 outline + 324 solid | MIT | 24 × 24, 1.5 px stroke |
| Phosphor (2.1.1) | 1,512 per weight, 6 weights (9,072 files) | MIT | 256 × 256 viewBox, filled outlines |
| Bootstrap Icons (1.13.2) | 2,078 | MIT | 16 × 16, filled |
| Remix Icon (4.9.1) | 3,229 | Apache-2.0 | 24 × 24, filled, line and fill variants |
| Material Design Icons (7.4.47) | 7,447 | Apache-2.0 | 24 × 24, filled |
Two corrections to common claims: Lucide is licensed ISC, not MIT (both are permissive and allow commercial use with the notice kept), and Heroicons is small on purpose, with a few hundred icons in each style rather than thousands. Choose by coverage of the icons you need, then by style: stroke libraries (Lucide, Tabler, Heroicons) can match a text weight, filled ones (Bootstrap, Remix, Material) read better at very small sizes.
Getting Icons Into a Project
- Inline SVG with
stroke="currentColor"orfill="currentColor": the icon takes the text color, including hover and dark mode, and costs a few hundred bytes (the search icons above were 243 to 483 bytes). - Per-icon imports in a framework (for example
import { Search } from 'lucide-react'): bundlers keep only the icons you use. - Icon fonts and sprite sheets load the whole set at once; avoid them unless you use a large share of the icons.
Our Icon Browser offers a curated set of 66 Heroicons v1 outline icons (24 × 24, 2 px stroke) with copy-ready SVG, which covers common interface needs without installing anything.
Sizing and Accessibility
- Keep one library per product; mixing stroke widths and corner styles shows immediately.
- Size icons to the text they sit with, typically 16 to 24 px, and keep stroke icons at their native 24 px or a whole multiple where crispness matters.
- Make the tap area at least 24 × 24 CSS pixels, the WCAG 2.2 minimum target size, even if the glyph is smaller.
- Give icon-only buttons an accessible name with
aria-label, and hide decorative icons witharia-hidden="true".