Skip to content

Lock

The lock icon represents security and protection, symbolizing a secure or private state.

Exports at 24 × 24 px

Lock icon from Dashicons
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 20 20" {...props}>
    <path fill="currentColor" d="M15 9h-1V6c0-2.2-1.8-4-4-4S6 3.8 6 6v3H5c-.5 0-1 .5-1 1v7c0 .5.5 1 1 1h10c.5 0 1-.5 1-1v-7c0-.5-.5-1-1-1m-4 7H9l.4-2.2c-.5-.2-.9-.8-.9-1.3c0-.8.7-1.5 1.5-1.5s1.5.7 1.5 1.5c0 .6-.3 1.1-.9 1.3zm1-7H8V6c0-1.1.9-2 2-2s2 .9 2 2z"/>
  </svg>
);

Dashicons

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

  • Lock Alt icon from Dashicons
  • Lock Duplicate icon from Dashicons
  • Unlock icon from Dashicons
  • Privacy icon from Dashicons
  • Shield icon from Dashicons
  • Vault icon from Dashicons
  • Shield Alt icon from Dashicons
  • Backup icon from Dashicons
  • Plugins Checked icon from Dashicons
  • Insert icon from Dashicons
  • Insert After icon from Dashicons
  • Insert Before icon from Dashicons
  • Instagram icon from Dashicons
  • Laptop icon from Dashicons
  • Layout icon from Dashicons
  • Leftright icon from Dashicons
  • Lightbulb icon from Dashicons
  • Linkedin icon from Dashicons
  • List View icon from Dashicons
  • Location icon from Dashicons
  • Location Alt icon from Dashicons
  • Marker icon from Dashicons
  • Media Archive icon from Dashicons
  • Media Audio icon from Dashicons

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

Get Pro

Pricing

Dashicons MCP, with Pro

Ask for Lock or any of 345 Dashicons 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