ICONYZ
English
Key icon from Font Awesome 5 Solid

Key icon

fa-solid:key

The Key icon (fa-solid:key) is a free SVG icon from the Font Awesome 5 Solid set by Dave Gandy. It is drawn on a 512 × 512 grid. Font Awesome 5 Solid icons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Font Awesome 5 Solid
Author
Dave Gandy
License
CC-BY-4.0
Size
512 × 512
Category
Security, Payments & Shopping, Objects, Maps, Hotel
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><path fill="currentColor" d="M512 176.001C512 273.203 433.202 352 336 352c-11.22 0-22.19-1.062-32.827-3.069l-24.012 27.014A24 24 0 0 1 261.223 384H224v40c0 13.255-10.745 24-24 24h-40v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-78.059c0-6.365 2.529-12.47 7.029-16.971l161.802-161.802C163.108 213.814 160 195.271 160 176C160 78.798 238.797.001 335.999 0C433.488-.001 512 78.511 512 176.001M336 128c0 26.51 21.49 48 48 48s48-21.49 48-48s-21.49-48-48-48s-48 21.49-48 48"/></svg>

How to use the Key icon

React

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

<Icon icon="fa-solid:key" width="24" />

Vue

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

<template>
  <Icon icon="fa-solid:key" width="24" />
</template>

Svelte

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

<Icon icon="fa-solid:key" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[fa-solid--key]"></span>

UnoCSS

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

Web component

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

<iconify-icon icon="fa-solid:key"></iconify-icon>

HTML image

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

Related icons in Font Awesome 5 Solid

Key icon in other icon sets

Key icon FAQ

Is the Key icon free for commercial use?

Yes. Font Awesome 5 Solid icons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.

How do I use the Key icon in React?

Install @iconify/react and render <Icon icon="fa-solid: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/fa-solid/key.svg" alt="Key icon">, or paste the SVG code inline to style it with CSS.

Browse all Font Awesome 5 Solid icons →