Lock icon
arcticons:lock
The Lock icon (arcticons:lock) is a free SVG icon from the Arcticons set by Donnnno. It is drawn on a 48 × 48 grid. Arcticons are released under the CC BY-SA 4.0 license, which allows use in personal and commercial projects as long as you credit the author and share changes to the icons under the same license. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- Arcticons
- Author
- Donnnno
- License
- CC-BY-SA-4.0
- Size
- 48 × 48
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M10.17 19.26h27.66a1.9 1.9 0 0 1 1.898 1.9V41.6a1.9 1.9 0 0 1-1.899 1.9H10.171a1.9 1.9 0 0 1-1.9-1.9V21.16a1.9 1.9 0 0 1 1.9-1.9m3.419 0V14.9a10.401 10.401 0 0 1 20.803 0v4.36"/><circle cx="23.991" cy="31.38" r="4.034" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg>How to use the Lock icon
React
import { Icon } from "@iconify/react";
<Icon icon="arcticons:lock" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="arcticons:lock" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="arcticons:lock" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[arcticons--lock]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/arcticons -->
<div class="i-arcticons:lock"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="arcticons:lock"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/arcticons/lock.svg" alt="Lock icon" width="24" height="24">Related icons in Arcticons
Lock icon in other icon sets
Lock icon FAQ
Is the Lock icon free for commercial use?
Yes. Arcticons are released under the CC BY-SA 4.0 license, which allows use in personal and commercial projects as long as you credit the author and share changes to the icons under the same license.
How do I use the Lock icon in React?
Install @iconify/react and render <Icon icon="arcticons: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/arcticons/lock.svg" alt="Lock icon">, or paste the SVG code inline to style it with CSS.