Key icon
Download the Key icon as free SVG or PNG. Compare outline and filled styles. Copy React, Vue or Svelte code.
- password
- login
- access
- authentication
- unlock
- security
- credential
- api-key
- protection
Style
Size
Stroke
Filled icons have no stroke
Color
- Category
- general
- Styles
- Outline, filled
- Component
- IconKey
- License
- MIT · Paweł Kuna
Code
Copy it the way you use it
key.svg
<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="M16.555 3.843l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.643 2.643a2.877 2.877 0 0 1 -4.069 0l-.301 -.301l-6.558 6.558a2 2 0 0 1 -1.239 .578l-.175 .008h-1.172a1 1 0 0 1 -.993 -.883l-.007 -.117v-1.172a2 2 0 0 1 .467 -1.284l.119 -.13l.414 -.414h2v-2h2v-2l2.144 -2.144l-.301 -.301a2.877 2.877 0 0 1 0 -4.069l2.643 -2.643a2.877 2.877 0 0 1 4.069 0" />
<path d="M15 9h.01" />
</svg> Use the Key icon
For a decorative icon beside text, add aria-hidden="true" to the SVG. For an icon-only control, put its accessible name on the button or link.
React example
import { IconKey } from '@tabler/icons-react';
<IconKey size={24} stroke={2} />Read the React guideVue example
import { IconKey } from '@tabler/icons-vue';
<IconKey :size="24" :stroke="2" />Read the Vue guideSvelte 5 example
import { IconKey } from '@tabler/icons-svelte-runes';
<IconKey size={24} stroke={2} />Read the Svelte guideCompare variants and alternatives
Related