A closed padlock, for secure, private, encrypted and locked records. On a 24×24 grid in stroke, duotone and fill, free under MIT.

Actionsv0.1.0Added Updated
Drawn byKeyline Icons
16
20
24 px
32
24px
2px
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  <path d="M7.5 10V6.5C7.5 4.01472 9.51472 2 12 2C14.4853 2 16.5 4.01472 16.5 6.5V10M4 13V19C4 20.6569 5.34315 22 7 22H17C18.6569 22 20 20.6569 20 19V13C20 11.3431 18.6569 10 17 10H7C5.34315 10 4 11.3431 4 13Z"/>
  <path d="M13.5 16C13.5 16.8284 12.8284 17.5 12 17.5C11.1716 17.5 10.5 16.8284 10.5 16C10.5 15.1716 11.1716 14.5 12 14.5C12.8284 14.5 13.5 15.1716 13.5 16Z" fill="currentColor" stroke="none"/>
</svg>

Also called

What someone searching for this drawing would have typed instead. These are the words the browser's search matches on.

  • secure
  • locked
  • private
  • encrypted
  • padlock
  • closed
  • password
  • protected
  • access

Related icons

The rest of the lock family first, then the Actions shelf.

FAQ

Answered from lock's own facts: its shelf, the weights it was drawn in, its siblings and its dates.

What is the lock icon for?
A closed padlock, for secure, private, encrypted and locked records. It is filed under Actions in Keyline Icons, drawn on the same 24×24 grid as the rest of the set. People look for it as secure, locked, private, encrypted, padlock, closed, password, protected and access, and the browser's search matches all of those.
What styles does the lock icon come in?
All three: stroke, duotone and fill. They are drawn from the same geometry, so swapping weight never moves anything.
Is there a square or circle version of lock?
No. lock is drawn as a bare glyph, and the set has no boxed variant of it.
What other icons go with lock?
alert, ban, check, circle-alert, circle-check and circle-minus, and 12 more, all shown below. They are the Actions shelf: nothing else in the set is named after lock.
How do I import lock in React?
<Lock /> is the component, and the weight decides the module: stroke from "@keyline-icons/react", duotone from "@keyline-icons/react/duotone" and fill from "@keyline-icons/react/fill". It takes the usual SVG props plus a size, so <Lock size={16} /> and className="size-4" both work, and there is no provider or theme to set up.
Where is the lock SVG?
icons/stroke/lock.svg, icons/duotone/lock.svg and icons/fill/lock.svg in the repository, normalised: no wrapper, no ids and no classes to strip out. The tabs above hand you the same drawing as SVG or JSX without the download, and neither needs an install.
When was lock added to the set?
Added 8 Aug 2026, and last redrawn 16 Aug 2026. It ships in v0.1.0, so an install at that version or later has it.

Questions about the set rather than about this drawing are answered where they belong. The home page covers what the set is, how the three styles differ, why some icons come boxed and where the Figma file is; installing the set in a shadcn/ui project covers the React package, the CLI and using an icon without React. The MIT licence is stated in the footer of every page.