Document Lock icon
Used to represent uneditable, locked, and protected file types and actions. The Document Lock 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 Document Lock 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 { DocumentLock24Regular, DocumentLock24Filled } from "@fluentui/react-icons";
export function Example() {
return <DocumentLock24Regular aria-label="Document Lock" />;
}Use it in HTML
Reference the SVG file directly:
<img src="https://fluenticons.co/icons/ic_fluent_document_lock_24_regular.svg" width="24" height="24" alt="Document Lock"> 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="M18.5 20C18.5 20.275 18.276 20.5 18 20.5H12V21.5C12 21.6712 11.9828 21.8384 11.95 22H18C19.104 22 20 21.104 20 20V9.828C20 9.298 19.789 8.789 19.414 8.414L13.585 2.586C13.2194 2.22035 12.6865 2 12.172 2H6C4.896 2 4 2.896 4 4V11.5505C4.40986 11.1323 4.92384 10.8164 5.5 10.6449V4C5.5 3.725 5.724 3.5 6 3.5H12V8C12 9.104 12.896 10 14 10H18.5V20ZM13.5 4.621L17.378 8.5H14C13.724 8.5 13.5 8.275 13.5 8V4.621ZM4 15H3.5C2.67157 15 2 15.6716 2 16.5V21.5C2 22.3284 2.67157 23 3.5 23H9.5C10.3284 23 11 22.3284 11 21.5V16.5C11 15.6716 10.3284 15 9.5 15H9V14C9 12.6193 7.88071 11.5 6.5 11.5C5.11929 11.5 4 12.6193 4 14V15ZM5.5 14C5.5 13.4477 5.94772 13 6.5 13C7.05228 13 7.5 13.4477 7.5 14V15H5.5V14ZM7.5 19C7.5 19.5523 7.05228 20 6.5 20C5.94772 20 5.5 19.5523 5.5 19C5.5 18.4477 5.94772 18 6.5 18C7.05228 18 7.5 18.4477 7.5 19Z" 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/document_lock_24_regular.svg";Details
| Name | Document Lock |
|---|---|
| Styles | Regular (outlined), Filled |
| Size | 24 × 24 px (scalable SVG) |
| Regular (outlined) file | ic_fluent_document_lock_24_regular.svg |
| Filled file | ic_fluent_document_lock_24_filled.svg |
| React components | DocumentLock24Regular, DocumentLock24Filled |
| License | MIT (© Microsoft Corporation) |