ICONYZ
English
Key icon from Flat Color Icons

Key icon

flat-color-icons:key

The Key icon (flat-color-icons:key) is a free SVG icon from the Flat Color Icons set by Icons8. It is drawn on a 48 × 48 grid. Flat Color Icons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Flat Color Icons
Author
Icons8
License
MIT
Size
48 × 48
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><g fill="#FFA000"><path d="m30 41l-4 4h-4l-4-4V21h12v8l-2 2l2 2v2l-2 2l2 2z"/><path d="M38 7.8c-.5-1.8-2-3.1-3.7-3.6C31.9 3.7 28.2 3 24 3s-7.9.7-10.3 1.2C12 4.7 10.5 6 10 7.8c-.5 1.7-1 4.1-1 6.7s.5 5 1 6.7c.5 1.8 1.9 3.1 3.7 3.5c2.4.6 6.1 1.3 10.3 1.3s7.9-.7 10.3-1.2c1.8-.4 3.2-1.8 3.7-3.5s1-4.1 1-6.7c0-2.7-.5-5.1-1-6.8M29 13H19c-1.1 0-2-.9-2-2V9c0-.6 3.1-1 7-1s7 .4 7 1v2c0 1.1-.9 2-2 2"/></g><path fill="#D68600" d="M23 26h2v19h-2z"/></svg>

How to use the Key icon

React

import { Icon } from "@iconify/react";

<Icon icon="flat-color-icons:key" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="flat-color-icons:key" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="flat-color-icons:key" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[flat-color-icons--key]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/flat-color-icons -->
<div class="i-flat-color-icons:key"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="flat-color-icons:key"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/flat-color-icons/key.svg" alt="Key icon" width="24" height="24">

Key icon in other icon sets

Key icon FAQ

Is the Key icon free for commercial use?

Yes. Flat Color Icons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Key icon in React?

Install @iconify/react and render <Icon icon="flat-color-icons:key" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Key icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/flat-color-icons/key.svg" alt="Key icon">, or paste the SVG code inline to style it with CSS.

Browse all Flat Color Icons →