Skip to content

Lock

The lock icon represents security, protection, and authentication.

Exports at 24 × 24 px

Lock icon from BoxIcons
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 7v2H6c-1.103 0-2 .897-2 2v9c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2v-9c0-1.103-.897-2-2-2h-1V7c0-2.757-2.243-5-5-5M9 7c0-1.654 1.346-3 3-3s3 1.346 3 3v2H9zm9.002 13H13v-2.278c.595-.347 1-.985 1-1.722c0-1.103-.897-2-2-2s-2 .897-2 2c0 .736.405 1.375 1 1.722V20H6v-9h12z"/>
  </svg>
);

BoxIcons

Icons that share its tags, in the same style.

  • Lock Alt icon from BoxIcons
  • Lock Open icon from BoxIcons
  • Lock Open Alt icon from BoxIcons
  • Bxs Key icon from BoxIcons
  • Bxs Lock icon from BoxIcons
  • Bxs Lock Alt icon from BoxIcons
  • Shield icon from BoxIcons
  • Target Lock icon from BoxIcons
  • Bxs Lock Open icon from BoxIcons
  • Bxs Lock Open Alt icon from BoxIcons
  • Bxs Shield Alt  2 icon from BoxIcons
  • Key icon from BoxIcons
  • Shield Alt icon from BoxIcons
  • Shield Alt  2 icon from BoxIcons
  • Bxs Shield icon from BoxIcons
  • Bxs Shield X icon from BoxIcons
  • Shield Minus icon from BoxIcons
  • Shield Plus icon from BoxIcons
  • Shield Quarter icon from BoxIcons
  • Shield X icon from BoxIcons
  • Bxs Cctv icon from BoxIcons
  • Bxs Hide icon from BoxIcons
  • Bxs Check Shield icon from BoxIcons
  • Bxs Save icon from BoxIcons

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

Get Pro

Pricing

BoxIcons MCP, with Pro

Ask for Lock or any of 1,609 BoxIcons 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