gentleface

Gentleface › Files & folders › file-lock

file-lock icon

File lock: locked file, encrypted file, password protected file, private file. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Code line-round

SVG
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M3.14 2.264C3.242 2.007 3.391 1.781 3.586 1.586C3.781 1.391 4.007 1.242 4.264 1.14C4.5 1.047 4.746 1 5 1L7.5 1C7.886 1 8.258 1.074 8.615 1.222C8.972 1.37 9.287 1.58 9.561 1.854L12.146 4.439C12.456 4.749 12.684 5.109 12.831 5.522C12.877 5.652 12.871 5.779 12.812 5.904C12.752 6.029 12.658 6.114 12.528 6.16C12.502 6.17 12.476 6.177 12.45 6.182C12.324 6.146 12.195 6.117 12.066 6.095C12.03 6.069 11.997 6.037 11.968 6L10 6C9.746 6 9.5 5.953 9.264 5.86C9.007 5.758 8.781 5.609 8.586 5.414C8.391 5.219 8.242 4.993 8.14 4.736C8.047 4.5 8 4.254 8 4L8 2.066C7.838 2.022 7.671 2 7.5 2L5 2C4.724 2 4.488 2.098 4.293 2.293C4.098 2.488 4 2.724 4 3L4 13C4 13.276 4.098 13.512 4.293 13.707C4.488 13.902 4.724 14 5 14L5.5 14C5.641 14 5.759 14.048 5.856 14.144C5.952 14.241 6 14.359 6 14.5C6 14.641 5.952 14.759 5.856 14.856C5.759 14.952 5.641 15 5.5 15L5 15C4.746 15 4.5 14.953 4.264 14.86C4.007 14.758 3.781 14.609 3.586 14.414C3.391 14.219 3.242 13.993 3.14 13.736C3.047 13.5 3 13.254 3 13L3 3C3 2.746 3.047 2.5 3.14 2.264ZM9 2.707L9 4C9 4.276 9.098 4.512 9.293 4.707C9.488 4.902 9.724 5 10 5L11.293 5L9 2.707ZM9.176 8.58C9.303 8.259 9.488 7.976 9.732 7.732C9.976 7.488 10.259 7.303 10.58 7.176C10.875 7.059 11.182 7 11.5 7C11.818 7 12.125 7.059 12.42 7.176C12.741 7.303 13.024 7.488 13.268 7.732C13.512 7.976 13.697 8.259 13.824 8.58C13.941 8.875 14 9.182 14 9.5L14 11C14.276 11 14.512 11.098 14.707 11.293C14.902 11.488 15 11.724 15 12L15 15C15 15.276 14.902 15.512 14.707 15.707C14.512 15.902 14.276 16 14 16L9 16C8.724 16 8.488 15.902 8.293 15.707C8.098 15.512 8 15.276 8 15L8 12C8 11.724 8.098 11.488 8.293 11.293C8.488 11.098 8.724 11 9 11L9 9.5C9 9.182 9.059 8.875 9.176 8.58ZM13 9.5C13 9.309 12.965 9.125 12.895 8.948C12.818 8.755 12.707 8.586 12.561 8.439C12.414 8.293 12.245 8.182 12.052 8.105C11.875 8.035 11.691 8 11.5 8C11.309 8 11.125 8.035 10.948 8.105C10.755 8.182 10.586 8.293 10.439 8.439C10.293 8.586 10.182 8.755 10.105 8.948C10.035 9.125 10 9.309 10 9.5L10 11L13 11L13 9.5Z"/></svg>
React
// Gentleface "file-lock" (line-round), MIT. https://gentleface.com/icons/file-lock
import type { SVGProps } from 'react';

