ICONYZ
English
Lock icon from Elegant

Lock icon

et:lock

The Lock icon (et:lock) is a free SVG icon from the Elegant set by Kenny Sing. It is drawn on a 28 × 32 grid. Elegant icons are released under the GPL 3.0 license, which allows use in personal and commercial projects; modified versions of the icon files must keep the same license. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Elegant
Author
Kenny Sing
License
GPL-3.0-or-later
Size
28 × 32
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="28" height="32" viewBox="0 0 28 32"><path fill="currentColor" d="M14 0C8.486 0 4 4.486 4 10v3H2.5A2.503 2.503 0 0 0 0 15.5v14C0 30.878 1.122 32 2.5 32h23c1.378 0 2.5-1.122 2.5-2.5v-14c0-1.378-1.122-2.5-2.5-2.5H24v-3c0-5.514-4.486-10-10-10M5 10c0-4.962 4.038-9 9-9s9 4.038 9 9v3h-3v-3c0-3.309-2.691-6-6-6s-6 2.691-6 6v3H5zm14 3H9v-3c0-2.757 2.243-5 5-5s5 2.243 5 5zm-6.707 8l-5 5H2.707l5-5zm6 0l-5 5H8.707l5-5zm6 0l-5 5h-4.586l5-5zM27 21v5h-6.293l5-5zM1.293 26H1v-5h5.293zM25.5 31h-23c-.827 0-1.5-.673-1.5-1.5V27h26v2.5c0 .827-.673 1.5-1.5 1.5M27 15.5V20H1v-4.5c0-.827.673-1.5 1.5-1.5h23c.827 0 1.5.673 1.5 1.5"/></svg>

How to use the Lock icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

<img src="https://iconyz.com/api/public/svg/et/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. Elegant icons are released under the GPL 3.0 license, which allows use in personal and commercial projects; modified versions of the icon files must keep the same license.

How do I use the Lock icon in React?

Install @iconify/react and render <Icon icon="et: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/et/lock.svg" alt="Lock icon">, or paste the SVG code inline to style it with CSS.

Browse all Elegant icons →