Skip to content

Lock

The lock icon represents security, privacy, and protection, typically depicted as a padlock or a locked mechanism.

Exports at 24 × 24 px

Lock icon from Codicons
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 16 16" {...props}>
    <g fill="currentColor"><path d="M8 9a1 1 0 1 1 0 2a1 1 0 0 1 0-2"/><path fillRule="evenodd" d="M8 1c1.654 0 3 1.346 3 3v2h1c1.103 0 2 .897 2 2v5c0 1.103-.897 2-2 2H4c-1.103 0-2-.897-2-2V8c0-1.103.897-2 2-2h1V4c0-1.654 1.346-3 3-3M4 7c-.551 0-1 .449-1 1v5c0 .551.449 1 1 1h8c.551 0 1-.449 1-1V8c0-.551-.449-1-1-1zm4-5c-1.103 0-2 .897-2 2v2h4V4c0-1.103-.897-2-2-2" clipRule="evenodd"/></g>
  </svg>
);

Codicons

Icons that share its tags, then the ones next to it in Codicons, in the same style.

  • Key icon from Codicons
  • Shield icon from Codicons
  • Unlock icon from Codicons
  • Lock Small icon from Codicons
  • Save icon from Codicons
  • Save All icon from Codicons
  • Verified icon from Codicons
  • Verified Filled icon from Codicons
  • Eye icon from Codicons
  • Eye Closed icon from Codicons
  • Symbol Key icon from Codicons
  • Unverified icon from Codicons
  • Workspace Trusted icon from Codicons
  • Lightbulb Empty icon from Codicons
  • Link icon from Codicons
  • Link External icon from Codicons
  • List Filter icon from Codicons
  • List Flat icon from Codicons
  • List Ordered icon from Codicons
  • List Selection icon from Codicons
  • List Tree icon from Codicons
  • List Unordered icon from Codicons
  • Live Share icon from Codicons
  • Loading icon from Codicons

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

Get Pro

Pricing

Codicons MCP, with Pro

Ask for Lock or any of 538 Codicons 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