Lock Closed Key icon
Used in generic access, security, or safety scenarios. The Lock Closed Key icon is part of Microsoft's Fluent UI System Icons, available here in filled and regular (outlined) styles on a 24 px grid. Download it as SVG or PNG, or copy it as code — it's free to use under the MIT License.
Use the Lock Closed Key icon in React
Install Microsoft's @fluentui/react-icons package, then import the component. Icons inherit the current text color, and you can size them with CSS.
npm install @fluentui/react-icons
import { LockClosedKey24Regular, LockClosedKey24Filled } from "@fluentui/react-icons";
export function Example() {
return <LockClosedKey24Regular aria-label="Lock Closed Key" />;
}Use it in HTML
Reference the SVG file directly:
<img src="https://fluenticons.co/icons/ic_fluent_lock_closed_key_24_regular.svg" width="24" height="24" alt="Lock Closed Key"> Or paste the SVG markup inline. Setting fill="currentColor" makes the icon follow the text color of its parent:
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19.5 12C21.433 12 23 13.567 23 15.5C23 17.433 21.433 19 19.5 19H18V20C18 20.2761 17.7761 20.5 17.5 20.5H16.5V21.5C16.5 21.7761 16.2761 22 16 22H15V22.5C15 22.7761 14.7761 23 14.5 23H12.5C12.2239 23 12 22.7761 12 22.5V20.9141C12 20.6489 12.1055 20.3945 12.293 20.207L16.1133 16.3867C16.0393 16.1035 16 15.8064 16 15.5C16 13.567 17.567 12 19.5 12ZM12 1C14.7614 1 17 3.23858 17 6V8.00977C18.6047 8.13185 19.8823 9.41904 19.9912 11.0273C19.8299 11.0098 19.666 11 19.5 11C19.1538 11 18.8169 11.0402 18.4932 11.1143C18.4238 10.2113 17.6708 9.5 16.75 9.5H7.25C6.2835 9.5 5.5 10.2835 5.5 11.25V18.75C5.5 19.7165 6.2835 20.5 7.25 20.5H11.0449C11.0163 20.6352 11 20.7737 11 20.9141V22H7.25C5.45507 22 4 20.5449 4 18.75V11.25C4 9.5392 5.3219 8.13743 7 8.00977V6C7 3.23858 9.23858 1 12 1ZM12 13.75C12.6904 13.75 13.25 14.3096 13.25 15C13.25 15.6904 12.6904 16.25 12 16.25C11.3096 16.25 10.75 15.6904 10.75 15C10.75 14.3096 11.3096 13.75 12 13.75ZM20 14C19.4477 14 19 14.4477 19 15C19 15.5523 19.4477 16 20 16C20.5523 16 21 15.5523 21 15C21 14.4477 20.5523 14 20 14ZM12 2.5C10.067 2.5 8.5 4.067 8.5 6V8H15.5V6C15.5 4.067 13.933 2.5 12 2.5Z" fill="currentColor"/></svg>Use it from the SVG package
Microsoft's @fluentui/svg-icons package contains the raw SVG files, which works well with bundlers that import SVGs:
npm install @fluentui/svg-icons
import icon from "@fluentui/svg-icons/icons/lock_closed_key_24_regular.svg";Details
| Name | Lock Closed Key |
|---|---|
| Styles | Regular (outlined), Filled |
| Size | 24 × 24 px (scalable SVG) |
| Regular (outlined) file | ic_fluent_lock_closed_key_24_regular.svg |
| Filled file | ic_fluent_lock_closed_key_24_filled.svg |
| React components | LockClosedKey24Regular, LockClosedKey24Filled |
| License | MIT (© Microsoft Corporation) |