ICONYZ
English
Key icon from Font Awesome 6 Solid

Key icon

fa6-solid:key

The Key icon (fa6-solid:key) is a free SVG icon from the Font Awesome 6 Solid set by Dave Gandy. It is drawn on a 512 × 512 grid. Font Awesome 6 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 6 Solid
Author
Dave Gandy
License
CC-BY-4.0
Size
512 × 512
Category
Hotel, Objects, Security, Maps, Payments & Shopping
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="M336 352c97.2 0 176-78.8 176-176S433.2 0 336 0S160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7L7 391c-4.5 4.5-7 10.6-7 17v80c0 13.3 10.7 24 24 24h80c13.3 0 24-10.7 24-24v-40h40c13.3 0 24-10.7 24-24v-40h40c6.4 0 12.5-2.5 17-7l33.3-33.3c16.9 5.4 35 8.3 53.7 8.3m40-256a40 40 0 1 1 0 80a40 40 0 1 1 0-80"/></svg>

How to use the Key icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

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

Related icons in Font Awesome 6 Solid

Key icon in other icon sets

Key icon FAQ

Is the Key icon free for commercial use?

Yes. Font Awesome 6 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="fa6-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/fa6-solid/key.svg" alt="Key icon">, or paste the SVG code inline to style it with CSS.

Browse all Font Awesome 6 Solid icons →