lock · IconaMoon
Free SVG lock icon from IconaMoon. Rendered at 24×24 in the stroke style and licensed under CC-BY-4.0. Copy directly as SVG, React (JSX), or Vue. Download as SVG or PNG. No login, no attribution required for CC-BY-4.0 licensed icons.
Tags
- lock
Code
HTML / SVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><g fill="none" stroke="currentColor"><path stroke-linecap="round" stroke-width="2" d="M8 10V7a4 4 0 1 1 8 0v3"/><path stroke-linejoin="round" stroke-width="2" d="M5 10h14v9a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2z"/><path stroke-linejoin="round" stroke-width="3" d="M14.5 15.5h.01v.01h-.01z"/></g></svg>
React
// Run: npx sant-icons get iconamoon-lock --format react
export function IconamoonLock(props) {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" {...props}><g fill="none" stroke="currentColor"><path stroke-linecap="round" stroke-width="2" d="M8 10V7a4 4 0 1 1 8 0v3"/><path stroke-linejoin="round" stroke-width="2" d="M5 10h14v9a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2z"/><path stroke-linejoin="round" stroke-width="3" d="M14.5 15.5h.01v.01h-.01z"/></g></svg>
);
}CLI
npx sant-icons get iconamoon-lock
Properties
lock in other libraries
Related from IconaMoon
The lock icon ships with IconaMoon, an open-source icon set licensed under CC-BY-4.0. Search for it as "iconamoon lock", "lock svg", or any of its tagged terms (lock). The SVG is normalised to a 24×24 viewBox so you can drop it into any UI framework alongside the other icons here without scaling concerns.
Need this icon in your codebase fast? Install the MCP server for Claude Code (or any MCP-aware AI tool) and ask the model to fetch iconamoon-lock directly into your project. No browser context-switch.