lock icon
lock from Unicons Monochrome by Iconscout · Monochrome · Security · Apache-2.0 Free for personal and commercial use.
- Name
- lock
- Set
- Unicons Monochrome
- Style
- Monochrome
- Category
- Security
- Viewbox
- 24×24
- License
- Apache 2.0
The same icon in other sets
lock-filledAnt Design IconslockBootstrap IconslockBoxIcons v2lockBoxIcons v2 SolidlockCatppuccin IconslockCodiconslockElement Pluslock-fillEva IconslockFramework7 IconslockFont Awesome 6 SolidlockFont Awesome SolidlockFeather Iconslock-outlineFlowbite Iconslock-16-filledFluent UI System IconslockFirefox OS Emojilockcss.gglockHuge IconslockHumbleiconslockIconParklockIconPark OutlinelockIconPark SolidlockIconPark TwoTonelockIconoirlockLine Awesome
More security icons from Unicons Monochrome
Use the lock icon
SVG
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M16 11H8a1 1 0 0 1-1-1V7a5 5 0 0 1 10 0v3a1 1 0 0 1-1 1M9 9h6V7a3 3 0 0 0-6 0Z" opacity=".5"/><rect width="16" height="13" x="4" y="9" fill="currentColor" rx="3"/></svg>
React
import type { SVGProps } from "react";
export function UimLock(props: SVGProps<SVGSVGElement>) {
return (
<svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M16 11H8a1 1 0 0 1-1-1V7a5 5 0 0 1 10 0v3a1 1 0 0 1-1 1M9 9h6V7a3 3 0 0 0-6 0Z" opacity=".5"/><rect width="16" height="13" x="4" y="9" fill="currentColor" rx="3"/></svg>
);
}
Vue
<template> <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M16 11H8a1 1 0 0 1-1-1V7a5 5 0 0 1 10 0v3a1 1 0 0 1-1 1M9 9h6V7a3 3 0 0 0-6 0Z" opacity=".5"/><rect width="16" height="13" x="4" y="9" fill="currentColor" rx="3"/></svg> </template>
CSS
.icon-lock {
width: 24px;
height: 24px;
background-color: currentColor;
-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M16%2011H8a1%201%200%200%201-1-1V7a5%205%200%200%201%2010%200v3a1%201%200%200%201-1%201M9%209h6V7a3%203%200%200%200-6%200Z%22%20opacity%3D%22.5%22%2F%3E%3Crect%20width%3D%2216%22%20height%3D%2213%22%20x%3D%224%22%20y%3D%229%22%20fill%3D%22currentColor%22%20rx%3D%223%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M16%2011H8a1%201%200%200%201-1-1V7a5%205%200%200%201%2010%200v3a1%201%200%200%201-1%201M9%209h6V7a3%203%200%200%200-6%200Z%22%20opacity%3D%22.5%22%2F%3E%3Crect%20width%3D%2216%22%20height%3D%2213%22%20x%3D%224%22%20y%3D%229%22%20fill%3D%22currentColor%22%20rx%3D%223%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/uim/lock.svg?color=%231a73e8&size=48