lock icon
lock from IconPark by ByteDance · Color · Edit · Apache-2.0 Free for personal and commercial use.
- Name
- lock
- Set
- IconPark
- Style
- Color
- Category
- Edit
- Viewbox
- 48×48
- 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 IconslockHumbleiconslockIconPark OutlinelockIconPark SolidlockIconPark TwoTonelockIconoirlockLine AwesomelockLucide
More edit icons from IconPark
Use the lock icon
SVG
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 48 48"><g fill="none" stroke-linejoin="round" stroke-width="4"><rect width="36" height="22" x="6" y="22" fill="#2F88FF" stroke="#000" rx="2"/><path stroke="#000" stroke-linecap="round" d="M14 22V14C14 8.47715 18.4772 4 24 4C29.5228 4 34 8.47715 34 14V22"/><path stroke="#fff" stroke-linecap="round" d="M24 30V36"/></g></svg>
React
import type { SVGProps } from "react";
export function IconParkLock(props: SVGProps<SVGSVGElement>) {
return (
<svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 48 48"><g fill="none" strokeLinejoin="round" strokeWidth="4"><rect width="36" height="22" x="6" y="22" fill="#2F88FF" stroke="#000" rx="2"/><path stroke="#000" strokeLinecap="round" d="M14 22V14C14 8.47715 18.4772 4 24 4C29.5228 4 34 8.47715 34 14V22"/><path stroke="#fff" strokeLinecap="round" d="M24 30V36"/></g></svg>
);
}
Vue
<template> <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 48 48"><g fill="none" stroke-linejoin="round" stroke-width="4"><rect width="36" height="22" x="6" y="22" fill="#2F88FF" stroke="#000" rx="2"/><path stroke="#000" stroke-linecap="round" d="M14 22V14C14 8.47715 18.4772 4 24 4C29.5228 4 34 8.47715 34 14V22"/><path stroke="#fff" stroke-linecap="round" d="M24 30V36"/></g></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%2048%2048%22%3E%3Cg%20fill%3D%22none%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%3E%3Crect%20width%3D%2236%22%20height%3D%2222%22%20x%3D%226%22%20y%3D%2222%22%20fill%3D%22%232F88FF%22%20stroke%3D%22%23000%22%20rx%3D%222%22%2F%3E%3Cpath%20stroke%3D%22%23000%22%20stroke-linecap%3D%22round%22%20d%3D%22M14%2022V14C14%208.47715%2018.4772%204%2024%204C29.5228%204%2034%208.47715%2034%2014V22%22%2F%3E%3Cpath%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20d%3D%22M24%2030V36%22%2F%3E%3C%2Fg%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%2048%2048%22%3E%3Cg%20fill%3D%22none%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%3E%3Crect%20width%3D%2236%22%20height%3D%2222%22%20x%3D%226%22%20y%3D%2222%22%20fill%3D%22%232F88FF%22%20stroke%3D%22%23000%22%20rx%3D%222%22%2F%3E%3Cpath%20stroke%3D%22%23000%22%20stroke-linecap%3D%22round%22%20d%3D%22M14%2022V14C14%208.47715%2018.4772%204%2024%204C29.5228%204%2034%208.47715%2034%2014V22%22%2F%3E%3Cpath%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20d%3D%22M24%2030V36%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
}Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/icon-park/lock.svg?color=%231a73e8&size=48