lock icon
lock from IconPark Outline by ByteDance · Outline · Edit · Apache-2.0 Free for personal and commercial use.
- Name
- lock
- Set
- IconPark Outline
- Style
- Outline
- 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 IconslockHumbleiconslockIconParklockIconPark SolidlockIconPark TwoTonelockIconoirlockLine AwesomelockLucide
More edit icons from IconPark Outline
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="currentColor" stroke-linejoin="round" stroke-width="4"><rect width="36" height="22" x="6" y="22" rx="2"/><path stroke-linecap="round" d="M14 22v-8c0-5.523 4.477-10 10-10s10 4.477 10 10v8m-10 8v6"/></g></svg>
React
import type { SVGProps } from "react";
export function IconParkOutlineLock(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" stroke="currentColor" strokeLinejoin="round" strokeWidth="4"><rect width="36" height="22" x="6" y="22" rx="2"/><path strokeLinecap="round" d="M14 22v-8c0-5.523 4.477-10 10-10s10 4.477 10 10v8m-10 8v6"/></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="currentColor" stroke-linejoin="round" stroke-width="4"><rect width="36" height="22" x="6" y="22" rx="2"/><path stroke-linecap="round" d="M14 22v-8c0-5.523 4.477-10 10-10s10 4.477 10 10v8m-10 8v6"/></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%3D%22currentColor%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%20rx%3D%222%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M14%2022v-8c0-5.523%204.477-10%2010-10s10%204.477%2010%2010v8m-10%208v6%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%3D%22currentColor%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%20rx%3D%222%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M14%2022v-8c0-5.523%204.477-10%2010-10s10%204.477%2010%2010v8m-10%208v6%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-outline/lock.svg?color=%231a73e8&size=48