ICONYZ
English
Lock icon from Icalicons

Lock icon

il:lock

The Lock icon (il:lock) is a free SVG icon from the Icalicons set by Icalia Labs. It is drawn on a 560 × 840 grid. Icalicons 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
Icalicons
Author
Icalia Labs
License
MIT
Size
560 × 840
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="560" height="840" viewBox="0 0 560 840"><path fill="currentColor" d="M556 294v346q0 22-12 39t-32 26q-72 29-149 29H193q-77 0-149-29q-20-8-32-26T0 640V294h127V155q0-34 14-63t37-50t54-31t66-6q28 4 53 17t41 35t27 47t10 56v134zm-359 0h162V155q0-34-23-58t-58-24t-57 24t-24 58z"/></svg>

How to use the Lock icon

React

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

<Icon icon="il:lock" width="24" />

Vue

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

<template>
  <Icon icon="il:lock" width="24" />
</template>

Svelte

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

<Icon icon="il:lock" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="il:lock"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/il/lock.svg" alt="Lock icon" width="24" height="24">

Lock icon in other icon sets

Lock icon FAQ

Is the Lock icon free for commercial use?

Yes. Icalicons are released under the MIT 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="il: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/il/lock.svg" alt="Lock icon">, or paste the SVG code inline to style it with CSS.

Browse all Icalicons →