ICONYZ
English
Cog icon from Boxicons

Cog icon

boxicons:cog

The Cog icon (boxicons:cog) is a free SVG icon from the Boxicons set. It is drawn on a 24 × 24 grid. Boxicons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Boxicons
Author
Boxicons
License
MIT
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4s4-1.79 4-4s-1.79-4-4-4m0 6c-1.08 0-2-.92-2-2s.92-2 2-2s2 .92 2 2s-.92 2-2 2"/><path fill="currentColor" d="m20.42 13.4l-.51-.29c.05-.37.08-.74.08-1.11s-.03-.74-.08-1.11l.51-.29c.96-.55 1.28-1.78.73-2.73l-1-1.73a2.006 2.006 0 0 0-2.73-.73l-.53.31c-.58-.46-1.22-.83-1.9-1.11v-.6c0-1.1-.9-2-2-2h-2c-1.1 0-2 .9-2 2v.6c-.67.28-1.31.66-1.9 1.11l-.53-.31c-.96-.55-2.18-.22-2.73.73l-1 1.73c-.55.96-.22 2.18.73 2.73l.51.29c-.05.37-.08.74-.08 1.11s.03.74.08 1.11l-.51.29c-.96.55-1.28 1.78-.73 2.73l1 1.73c.55.95 1.77 1.28 2.73.73l.53-.31c.58.46 1.22.83 1.9 1.11v.6c0 1.1.9 2 2 2h2c1.1 0 2-.9 2-2v-.6a8.7 8.7 0 0 0 1.9-1.11l.53.31c.95.55 2.18.22 2.73-.73l1-1.73c.55-.96.22-2.18-.73-2.73m-2.59-2.78c.11.45.17.92.17 1.38s-.06.92-.17 1.38a1 1 0 0 0 .47 1.11l1.12.65l-1 1.73l-1.14-.66c-.38-.22-.87-.16-1.19.14c-.68.65-1.51 1.13-2.38 1.4c-.42.13-.71.52-.71.96v1.3h-2v-1.3c0-.44-.29-.83-.71-.96c-.88-.27-1.7-.75-2.38-1.4a1.01 1.01 0 0 0-1.19-.15l-1.14.66l-1-1.73l1.12-.65c.39-.22.58-.68.47-1.11c-.11-.45-.17-.92-.17-1.38s.06-.93.17-1.38A1 1 0 0 0 5.7 9.5l-1.12-.65l1-1.73l1.14.66c.38.22.87.16 1.19-.14c.68-.65 1.51-1.13 2.38-1.4c.42-.13.71-.52.71-.96v-1.3h2v1.3c0 .44.29.83.71.96c.88.27 1.7.75 2.38 1.4c.32.31.81.36 1.19.14l1.14-.66l1 1.73l-1.12.65c-.39.22-.58.68-.47 1.11Z"/></svg>

How to use the Cog icon

React

import { Icon } from "@iconify/react";

<Icon icon="boxicons:cog" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="boxicons:cog" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="boxicons:cog" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[boxicons--cog]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/boxicons -->
<div class="i-boxicons:cog"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="boxicons:cog"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/boxicons/cog.svg" alt="Cog icon" width="24" height="24">

Related icons in Boxicons

Cog icon in other icon sets

Cog icon FAQ

Is the Cog icon free for commercial use?

Yes. Boxicons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Cog icon in React?

Install @iconify/react and render <Icon icon="boxicons:cog" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Cog icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/boxicons/cog.svg" alt="Cog icon">, or paste the SVG code inline to style it with CSS.

Browse all Boxicons →