key icon
Free key SVG icon, MIT licensed. Copy the SVG, install for React/Vue/Angular, or download. Part of the Softicons interface set.
Setup guide
<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">
<circle cx="8" cy="8" r="5"/>
<line x1="11.5" y1="11.5" x2="21" y2="21"/>
<line x1="17" y1="17" x2="20" y2="14"/>
<line x1="14" y1="14" x2="16" y2="16"/>
</svg><!-- via the CDN — no build step -->
<img src="https://cdn.softicons.dev/v1/icons/interface/key.svg"
width="24" height="24" alt="key icon">
<!-- …or paste the raw SVG from the SVG tab -->import { KeyIcon } from "@softicons/react";
export default function Example() {
return <KeyIcon size={24} strokeWidth={2} />;
}<script setup>
import { KeyIcon } from "@softicons/vue";
</script>
<template>
<KeyIcon :size="24" :stroke-width="2" />
</template>import { KeyIconComponent } from "@softicons/angular";
@Component({
standalone: true,
imports: [KeyIconComponent],
template: `<key-icon [size]="24" [strokeWidth]="2" />`,
})
export class DemoComponent {}