A toothed wheel for settings, machinery and how things work. 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="M12 4C16.4182 4 20 7.58 20 12M12 4C7.5818 4 4 7.58 4 12M12 4V2M20 12C20 16.42 16.4182 20 12 20M20 12H22M20 12H14M12 20C7.5818 20 4 16.42 4 12M12 20V22M4 12H2M14 12C14 10.9 13.1046 10 12 10C10.8954 10 10 10.9 10 12C10 13.1 10.8954 14 12 14C13.1046 14 14 13.1 14 12ZM7 3.35L8 5.08L10.8366 10M16 18.94L17 20.67M3.3373 7L5.0693 8M18.9257 16L20.6578 17M3.3422 17L5.0743 16M18.9307 8L20.6628 7M7 20.67L8 18.94L10.854 14M16 5.08L17 3.35"/>
</svg>Also called
What someone searching for this drawing would have typed instead. These are the words the browser's search matches on.
- gear
- settings
- machine
- mechanism
- preferences
- engineering
Related icons
The rest of the cog family first, then the Web shelf.
FAQ
Answered from cog's own facts: its shelf, the styles it was drawn in, its siblings and its dates.
- What is the cog icon for?
- A toothed wheel for settings, machinery and how things work. It is filed under Web in Keyline Icons, drawn on the same 24×24 grid as the rest of the set. People look for it as gear, settings, machine, mechanism, preferences and engineering, and the browser's search matches all of those.
- What styles does the cog 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 cog?
- No. cog is drawn as a bare glyph, and the set has no boxed variant of it.
- What other icons go with cog?
- cog-dot, bookmark, bookmark-off, bookmark-plus, bookmarks and circle-navigation, and 12 more, all shown below. The cog family is listed first, then the rest of the Web shelf, so the row under this one is the useful one even where a shelf runs long.
- How do I import cog in React?
- <Cog /> is the component, and the style 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 <Cog size={16} /> and className="size-4" both work, and there is no provider or theme to set up.
- Where is the cog SVG?
- icons/stroke/cog.svg, icons/two-tone/cog.svg, icons/duotone/cog.svg and icons/fill/cog.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 cog added to the set?
- Added 8 Nov 2026. It ships in v2.6.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.