Skip to content

Lock

The lock icon features a stylized representation of a lock, a symbol commonly used to indicate security or protection.

Exports at 24 × 24 px

Lock icon from BoxIcons Solid
Get Pro

Code

Lock in your framework

In any framework. Customize it above, and the code follows.

export const LockIcon = (props: React.SVGProps<SVGSVGElement>) => (
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" {...props}>
    <path fill="currentColor" d="M12 2C9.243 2 7 4.243 7 7v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7c0-2.757-2.243-5-5-5M9 7c0-1.654 1.346-3 3-3s3 1.346 3 3v3H9zm4 10.723V20h-2v-2.277a1.993 1.993 0 0 1 .567-3.677A2 2 0 0 1 14 16a1.99 1.99 0 0 1-1 1.723"/>
  </svg>
);

BoxIcons Solid

Icons that share its tags, in the same style.

  • Lock Alt icon from BoxIcons Solid
  • Lock Open icon from BoxIcons Solid
  • Lock Open Alt icon from BoxIcons Solid
  • Key icon from BoxIcons Solid
  • Log In icon from BoxIcons Solid
  • Log In Circle icon from BoxIcons Solid
  • Shield Minus icon from BoxIcons Solid
  • Shield Plus icon from BoxIcons Solid
  • Shield X icon from BoxIcons Solid
  • Log Out icon from BoxIcons Solid
  • Log Out Circle icon from BoxIcons Solid
  • Mask icon from BoxIcons Solid
  • Shield icon from BoxIcons Solid
  • Camera Home icon from BoxIcons Solid
  • Cctv icon from BoxIcons Solid
  • Hide icon from BoxIcons Solid
  • Shield Alt  2 icon from BoxIcons Solid
  • Universal Access icon from BoxIcons Solid
  • Badge icon from BoxIcons Solid
  • Bookmark Heart icon from BoxIcons Solid
  • Bookmark Minus icon from BoxIcons Solid
  • Bookmark Plus icon from BoxIcons Solid
  • Bookmark Star icon from BoxIcons Solid
  • Check Shield icon from BoxIcons Solid

Skip the copy and paste. With Pro, your AI agent finds and installs any BoxIcons Solid icon from a prompt.

Get Pro

Pricing

BoxIcons Solid MCP, with Pro

Ask for Lock or any of 665 BoxIcons Solid icons and your agent installs it. The MCP comes with every Pro plan, with 6,000+ blocks and 14 premium templates. The icons stay free.

4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.

  • Secure checkout via Stripe
  • Code lives in your repo
  • Keep what you've shipped if you cancel
  • License terms

FAQ

Frequently asked questions

What the Lock icon means and where it's used, then how to install, style, label and license it.

4.9 out of 5 from 150+ developers

Install Lock from a prompt

MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.

Get Pro