Skip to content

Lock

The lock icon represents a lock or security mechanism, often used to symbolize protection, safety, or encryption.

Exports at 24 × 24 px

Lock icon from Bootstrap Icons
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}>
    <path fill="currentColor" fillRule="evenodd" d="M8 0a4 4 0 0 1 4 4v2.05a2.5 2.5 0 0 1 2 2.45v5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 13.5v-5a2.5 2.5 0 0 1 2-2.45V4a4 4 0 0 1 4-4M4.5 7A1.5 1.5 0 0 0 3 8.5v5A1.5 1.5 0 0 0 4.5 15h7a1.5 1.5 0 0 0 1.5-1.5v-5A1.5 1.5 0 0 0 11.5 7zM8 1a3 3 0 0 0-3 3v2h6V4a3 3 0 0 0-3-3"/>
  </svg>
);

Bootstrap Icons

Icons that share its tags, in the same style.

  • File Lock icon from Bootstrap Icons
  • File Lock 2 icon from Bootstrap Icons
  • Shield Shaded icon from Bootstrap Icons
  • Shield Slash icon from Bootstrap Icons
  • Shield X icon from Bootstrap Icons
  • File Earmark Lock icon from Bootstrap Icons
  • File Earmark Lock 2 icon from Bootstrap Icons
  • Safe icon from Bootstrap Icons
  • Building Lock icon from Bootstrap Icons
  • Door Closed icon from Bootstrap Icons
  • House Lock icon from Bootstrap Icons
  • Person Lock icon from Bootstrap Icons
  • Unlock icon from Bootstrap Icons
  • Unlock 2 icon from Bootstrap Icons
  • Database Lock icon from Bootstrap Icons
  • Key icon from Bootstrap Icons
  • Life Preserver icon from Bootstrap Icons
  • Umbrella icon from Bootstrap Icons
  • 0 Circle icon from Bootstrap Icons
  • 0 Square icon from Bootstrap Icons
  • 123 icon from Bootstrap Icons
  • 1 Circle icon from Bootstrap Icons
  • 1 Square icon from Bootstrap Icons
  • 2 Circle icon from Bootstrap Icons

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

Get Pro

Pricing

Bootstrap Icons MCP, with Pro

Ask for Lock or any of 2,084 Bootstrap Icons 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