ICONYZ
English
Key icon from Subway Icon Set

Key icon

subway:key

The Key icon (subway:key) is a free SVG icon from the Subway Icon Set set by Mariusz Ostrowski. It is drawn on a 512 × 512 grid. Subway Icon Set 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
Subway Icon Set
Author
Mariusz Ostrowski
License
CC-BY-4.0
Size
512 × 512
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="M373.3 0c-76.6 0-138.7 62.1-138.7 138.7c0 16 2.8 31.2 7.8 45.5L21.3 405.3L0 512h128v-42.7l21.3-21.3l21.3 21.3l42.7-42.7l-21.3-21.3l42.7-42.7L256 384l42.7-42.7l-21.4-21.3l50.5-50.5c14.3 5 29.6 7.8 45.5 7.8c76.6 0 138.7-62.1 138.7-138.7S449.9 0 373.3 0m32 149.3c-23.5 0-42.7-19.1-42.7-42.7S381.8 64 405.3 64S448 83.1 448 106.7s-19.1 42.6-42.7 42.6"/></svg>

How to use the Key icon

React

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

<Icon icon="subway:key" width="24" />

Vue

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

<template>
  <Icon icon="subway:key" width="24" />
</template>

Svelte

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

<Icon icon="subway:key" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="subway:key"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/subway/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. Subway Icon Set 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="subway: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/subway/key.svg" alt="Key icon">, or paste the SVG code inline to style it with CSS.

Browse all Subway Icon Set icons →