ICONYZ
English
Key icon from Material Design Iconic Font

Key icon

zmdi:key

The Key icon (zmdi:key) is a free SVG icon from the Material Design Iconic Font set by MDI Community. It is drawn on a 472 × 384 grid. Material Design Iconic Font icons are released under the Open Font 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
Material Design Iconic Font
Author
MDI Community
License
OFL-1.1
Size
472 × 384
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="472" height="384" viewBox="0 0 472 384"><path fill="currentColor" d="M249 149h220v86h-42v85h-86v-85h-92q-14 37-47 61t-74 24q-53 0-90.5-37.5T0 192t37.5-90.5T128 64q41 0 74 24t47 61m-121 86q18 0 30.5-12.5T171 192t-12.5-30.5T128 149t-30.5 12.5T85 192t12.5 30.5T128 235"/></svg>

How to use the Key icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

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

Related icons in Material Design Iconic Font

Key icon in other icon sets

Key icon FAQ

Is the Key icon free for commercial use?

Yes. Material Design Iconic Font icons are released under the Open Font 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="zmdi: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/zmdi/key.svg" alt="Key icon">, or paste the SVG code inline to style it with CSS.

Browse all Material Design Iconic Font icons →