Lock icon
A closed padlock for private content, locked features, passwords and secure areas.
About the lock icon
Lock is one of 34 icons in Core, drawn next to chat and chat ai. The Line styles draw it with 3 shapes at a 1.5px stroke. The Solid styles fill it and cut one detail out of the fill, so the inside still reads at 16px. Rounded has soft corners and round line ends, Sharp has square ones, and all four line up on the same 24px grid, so switching style never moves anything.
It is one of the 200 free icons, so you can use it in personal and client work at no cost. Copy it above, download the file, or get it from the free React package.
- Name
- lock
- Category
- Core
- Styles
- Rounded and Sharp, Line and Solid
- React
- Lock, LockIcon
- License
- Free, commercial use
- Also called
- padlock, locked, secure, private, security
Use the lock icon
React
@neaticons/react exports it as Lock. It is in the free edition on npm, no key needed.
import { Lock } from "@neaticons/react"
import { Lock as LockSolid } from "@neaticons/react/rounded-solid"
import LockSharp from "@neaticons/react/sharp-stroke/lock"
<Lock size={24} />
<LockSolid color="#0A84FF" title="Lock" />SVG
The free zip has it as lock.svg in each style folder. Or take one file:
/icons/svg/rounded-stroke/lock.svg /icons/svg/rounded-solid/lock.svg /icons/svg/sharp-stroke/lock.svg /icons/svg/sharp-solid/lock.svg
Figma
It is in the free Community file, on the Icons page under Core. It is one component set named lock: drop it in, then switch Family (Rounded, Sharp) and Style (Stroke, Solid) in the right panel. More on Figma.
MCP for AI agents
Ask your agent in plain words. A search for “secure” returns lock first, then the agent pulls the code. The MCP comes with Personal and Team. Set it up.
search_icons({ query: "secure" })
get_icon({ name: "lock", style: "rounded-solid", format: "jsx" })