An H with a 2, for a section heading in a formatting bar. On a 24×24 grid in stroke, two-tone, duotone and fill, free under MIT.
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M2 4V20M11 4V20M2 12H11M17 15C17 13.8954 17.8954 13 19 13C20.1046 13 21 13.8954 21 15C21 15.6037 20.7273 16.1751 20.258 16.5548L17 20H22"/>
</svg>Also called
What someone searching for this drawing would have typed instead. These are the words the browser's search matches on.
- h2
- level 2
- subheading
- headline
- format
Related icons
The rest of the heading family first, then the Text shelf.
FAQ
Answered from heading-2's own facts: its shelf, the weights it was drawn in, its siblings and its dates.
- What is the heading-2 icon for?
- An H with a 2, for a section heading in a formatting bar. It is filed under Text in Keyline Icons, drawn on the same 24×24 grid as the rest of the set. People look for it as h2, level 2, subheading, headline and format, and the browser's search matches all of those.
- What styles does the heading-2 icon come in?
- All four: stroke, two-tone, duotone and fill. They are drawn from the same geometry, so swapping style never moves anything.
- Is there a square or circle version of heading-2?
- No. heading-2 is drawn as a bare glyph, and the set has no boxed variant of it.
- What other icons go with heading-2?
- heading, heading-1, heading-3, heading-4, heading-5 and heading-6, and 12 more, all shown below. The heading family is listed first, then the rest of the Text shelf, so the row under this one is the useful one even where a shelf runs long.
- How do I import heading-2 in React?
- <Heading2 /> is the component, and the weight decides the module: stroke from "@keyline-icons/react", two-tone from "@keyline-icons/react/two-tone", duotone from "@keyline-icons/react/duotone" and fill from "@keyline-icons/react/fill". It takes the usual SVG props plus a size, so <Heading2 size={16} /> and className="size-4" both work, and there is no provider or theme to set up.
- Where is the heading-2 SVG?
- icons/stroke/heading-2.svg, icons/two-tone/heading-2.svg, icons/duotone/heading-2.svg and icons/fill/heading-2.svg in the repository, normalised: no wrapper, no ids and no classes to strip out. The tabs above hand you the same drawing as SVG or JSX without the download, and neither needs an install.
- When was heading-2 added to the set?
- Added 14 Sept 2026, and last redrawn 17 Sept 2026. It ships in v1.0.0, so an install at that version or later has it.
Questions about the set rather than about this drawing are answered where they belong. The home page covers what the set is, how the three styles differ, why some icons come boxed and where the Figma file is; installing the set in a shadcn/ui project covers the React package, the CLI and using an icon without React. The MIT licence is stated in the footer of every page.