Lock 2 icon
icons8:lock-2
The Lock 2 icon (icons8:lock-2) is a free SVG icon from the Icons8 Windows 10 Icons set by Icons8. It is drawn on a 32 × 32 grid. Icons8 Windows 10 Icons 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
- Icons8 Windows 10 Icons
- Author
- Icons8
- License
- MIT
- Size
- 32 × 32
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path fill="currentColor" d="M16 3c-3.845 0-7 3.155-7 7v2.875A9.97 9.97 0 0 0 6 20c0 5.51 4.49 10 10 10s10-4.49 10-10a9.97 9.97 0 0 0-3-7.125V10c0-3.845-3.155-7-7-7m0 2c2.755 0 5 2.245 5 5v1.375C19.525 10.515 17.826 10 16 10s-3.525.516-5 1.375V10c0-2.755 2.245-5 5-5m0 7c4.43 0 8 3.57 8 8s-3.57 8-8 8s-8-3.57-8-8s3.57-8 8-8m0 6a2 2 0 0 0-2 2c0 .74.403 1.373 1 1.72V25h2v-3.28c.597-.347 1-.98 1-1.72a2 2 0 0 0-2-2"/></svg>How to use the Lock 2 icon
React
import { Icon } from "@iconify/react";
<Icon icon="icons8:lock-2" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="icons8:lock-2" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="icons8:lock-2" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[icons8--lock-2]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/icons8 -->
<div class="i-icons8:lock-2"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="icons8:lock-2"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/icons8/lock-2.svg" alt="Lock 2 icon" width="24" height="24">Related icons in Icons8 Windows 10 Icons
Lock 2 icon in other icon sets
Lock 2 icon FAQ
Is the Lock 2 icon free for commercial use?
Yes. Icons8 Windows 10 Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Lock 2 icon in React?
Install @iconify/react and render <Icon icon="icons8:lock-2" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Lock 2 icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/icons8/lock-2.svg" alt="Lock 2 icon">, or paste the SVG code inline to style it with CSS.