export function FileLockIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M3.14 2.264C3.242 2.007 3.391 1.781 3.586 1.586C3.781 1.391 4.007 1.242 4.264 1.14C4.5 1.047 4.746 1 5 1L7.5 1C7.886 1 8.258 1.074 8.615 1.222C8.972 1.37 9.287 1.58 9.561 1.854L12.146 4.439C12.456 4.749 12.684 5.109 12.831 5.522C12.877 5.652 12.871 5.779 12.812 5.904C12.752 6.029 12.658 6.114 12.528 6.16C12.502 6.17 12.476 6.177 12.45 6.182C12.324 6.146 12.195 6.117 12.066 6.095C12.03 6.069 11.997 6.037 11.968 6L10 6C9.746 6 9.5 5.953 9.264 5.86C9.007 5.758 8.781 5.609 8.586 5.414C8.391 5.219 8.242 4.993 8.14 4.736C8.047 4.5 8 4.254 8 4L8 2.066C7.838 2.022 7.671 2 7.5 2L5 2C4.724 2 4.488 2.098 4.293 2.293C4.098 2.488 4 2.724 4 3L4 13C4 13.276 4.098 13.512 4.293 13.707C4.488 13.902 4.724 14 5 14L5.5 14C5.641 14 5.759 14.048 5.856 14.144C5.952 14.241 6 14.359 6 14.5C6 14.641 5.952 14.759 5.856 14.856C5.759 14.952 5.641 15 5.5 15L5 15C4.746 15 4.5 14.953 4.264 14.86C4.007 14.758 3.781 14.609 3.586 14.414C3.391 14.219 3.242 13.993 3.14 13.736C3.047 13.5 3 13.254 3 13L3 3C3 2.746 3.047 2.5 3.14 2.264ZM9 2.707L9 4C9 4.276 9.098 4.512 9.293 4.707C9.488 4.902 9.724 5 10 5L11.293 5L9 2.707ZM9.176 8.58C9.303 8.259 9.488 7.976 9.732 7.732C9.976 7.488 10.259 7.303 10.58 7.176C10.875 7.059 11.182 7 11.5 7C11.818 7 12.125 7.059 12.42 7.176C12.741 7.303 13.024 7.488 13.268 7.732C13.512 7.976 13.697 8.259 13.824 8.58C13.941 8.875 14 9.182 14 9.5L14 11C14.276 11 14.512 11.098 14.707 11.293C14.902 11.488 15 11.724 15 12L15 15C15 15.276 14.902 15.512 14.707 15.707C14.512 15.902 14.276 16 14 16L9 16C8.724 16 8.488 15.902 8.293 15.707C8.098 15.512 8 15.276 8 15L8 12C8 11.724 8.098 11.488 8.293 11.293C8.488 11.098 8.724 11 9 11L9 9.5C9 9.182 9.059 8.875 9.176 8.58ZM13 9.5C13 9.309 12.965 9.125 12.895 8.948C12.818 8.755 12.707 8.586 12.561 8.439C12.414 8.293 12.245 8.182 12.052 8.105C11.875 8.035 11.691 8 11.5 8C11.309 8 11.125 8.035 10.948 8.105C10.755 8.182 10.586 8.293 10.439 8.439C10.293 8.586 10.182 8.755 10.105 8.948C10.035 9.125 10 9.309 10 9.5L10 11L13 11L13 9.5Z" />
    </svg>
  );
}
Vue
Vue: see /icons/file-lock.md
Svelte
Svelte: see /icons/file-lock.md
HTML img
HTML img: see /icons/file-lock.md
CSS
CSS: see /icons/file-lock.md
Data URL
Data URL: see /icons/file-lock.md
Sprite
Sprite: see /icons/file-lock.md
SwiftUI
SwiftUI: see /icons/file-lock.md
Compose
Compose: see /icons/file-lock.md
Android XML
Android XML: see /icons/file-lock.md
Flutter
Flutter: see /icons/file-lock.md

Each SVG is 16 × 16 with fill="currentColor". Keep it at 16 px or an exact multiple (32, 48) on whole pixels: a fractional size or position blurs it. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.

Meaning

Use it for
locked file, encrypted file, password protected file, private file
Example
Password-protected file
Alternatives
Don’t confuse with
  • file-shield: the shield means protected or scanned, not locked
  • file-key: a key file holds a credential; it is not locked
Also fits
  • unlock file: locked or encrypted, the toggle pair
  • encrypted: an encrypted file
Not for
  • key file (use file-key): the lock marks a locked or encrypted file, not a key file
  • protected file (use file-shield): the lock means locked or encrypted; protected is the shield
Built from
file + lock
Tags
document, page, sheet, lock
Category
Files & folders
Component name
FileLockIcon
History
  • added

Family 42

More files & folders icons

For agents

Metadata: /icons/file-lock.json · Markdown: /icons/file-lock.md · SVG: https://gentleface.com/svg/{style}/16/file-lock.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/file-lock.png

Feedback