Skip to content

Lock

The lock icon represents security, protection, and safety, often used to indicate a secure or private environment.

Exports at 24 × 24 px

Lock icon from Iconoir
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" fill="none" stroke="currentColor" {...props}>
    <path fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1.5" d="M16 12h1.4a.6.6 0 0 1 .6.6v6.8a.6.6 0 0 1-.6.6H6.6a.6.6 0 0 1-.6-.6v-6.8a.6.6 0 0 1 .6-.6H8m8 0V8c0-1.333-.8-4-4-4S8 6.667 8 8v4m8 0H8"/>
  </svg>
);

Iconoir

Icons that share its tags, in the same style.

  • Lock Square icon from Iconoir
  • Fingerprint Xmark Circle icon from Iconoir
  • Mobile Fingerprint icon from Iconoir
  • Health Shield icon from Iconoir
  • Key icon from Iconoir
  • Key Back icon from Iconoir
  • Lock Slash icon from Iconoir
  • Package Lock icon from Iconoir
  • Private Wifi icon from Iconoir
  • Secure Window icon from Iconoir
  • Shield icon from Iconoir
  • Shield Alert icon from Iconoir
  • Shield Alt icon from Iconoir
  • Shield Broken icon from Iconoir
  • Shield Loading icon from Iconoir
  • Shield Minus icon from Iconoir
  • Shield Plus In icon from Iconoir
  • Shield Question icon from Iconoir
  • Shield Search icon from Iconoir
  • Shield Upload icon from Iconoir
  • Shield Xmark icon from Iconoir
  • Book Lock icon from Iconoir
  • Card Shield icon from Iconoir
  • Home Secure icon from Iconoir

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

Get Pro

Pricing

Iconoir MCP, with Pro

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