Lock 2 icon
reicon:lock-2
The Lock 2 icon (reicon:lock-2) is a free SVG icon from the Reicon set. It is drawn on a 24 × 24 grid. Reicon 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.
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M12 1.25A5.25 5.25 0 0 0 6.75 6.5v1.795c-.539.045-1.013.14-1.452.364a3.75 3.75 0 0 0-1.64 1.638c-.226.445-.32.925-.365 1.471c-.043.531-.043 1.187-.043 2v3.464c0 .813 0 1.469.043 2c.045.546.14 1.026.366 1.47a3.75 3.75 0 0 0 1.639 1.64c.444.226.924.32 1.47.365c.531.043 1.187.043 2 .043h6.464c.813 0 1.469 0 2-.043c.546-.045 1.026-.14 1.47-.366a3.75 3.75 0 0 0 1.64-1.639c.226-.444.32-.924.365-1.47c.043-.531.043-1.187.043-2v-3.464c0-.813 0-1.469-.043-2c-.045-.546-.14-1.026-.366-1.47a3.75 3.75 0 0 0-1.639-1.64c-.439-.223-.913-.318-1.452-.363V6.5c0-2.9-2.35-5.25-5.25-5.25m3.75 7V6.5a3.75 3.75 0 1 0-7.5 0v1.75zM5.979 9.995c.197-.1.458-.17.912-.207c.462-.037 1.057-.038 1.909-.038h6.4c.852 0 1.447 0 1.91.038c.453.037.714.107.912.207c.423.216.767.56.983.984c.1.197.17.458.207.912c.037.462.038 1.056.038 1.909v3.4c0 .852 0 1.447-.038 1.91c-.038.453-.107.714-.207.912c-.216.423-.56.767-.983.983c-.198.1-.459.17-.913.207c-.462.037-1.057.038-1.909.038H8.8c-.852 0-1.447 0-1.91-.038c-.453-.038-.714-.107-.911-.207a2.25 2.25 0 0 1-.984-.983c-.1-.198-.17-.459-.207-.913c-.037-.462-.038-1.057-.038-1.909v-3.4c0-.853 0-1.447.038-1.91c.037-.453.107-.714.207-.912a2.25 2.25 0 0 1 .984-.983" clip-rule="evenodd"/></svg>How to use the Lock 2 icon
React
import { Icon } from "@iconify/react";
<Icon icon="reicon:lock-2" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="reicon:lock-2" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="reicon:lock-2" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[reicon--lock-2]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/reicon -->
<div class="i-reicon:lock-2"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="reicon:lock-2"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/reicon/lock-2.svg" alt="Lock 2 icon" width="24" height="24">Related icons in Reicon
lock
lock-2-filled
lock-circle
lock-circle-filled
lock-duotone
lock-filled
lock-keyhole
lock-keyhole-duotone
lock-keyhole-filled
lock-keyhole-open
lock-keyhole-open-duotone
lock-keyhole-open-filled
lock-keyhole-open2
lock-keyhole-open2-duotone
lock-keyhole-open2-filled
lock-keyhole2
lock-keyhole2-duotone
lock-keyhole2-filled
lock-open
lock-open-duotone
lock-open-filled
lock-open2
lock-open2-filled
lock-password
Lock 2 icon in other icon sets
Lock 2 icon FAQ
Is the Lock 2 icon free for commercial use?
Yes. Reicon 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="reicon: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/reicon/lock-2.svg" alt="Lock 2 icon">, or paste the SVG code inline to style it with CSS.