Skip to content

Lock

The lock icon represents security, protection, and safety, often used to indicate that data is encrypted or that access is restricted.

Exports at 24 × 24 px

Lock icon from IconPark
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 48 48" fill="none" stroke="currentColor" {...props}>
    <g fill="none" strokeLinejoin="round" strokeWidth="4"><rect width="36" height="22" x="6" y="22" fill="#2F88FF" stroke="#000" rx="2"/><path stroke="#000" strokeLinecap="round" d="M14 22V14C14 8.47715 18.4772 4 24 4C29.5228 4 34 8.47715 34 14V22"/><path stroke="#fff" strokeLinecap="round" d="M24 30V36"/></g>
  </svg>
);

IconPark

Icons that share its tags, in the same style.

  • Lock One icon from IconPark
  • Data Lock icon from IconPark
  • Locking Computer icon from IconPark
  • Locking Laptop icon from IconPark
  • Locking Picture icon from IconPark
  • Folder Lock icon from IconPark
  • Folder Lock One icon from IconPark
  • Induction Lock icon from IconPark
  • File Lock icon from IconPark
  • File Lock One icon from IconPark
  • Folder Protection icon from IconPark
  • Folder Protection One icon from IconPark
  • Alignment Bottom Center icon from IconPark
  • Alignment Bottom Left icon from IconPark
  • Alignment Top Center icon from IconPark
  • Alignment Top Left icon from IconPark
  • Alignment Top Right icon from IconPark
  • Alignment Vertical Center icon from IconPark
  • Alignment Vertical Left icon from IconPark
  • Alignment Vertical Right icon from IconPark
  • Align Text Right icon from IconPark
  • Align Text Right One icon from IconPark
  • Align Text Top icon from IconPark
  • Align Text Top One icon from IconPark

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

Get Pro

Pricing

IconPark MCP, with Pro

Ask for Lock or any of 2,658 IconPark 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