Lock icon
zmdi:lock
The Lock icon (zmdi:lock) is a free SVG icon from the Material Design Iconic Font set by MDI Community. It is drawn on a 344 × 456 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
- 344 × 456
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="344" height="456" viewBox="0 0 344 456"><path fill="currentColor" d="M299 155q17 0 29.5 12.5T341 197v214q0 17-12.5 29.5T299 453H43q-18 0-30.5-12.5T0 411V197q0-17 12.5-29.5T43 155h21v-43q0-44 31.5-75.5T171 5t75 31.5t31 75.5v43zM170.5 347q17.5 0 30-12.5T213 304t-12.5-30.5t-30-12.5t-30 12.5T128 304t12.5 30.5t30 12.5M237 155v-43q0-27-19.5-46.5t-47-19.5T124 65.5T105 112v43z"/></svg>How to use the Lock icon
React
import { Icon } from "@iconify/react";
<Icon icon="zmdi:lock" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="zmdi:lock" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="zmdi:lock" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[zmdi--lock]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/zmdi -->
<div class="i-zmdi:lock"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="zmdi:lock"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/zmdi/lock.svg" alt="Lock icon" width="24" height="24">Related icons in Material Design Iconic Font
Lock icon in other icon sets
Lock icon FAQ
Is the Lock 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 Lock icon in React?
Install @iconify/react and render <Icon icon="zmdi:lock" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Lock icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/zmdi/lock.svg" alt="Lock icon">, or paste the SVG code inline to style it with CSS.