Cog
The cog icon represents a gear or a mechanical device, which is often used to symbolize settings or configuration.
Exports at 24 × 24 px
Code
Cog in your framework
In any framework. Customize it above, and the code follows.
export const CogIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 512 512" {...props}>
<path fill="currentColor" d="M245.151 168a88 88 0 1 0 88 88a88.1 88.1 0 0 0-88-88m0 144a56 56 0 1 1 56-56a56.063 56.063 0 0 1-56 56"/><path fill="currentColor" d="m464.7 322.319l-31.77-26.153a193.1 193.1 0 0 0 0-80.332l31.77-26.153a19.94 19.94 0 0 0 4.606-25.439l-32.612-56.483a19.936 19.936 0 0 0-24.337-8.73l-38.561 14.447a192 192 0 0 0-69.54-40.192l-6.766-40.571A19.936 19.936 0 0 0 277.762 16H212.54a19.94 19.94 0 0 0-19.728 16.712l-6.762 40.572a192 192 0 0 0-69.54 40.192L77.945 99.027a19.94 19.94 0 0 0-24.334 8.731L21 164.245a19.94 19.94 0 0 0 4.61 25.438l31.767 26.151a193.1 193.1 0 0 0 0 80.332l-31.77 26.153A19.94 19.94 0 0 0 21 347.758l32.612 56.483a19.94 19.94 0 0 0 24.337 8.73l38.562-14.447a192 192 0 0 0 69.54 40.192l6.762 40.571A19.94 19.94 0 0 0 212.54 496h65.222a19.936 19.936 0 0 0 19.728-16.712l6.763-40.572a192 192 0 0 0 69.54-40.192l38.564 14.449a19.94 19.94 0 0 0 24.334-8.731l32.609-56.487a19.94 19.94 0 0 0-4.6-25.436m-50.636 57.12l-48.109-18.024l-7.285 7.334a159.96 159.96 0 0 1-72.625 41.973l-10 2.636L267.6 464h-44.89l-8.442-50.642l-10-2.636a159.96 159.96 0 0 1-72.625-41.973l-7.285-7.334l-48.117 18.024L53.8 340.562l39.629-32.624l-2.7-9.973a160.9 160.9 0 0 1 0-83.93l2.7-9.972L53.8 171.439l22.446-38.878l48.109 18.024l7.285-7.334a159.96 159.96 0 0 1 72.625-41.973l10-2.636L222.706 48H267.6l8.442 50.642l10 2.636a159.96 159.96 0 0 1 72.625 41.973l7.285 7.334l48.109-18.024l22.447 38.877l-39.629 32.625l2.7 9.972a160.9 160.9 0 0 1 0 83.93l-2.7 9.973l39.629 32.623Z"/>
</svg>
);Other libraries
Cog in 8 more libraries
Each library draws it its own way. Open one to compare.
CoreUI Free
More like it
Icons that share its tags, in the same style.
Search CoreUI Free
Skip the copy and paste. With Pro, your AI agent finds and installs any CoreUI Free icon from a prompt.
Get ProTags
Browse by tag
Cog is tagged settings, configuration, engineering and 2 more. Related tags follow; each opens its icons from every library.
Pricing
CoreUI Free MCP, with Pro
Ask for Cog or any of 562 CoreUI Free icons and your agent installs it. The MCP comes with every Pro plan, with 6,000+ blocks and 14 premium templates. The icons stay free.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
What the Cog icon means and where it's used, then how to install, style, label and license it.
The cog icon represents a gear or a mechanical device, which is often used to symbolize settings or configuration. The visual design of the icon features interlocking gears, indicating a complex system that can be adjusted or fine-tuned. The origins of this symbol date back to the Industrial Revolution, where gears and mechanical devices were used to power machinery.
In real-world applications, the cog icon is often used in digital products related to settings or configuration, such as software applications, control panels, and device settings. For example, Google Chrome uses a similar icon for their settings menu.
From a UX perspective, the cog icon communicates a sense of control and customization, and is often used to indicate a settings or configuration menu. It can also be used to represent a complex system or a technical process.
Cog is one of 562 icons in CoreUI Free, made by creativeLabs Łukasz Holeczek and released under CC BY 4.0. It is drawn on a 512 × 512 grid.
Sign in (it's free), then open Get icon, Install with shadcn CLI, and pick your package manager to copy the command. It adds CogIcon to components/icons/cil-cog.tsx: one file, a size prop (24 by default) and every SVG prop, with no icon package.
Copy it as React (from Get icon, or the Code section): a typed CogIcon component you paste into your project, with no package to install. Only the icons you import reach your bundle. It works in Next.js and any React app.
Open Get icon, then Copy as code, and pick Vue, Svelte, Angular, Solid or Preact; the Code section shows each one too. Every version is one self-contained component with the SVG inside, and SVG and data URL copies are there for plain HTML and CSS.
With Pro, the shadcn.io MCP server lets Claude Code, Cursor or any MCP client find the Cog icon, or any of 562 CoreUI Free icons, and install it from a prompt.
It's drawn in currentColor, so it takes the text color wherever you use it: a class like text-primary recolors it. To bake a color in, set one in Customize before you copy.
Set width and height on the component, or a class like size-6. It's drawn on a 512 × 512 grid, so it stays sharp at any size. Customize also sets the size it exports at, its padding and rotation.
Yes. It follows the text color, so with text-foreground (or any theme token) it changes with your light and dark themes. The icon is a vector, so it needs no separate dark asset.
Next to a visible label it's decoration: add aria-hidden="true" so screen readers skip it. Standing alone, as in an icon button, give the button a name instead, like aria-label="Cog", so screen readers say what it does.
Yes. CogIcon passes every SVG prop to the svg element, so <CogIcon aria-hidden="true" /> works, and so do role="img" with aria-label, or a title child, when it carries meaning on its own.
Yes. Open Get icon, then Download file: SVG for code or design tools like Figma; PNG, WebP or JPEG at 512px; or an ICO favicon with 16, 32 and 48px inside. Each one uses what you set in Customize.
Yes, with credit: CC BY 4.0 asks you to credit the author (creativeLabs Łukasz Holeczek) where you use the icons. The full terms are in the license, linked on this page.
Yes. CC BY 4.0 asks you to credit the author where you use the icons, for example "Icons by creativeLabs Łukasz Holeczek, CC BY 4.0" on an about or credits page.
Yes. Copying and downloading it is free, and the shadcn CLI install only needs a free account.
8 other libraries draw an icon called Cog. The Other libraries section on this page shows each one, so you can compare them and open the one that fits your style.
Its tags are settings, configuration, engineering, gear and mechanical. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for Cog in another set.
4.9 out of 5 from 150+ developers
Install Cog from a prompt
MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.
Get Pro