Key icon
andrsrxn:key
The Key icon (andrsrxn:key) is a free SVG icon from the andrsrxn/icons set by Andrés Raxón. It is drawn on a 24 × 24 grid. andrsrxn/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
- andrsrxn/icons
- Author
- Andrés Raxón
- License
- MIT
- Size
- 24 × 24
- Category
- Security
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none"><path fill="currentColor" d="M14.9 14.7a6.48 6.48 0 1 0-5.75-3.46L2.5 17.5v4.83h4.62V19.5h3.06v-2.81l2.4-2.4q1.09.42 2.32.43" opacity=".2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9.04 11.17a7 7 0 0 1-.63-2.8a6.48 6.48 0 1 1 4.19 5.92"/><path fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M15.89 8.02a1 1 0 1 1-2 0a1 1 0 0 1 2 0"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m9.02 11.2l-5.94 5.93c-.29.3-.43.44-.5.62s-.08.39-.08.8v1.84c0 .94 0 1.42.29 1.7c.3.3.76.3 1.7.3h1.18c.4 0 .61 0 .78-.06a1 1 0 0 0 .6-.6c.06-.16.06-.37.06-.78c0-.4 0-.61.06-.78a1 1 0 0 1 .6-.6c.16-.06.37-.06.78-.06h.1c.52 0 .77 0 .97-.09a1 1 0 0 0 .5-.5c.08-.2.08-.45.08-.96v-.47c0-.41 0-.62.08-.8s.22-.33.5-.62l1.77-1.76"/></g></svg>How to use the Key icon
React
import { Icon } from "@iconify/react";
<Icon icon="andrsrxn:key" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="andrsrxn:key" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="andrsrxn:key" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[andrsrxn--key]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/andrsrxn -->
<div class="i-andrsrxn:key"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="andrsrxn:key"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/andrsrxn/key.svg" alt="Key icon" width="24" height="24">Related icons in andrsrxn/icons
Key icon in other icon sets
Key icon FAQ
Is the Key icon free for commercial use?
Yes. andrsrxn/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="andrsrxn: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/andrsrxn/key.svg" alt="Key icon">, or paste the SVG code inline to style it with CSS.