Key icon

A hand-drawn key icon that animates on its own: an SVG on a 24px grid in thin, regular and bold strokes. Free to download and use in the apps you build (LumioUI License). It takes your text colour through currentColor.

Category
Interface
Grid
24 × 24
Strokes
1.5 · 2 · 2.5
Name
key

Stroke weights and sizes

Key icon, thin · 1.5 stroke
Thin · 1.5
Key icon, regular · 2 stroke
Regular · 2
Key icon, bold · 2.5 stroke
Bold · 2.5
Key icon at 16px
16px
Key icon at 24px
24px
Key icon at 32px
32px
Key icon at 48px
48px

Use it in React Native

Paste the SVG into react-native-svg's SvgXml. The Icon component covers a curated set by name, and Animated Icons plays the motion natively.

TSX KeyIcon.tsx
import { SvgXml } from "react-native-svg";

const KeyIcon = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><g><circle stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" cx="7.6" cy="7.6" r="3.2"></circle><circle stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" cx="7.6" cy="7.6" r="1.05"></circle><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M10.1 10.1L18.8 18.8"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M15.9 15.9L17.8 14M18.1 18.1L20 16.2"></path></g></svg>`;

<SvgXml xml={KeyIcon} width={24} height={24} color="#111" />

SVG code

The still glyph. The animated version, linked above, plays its motion on its own with SMIL, so it needs no script.

SVG key.svg
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><g><circle stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" cx="7.6" cy="7.6" r="3.2"></circle><circle stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" cx="7.6" cy="7.6" r="1.05"></circle><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M10.1 10.1L18.8 18.8"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M15.9 15.9L17.8 14M18.1 18.1L20 16.2"></path></g></svg>

On the web, link it straight from the CDN:

HTML index.html
<img src="https://cdn.lumioui.com/iconset/static/key.svg" width="24" height="24" alt="Key" />

Related icons

All 670 interface icons → · Browse all 3,072 icons