Lock Closed
The lock-closed icon represents a locked or secured state, often used to indicate that content or a system is protected by a password or authentication mechanism.
Exports at 24 × 24 px
Code
Lock Closed in your framework
In any framework. Customize it above, and the code follows.
export const LockClosedIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" {...props}>
<path fill="currentColor" d="M10.25 14.75a1.75 1.75 0 1 1 2.5 1.582V17a.75.75 0 0 1-1.5 0v-.668a1.75 1.75 0 0 1-1-1.582"/><path fill="currentColor" d="M7.25 7a4.75 4.75 0 0 1 9.5 0v2.356c.34.058.654.15.953.303a3.75 3.75 0 0 1 1.638 1.638c.227.445.321.925.366 1.471c.043.531.043 1.187.043 2v1.464c0 .813 0 1.469-.043 2c-.045.546-.14 1.026-.366 1.47a3.75 3.75 0 0 1-1.639 1.64c-.444.226-.924.32-1.47.365c-.531.043-1.187.043-2 .043H9.768c-.813 0-1.469 0-2-.043c-.546-.045-1.026-.14-1.47-.366a3.75 3.75 0 0 1-1.64-1.639c-.226-.444-.32-.924-.365-1.47c-.043-.531-.043-1.187-.043-2v-1.464c0-.813 0-1.469.043-2c.045-.546.14-1.026.366-1.47a3.75 3.75 0 0 1 1.639-1.64a3.3 3.3 0 0 1 .952-.302zm8 0a3.25 3.25 0 0 0-6.5 0v2.254q.463-.005 1.018-.004h4.464q.556-.001 1.018.004zm-7.36 3.788c-.453.037-.714.107-.911.207a2.25 2.25 0 0 0-.984.984c-.1.197-.17.458-.207.912c-.037.462-.038 1.056-.038 1.909v1.4c0 .852 0 1.447.038 1.91c.037.453.107.714.207.912c.216.423.56.767.984.983c.197.1.458.17.912.207c.462.037 1.057.038 1.909.038h4.4c.853 0 1.447 0 1.91-.038c.453-.038.714-.107.912-.207c.423-.216.767-.56.983-.983c.1-.198.17-.459.207-.913c.037-.462.038-1.057.038-1.909v-1.4c0-.853 0-1.447-.038-1.91c-.038-.453-.107-.714-.207-.912a2.25 2.25 0 0 0-.983-.983c-.198-.1-.459-.17-.913-.207c-.462-.037-1.057-.038-1.909-.038H9.8c-.852 0-1.447 0-1.91.038"/>
</svg>
);Other libraries
Lock Closed in 8 more libraries
Each library draws it its own way. Open one to compare.
Stash Icons
More like it
Icons that share its tags, in the same style.
Search Stash Icons
Skip the copy and paste. With Pro, your AI agent finds and installs any Stash Icons icon from a prompt.
Get ProTags
Browse by tag
Lock Closed is tagged UI, security, safety and 3 more. Related tags follow; each opens its icons from every library.
Pricing
Stash Icons MCP, with Pro
Ask for Lock Closed or any of 982 Stash 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 Closed icon means and where it's used, then how to install, style, label and license it.
The lock-closed icon represents a locked or secured state, often used to indicate that content or a system is protected by a password or authentication mechanism. It symbolizes security and access control. This icon is part of the Stash Icons library, categorized under UI 24px.
In software applications, the lock-closed icon is frequently used in login screens, password managers, and secure data storage systems. It helps users understand that a secure connection or authentication is required to access certain features or content.
From a UX perspective, the lock-closed icon effectively communicates the importance of security and access control, reassuring users that their data is protected. This clarity enhances user experience by providing users with confidence in the system's security measures.
Lock Closed is one of 982 icons in Stash Icons, made by Pingback LLC and released under MIT. It is drawn on a 24 × 24 grid.
Sign in (it's free), then open Get icon, Install with shadcn CLI, and pick your package manager to copy the command. It adds LockClosedIcon to components/icons/stash-lock-closed.tsx: one file, a size prop (24 by default) and every SVG prop, with no icon package.
Copy it as React (from Get icon, or the Code section): a typed LockClosedIcon component you paste into your project, with no package to install. Only the icons you import reach your bundle. It works in Next.js and any React app.
Open Get icon, then Copy as code, and pick Vue, Svelte, Angular, Solid or Preact; the Code section shows each one too. Every version is one self-contained component with the SVG inside, and SVG and data URL copies are there for plain HTML and CSS.
With Pro, the shadcn.io MCP server lets Claude Code, Cursor or any MCP client find the Lock Closed icon, or any of 982 Stash Icons icons, and install it from a prompt.
It's drawn in currentColor, so it takes the text color wherever you use it: a class like text-primary recolors it. To bake a color in, set one in Customize before you copy.
Set width and height on the component, or a class like size-6. It's drawn on a 24 × 24 grid, so it stays sharp at any size. Customize also sets the size it exports at, its padding and rotation.
Yes. It follows the text color, so with text-foreground (or any theme token) it changes with your light and dark themes. The icon is a vector, so it needs no separate dark asset.
Next to a visible label it's decoration: add aria-hidden="true" so screen readers skip it. Standing alone, as in an icon button, give the button a name instead, like aria-label="Lock Closed", so screen readers say what it does.
Yes. LockClosedIcon passes every SVG prop to the svg element, so <LockClosedIcon aria-hidden="true" /> works, and so do role="img" with aria-label, or a title child, when it carries meaning on its own.
Yes. Open Get icon, then Download file: SVG for code or design tools like Figma; PNG, WebP or JPEG at 512px; or an ICO favicon with 16, 32 and 48px inside. Each one uses what you set in Customize.
Yes. MIT allows commercial use; keep the license notice when you ship the icons' source files. The full terms are in the license, linked on this page.
No visible credit is required: MIT only asks that you keep the license notice if you ship the icons' source files. Icons installed with the shadcn CLI already start with a comment naming Stash Icons, Pingback LLC and the license.
Yes. Copying and downloading it is free, and the shadcn CLI install only needs a free account.
8 other libraries draw an icon called Lock Closed. The Other libraries section on this page shows each one, so you can compare them and open the one that fits your style.
Its tags are UI, security, safety, protection, authentication and authorization. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for Lock Closed in another set.
Stash Icons draws many icons in several styles: Duotone, Light and Solid next to the default. Open the library and pick a style above the grid to see Lock Closed's siblings in it.
4.9 out of 5 from 150+ developers
Install Lock Closed from a prompt
MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.
Get Pro