Carbon Key Icon
The Key icon from Carbon Icons is a fill-style SVG available in IconStash alongside 2,644+ other icons from the same library. Copy its SVG code, export a custom PNG, or download a React component — no account required.
Interactive Customizer
About this icon
Use the Key icon
The Key icon from Carbon Icons fits naturally in login and authentication flows, permission management panels, privacy settings, VPN apps, and security dashboards. Its fill style makes it ideal for interface components and product UI.
Open it in IconStash to set stroke color via presets or a custom hex value, choose an exact pixel size (16–512px), control stroke width (0.1–3px), and preview against dark, light, or checkered backgrounds before downloading.
Export formats
Copy clean SVG vectors with one click, generate custom-size PNG files from 16px to 512px, export JSX/React components ready to paste into your project, or use the icon as a CSS background-mask for flexible theming.
All exports are based on the same editable vector — so the Key icon stays pixel-perfect at 16px, 24px, 48px, and any large marketing size.
Design & UX integration
Aesthetic characteristics
Carbon is IBM's design system, and Key reflects its enterprise-first constraints: flat geometry, no gradients, and shapes that survive being shrunk into dense data grids. It is a common choice for regulated, data-heavy products where clarity outranks personality.
UX best practices
Security icons carry more weight than most: users read a lock, shield or key as a trust signal, so the Key icon should never be decorative. Place it next to the mechanism it actually describes — the payment step, the HTTPS indicator, the permission toggle — rather than in a generic header where it implies protection that may not exist.
Use in your project
React / npm — Carbon Icons
npm install @carbon/icons-react
import { Key } from '@carbon/icons-react';
// JSX usage:
<Key size={24} />
Copy the SVG markup directly from the IconStash editor to use the Key icon without any npm package — paste it into HTML, JSX, or a design tool.
Inline SVG (copy & paste)
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" role="img" aria-label="key icon"><path fill="currentColor" d="M30 9h-2l-2 7l-2-7h-2l3 9v5h2v-5zm-9 2V9h-8v14h8v-2h-6v-4h5v-2h-5v-4zM11 9H8.894L5 15.553V9H3v14h2v-4.294l.928-1.485L8.894 23H11l-3.89-7.57z"/></svg>
Library & related icons
About Carbon Icons
IBM's open-source icon library aligned with the Carbon Design System. 2,600+ enterprise-grade icons maintained by IBM's design team.
Browse all 2,644 Carbon Icons icons →Related searches
People also search for
Frequently asked questions
What is the Key icon?
The Key icon is a fill-style SVG icon from the Carbon Icons library, categorized under Security. It is designed for use in login and authentication flows, permission management panels, privacy settings, VPN apps, and security dashboards. On IconStash you can preview it, customize its color and size, and export it in SVG, PNG, JSX, or CSS formats directly from your browser.
Is the Key icon free to use?
Yes. Carbon Icons is licensed under Apache 2.0, making it free for personal and commercial use. This means you can freely use the Key icon in personal, commercial, and open-source projects. IconStash provides SVG and PNG access at no cost with no login required.
How do I use the Key icon in React?
Install the package with `npm install @carbon/icons-react`, then import the component into your React file. IconStash's detail panel shows you the exact npm command, import statement, and JSX usage snippet for every icon — just click the Code tab and copy with one click.
What is the Carbon Icons icon library?
IBM's open-source icon library aligned with the Carbon Design System. 2,600+ enterprise-grade icons maintained by IBM's design team. It contains 2,644+ icons. IconStash indexes the complete Carbon Icons collection alongside 27 other open-source libraries — 134,701 icons total — in a single unified search interface.
Can I download the Key icon as a PNG?
Yes. Open the Key icon in IconStash, set your desired pixel size (16px to 512px) in the detail panel, and click Download PNG. You can also export a multi-resolution ZIP pack containing 16, 24, 32, 48, 64, 128, 256, and 512px PNGs with a single click.
What does the fill icon style mean?
An icon in fill style uses a clean SVG vector format. This style is best suited for interface components. The Carbon Icons Key icon follows this visual convention throughout the Carbon Icons design system.
Can I change the Key icon's color and size before downloading?
Yes. In IconStash's editor panel, choose from six color presets (blue, slate, green, purple, red, teal) or enter a custom hex value. Drag the size slider (16–256px) or type an exact pixel value up to 512px. Changes apply instantly to the SVG preview, the PNG output, and the copied code.