lock icon
lock from Material Symbols by Google · Regular · Actions · Apache-2.0 Free for personal and commercial use.
- Name
- lock
- Set
- Material Symbols
- Style
- Regular
- Category
- Actions
- Viewbox
- 24×24
- License
- Apache 2.0
- Aliases
- lock-rounded
3 other variants in Material Symbols
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 actions icons from Material Symbols
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="M6 22q-.825 0-1.412-.587T4 20V10q0-.825.588-1.412T6 8h1V6q0-2.075 1.463-3.537T12 1t3.538 1.463T17 6v2h1q.825 0 1.413.588T20 10v10q0 .825-.587 1.413T18 22zm7.413-5.587Q14 15.825 14 15t-.587-1.412T12 13t-1.412.588T10 15t.588 1.413T12 17t1.413-.587M9 8h6V6q0-1.25-.875-2.125T12 3t-2.125.875T9 6z"/></svg>
React
import type { SVGProps } from "react";
export function MaterialSymbolsLock(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="M6 22q-.825 0-1.412-.587T4 20V10q0-.825.588-1.412T6 8h1V6q0-2.075 1.463-3.537T12 1t3.538 1.463T17 6v2h1q.825 0 1.413.588T20 10v10q0 .825-.587 1.413T18 22zm7.413-5.587Q14 15.825 14 15t-.587-1.412T12 13t-1.412.588T10 15t.588 1.413T12 17t1.413-.587M9 8h6V6q0-1.25-.875-2.125T12 3t-2.125.875T9 6z"/></svg>
);
}
Vue
<template> <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M6 22q-.825 0-1.412-.587T4 20V10q0-.825.588-1.412T6 8h1V6q0-2.075 1.463-3.537T12 1t3.538 1.463T17 6v2h1q.825 0 1.413.588T20 10v10q0 .825-.587 1.413T18 22zm7.413-5.587Q14 15.825 14 15t-.587-1.412T12 13t-1.412.588T10 15t.588 1.413T12 17t1.413-.587M9 8h6V6q0-1.25-.875-2.125T12 3t-2.125.875T9 6z"/></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%22M6%2022q-.825%200-1.412-.587T4%2020V10q0-.825.588-1.412T6%208h1V6q0-2.075%201.463-3.537T12%201t3.538%201.463T17%206v2h1q.825%200%201.413.588T20%2010v10q0%20.825-.587%201.413T18%2022zm7.413-5.587Q14%2015.825%2014%2015t-.587-1.412T12%2013t-1.412.588T10%2015t.588%201.413T12%2017t1.413-.587M9%208h6V6q0-1.25-.875-2.125T12%203t-2.125.875T9%206z%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%22M6%2022q-.825%200-1.412-.587T4%2020V10q0-.825.588-1.412T6%208h1V6q0-2.075%201.463-3.537T12%201t3.538%201.463T17%206v2h1q.825%200%201.413.588T20%2010v10q0%20.825-.587%201.413T18%2022zm7.413-5.587Q14%2015.825%2014%2015t-.587-1.412T12%2013t-1.412.588T10%2015t.588%201.413T12%2017t1.413-.587M9%208h6V6q0-1.25-.875-2.125T12%203t-2.125.875T9%206z%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/material-symbols/lock.svg?color=%231a73e8&size=48