Lock Square Icon
Free SVG icon from the Mage Icons collection. Download or copy for use in any project.
The Lock Square icon is commonly used in login screens, security indicators and password fields. Available as a free SVG - copy the code or download directly.
img tag
<img src="https://proicons.com/icon/310205.svg" alt="Lock Square icon" width="24" height="24">
React JSX
<img src="https://proicons.com/icon/310205.svg" alt="Lock Square icon" width={24} height={24} />
Vue template
<img src="https://proicons.com/icon/310205.svg" alt="Lock Square icon" :width="24" :height="24" />
CSS background
.icon-lock-square {
background-image: url('https://proicons.com/icon/310205.svg');
background-size: contain;
background-repeat: no-repeat;
width: 24px;
height: 24px;
display: inline-block;
}
SVG markup
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M15.25 2H8.75C6.9606 2.00265 5.24528 2.71468 3.97998 3.97998C2.71468 5.24528 2.00265 6.9606 2 8.75V15.25C2.00265 17.0394 2.71468 18.7547 3.97998 20.02C5.24528 21.2853 6.9606 21.9974 8.75 22H15.25C17.0394 21.9974 18.7547 21.2853 20.02 20.02C21.2853 18.7547 21.9974 17.0394 22 15.25V8.75C21.9974 6.9606 21.2853 5.24528 20.02 3.97998C18.7547 2.71468 17.0394 2.00265 15.25 2ZM16.51 15.44C16.4944 15.96 16.2768 16.4534 15.9034 16.8156C15.53 17.1778 15.0302 17.3802 14.51 17.38H9.51001C8.98981 17.3802 8.48997 17.1778 8.11658 16.8156C7.74318 16.4534 7.52562 15.96 7.51001 15.44V12C7.52347 11.5819 7.66769 11.1785 7.92242 10.8466C8.17715 10.5148 8.52955 10.2711 8.92999 10.15V9.71002C8.93075 9.30464 9.01151 8.90339 9.16766 8.5293C9.32382 8.1552 9.55235 7.81564 9.84003 7.53003C10.4288 6.97229 11.209 6.66144 12.02 6.66144C12.831 6.66144 13.6112 6.97229 14.2 7.53003C14.4886 7.81497 14.7176 8.15438 14.8738 8.52863C15.0301 8.90287 15.1103 9.30448 15.11 9.71002V10.15C15.5104 10.2711 15.8628 10.5148 16.1176 10.8466C16.3723 11.1785 16.5166 11.5819 16.53 12L16.51 15.44Z" fill="black"/> <path d="M13.5 9.71014V10.0601H10.5V9.71014C10.5003 9.41366 10.5884 9.12387 10.7532 8.87744C10.9181 8.63101 11.1522 8.43898 11.4261 8.32556C11.7001 8.21213 12.0015 8.1824 12.2923 8.24017C12.5831 8.29794 12.8502 8.44063 13.06 8.65014C13.2011 8.78794 13.3129 8.95288 13.3885 9.13507C13.4642 9.31725 13.5021 9.51289 13.5 9.71014Z" fill="black"/> </svg>
Lock Square in other icon packs
Copied!