Skip to content

Key

The key icon represents a key, commonly used to symbolize access, security, or password management.

Exports at 21 × 24 px

Key icon from Octicons
Get Pro

Code

Key in your framework

In any framework. Customize it above, and the code follows.

export const KeyIcon = (props: React.SVGProps<SVGSVGElement>) => (
  <svg xmlns="http://www.w3.org/2000/svg" width="21" height="24" viewBox="0 0 14 16" {...props}>
    <path fillRule="evenodd" d="M12.83 2.17C12.08 1.42 11.14 1.03 10 1c-1.13.03-2.08.42-2.83 1.17S6.04 3.86 6.01 5c0 .3.03.59.09.89L0 12v1l1 1h2l1-1v-1h1v-1h1v-1h2l1.09-1.11c.3.08.59.11.91.11c1.14-.03 2.08-.42 2.83-1.17S13.97 6.14 14 5c-.03-1.14-.42-2.08-1.17-2.83zM11 5.38c-.77 0-1.38-.61-1.38-1.38c0-.77.61-1.38 1.38-1.38c.77 0 1.38.61 1.38 1.38c0 .77-.61 1.38-1.38 1.38z" fill="currentColor"/>
  </svg>
);

Octicons

Icons that share its tags, in the same style.

  • Key  16 icon from Octicons
  • Key  24 icon from Octicons
  • Key Asterisk  16 icon from Octicons
  • Key Asterisk  24 icon from Octicons
  • Hash  16 icon from Octicons
  • Hash  24 icon from Octicons
  • Lock icon from Octicons
  • Shield X  16 icon from Octicons
  • Shield X  24 icon from Octicons
  • Sign In icon from Octicons
  • Sign In  16 icon from Octicons
  • Sign In  24 icon from Octicons
  • Sign Out icon from Octicons
  • Unlock  16 icon from Octicons
  • Unlock  24 icon from Octicons
  • Bookmark Filled  16 icon from Octicons
  • Bookmark Slash  16 icon from Octicons
  • Bookmark Slash  24 icon from Octicons
  • Boolean Off  16 icon from Octicons
  • Boolean Off  24 icon from Octicons
  • Boolean On  16 icon from Octicons
  • Boolean On  24 icon from Octicons
  • Briefcase icon from Octicons
  • Dice  16 icon from Octicons

Skip the copy and paste. With Pro, your AI agent finds and installs any Octicons icon from a prompt.

Get Pro

Pricing

Octicons MCP, with Pro

Ask for Key or any of 901 Octicons 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 Key icon means and where it's used, then how to install, style, label and license it.

4.9 out of 5 from 150+ developers

Install Key from a prompt

MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.

Get Pro