Icons

Phosphor Key Icon

The Phosphor Key icon uses uses stroked lines with no fill — clean, legible, and versatile at any size. Compare it against similar icons in 27 other libraries on IconStash, adjust stroke width, change colors with a hex picker, and export at any size.

Interactive Customizer

1.5px
128px

About this icon

Use the Key icon

Icons in the outline style — like Key — are designed for app navigation bars, toolbar buttons, form labels, and UI controls where clarity at 16–24px is critical. Use it across login and authentication flows, permission management panels, privacy settings, VPN apps, and security dashboards for a consistent, professional look.

IconStash's editor lets you fine-tune color, size, and stroke width in real time, then export in the format that fits your workflow: SVG, PNG, JSX, or CSS background-mask.

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

Phosphor draws Key with a uniform stroke weight and generous curves. Its defining feature is a six-weight system — Thin, Light, Regular, Bold, Fill and Duotone — so one concept can carry an entire visual hierarchy without you switching icon families mid-product.

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 — Phosphor

npm install phosphor-react

import { Key } from 'phosphor-react';

// JSX usage:
<Key size={24} weight="regular" />

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 256 256" 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="M216.57 39.43a80 80 0 0 0-132.66 81.35L28.69 176A15.86 15.86 0 0 0 24 187.31V216a16 16 0 0 0 16 16h32a8 8 0 0 0 8-8v-16h16a8 8 0 0 0 8-8v-16h16a8 8 0 0 0 5.66-2.34l9.56-9.57A79.7 79.7 0 0 0 160 176h.1a80 80 0 0 0 56.47-136.57M224 98.1c-1.09 34.09-29.75 61.86-63.89 61.9H160a63.7 63.7 0 0 1-23.65-4.51a8 8 0 0 0-8.84 1.68L116.69 168H96a8 8 0 0 0-8 8v16H72a8 8 0 0 0-8 8v16H40v-28.69l58.83-58.82a8 8 0 0 0 1.68-8.84A63.7 63.7 0 0 1 96 95.92c0-34.14 27.81-62.8 61.9-63.89A64 64 0 0 1 224 98.1M192 76a12 12 0 1 1-12-12a12 12 0 0 1 12 12"/></svg>

Library & related icons

About Phosphor Icons

Flexible icon family with 9,000+ icons across six weights: Thin, Light, Regular, Bold, Fill, and Duotone. Designed to work together at any scale.

  • Total icons: 9,198+
  • Style: multi-style
  • License: MIT
  • npm package: phosphor-react
Browse all 9,198 Phosphor Icons icons →

People also search for

Frequently asked questions

What is the Key icon?

The Key icon is a outline-style SVG icon from the Phosphor 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. Phosphor is licensed under MIT, 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 phosphor-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 Phosphor icon library?

Flexible icon family with 9,000+ icons across six weights: Thin, Light, Regular, Bold, Fill, and Duotone. Designed to work together at any scale. It contains 9,198+ icons. IconStash indexes the complete Phosphor 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 outline icon style mean?

An icon in outline style uses stroked lines with no fill — clean, legible, and versatile at any size. This style is best suited for app navigation bars, toolbar buttons, form labels, and UI controls where clarity at 16–24px is critical. The Phosphor Key icon follows this visual convention throughout the Phosphor 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.