Skip to content

Lock

The lock icon represents security or protection, commonly used in user interfaces to denote a secure connection or protected content.

Exports at 18 × 24 px

Lock icon from Octicons
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="18" height="24" viewBox="0 0 12 16" {...props}>
    <path fillRule="evenodd" d="M4 13H3v-1h1v1zm8-6v7c0 .55-.45 1-1 1H1c-.55 0-1-.45-1-1V7c0-.55.45-1 1-1h1V4c0-2.2 1.8-4 4-4s4 1.8 4 4v2h1c.55 0 1 .45 1 1zM3.8 6h4.41V4c0-1.22-.98-2.2-2.2-2.2c-1.22 0-2.2.98-2.2 2.2v2H3.8zM11 7H2v7h9V7zM4 8H3v1h1V8zm0 2H3v1h1v-1z" fill="currentColor"/>
  </svg>
);

Octicons

Icons that share its tags, in the same style.

  • Shield X  16 icon from Octicons
  • Shield X  24 icon from Octicons
  • Unlock  16 icon from Octicons
  • Unlock  24 icon from Octicons
  • Eye Closed icon from Octicons
  • Eye Closed  16 icon from Octicons
  • Eye Closed  24 icon from Octicons
  • Hash  16 icon from Octicons
  • Hash  24 icon from Octicons
  • Key icon from Octicons
  • Key  16 icon from Octicons
  • Key  24 icon from Octicons
  • Key Asterisk  16 icon from Octicons
  • Key Asterisk  24 icon from Octicons
  • Lock  16 icon from Octicons
  • Lock  24 icon from Octicons
  • Accessibility  16 icon from Octicons
  • Accessibility  24 icon from Octicons
  • Accessibility Inset  16 icon from Octicons
  • Accessibility Inset  24 icon from Octicons
  • Arrow Switch  24 icon from Octicons
  • Arrow Up icon from Octicons
  • Arrow Up  16 icon from Octicons
  • Arrow Up  24 icon from Octicons

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

Get Pro

Pricing

Octicons MCP, with Pro

Ask for Lock or any of 901 Octicons 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