Gentleface › Security & privacy › lock
lock icon
lockLock: lock, locked, private, encrypted. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.
Code line-round
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M12.86 12.736C12.758 12.993 12.609 13.219 12.414 13.414C12.219 13.609 11.993 13.758 11.736 13.86C11.5 13.953 11.254 14 11 14L5 14C4.746 14 4.5 13.953 4.264 13.86C4.007 13.758 3.781 13.609 3.586 13.414C3.391 13.219 3.242 12.993 3.14 12.736C3.047 12.5 3 12.254 3 12L3 9C3 8.746 3.047 8.5 3.14 8.264C3.242 8.007 3.391 7.781 3.586 7.586C3.781 7.391 4.007 7.242 4.264 7.14C4.5 7.047 4.746 7 5 7L5 5C5 4.619 5.07 4.25 5.211 3.896C5.363 3.511 5.586 3.172 5.879 2.879C6.172 2.586 6.511 2.363 6.896 2.211C7.25 2.07 7.619 2 8 2C8.381 2 8.75 2.07 9.104 2.211C9.489 2.363 9.828 2.586 10.121 2.879C10.414 3.172 10.637 3.511 10.789 3.896C10.93 4.25 11 4.619 11 5L11 7C11.254 7 11.5 7.047 11.736 7.14C11.993 7.242 12.219 7.391 12.414 7.586C12.609 7.781 12.758 8.007 12.86 8.264C12.953 8.5 13 8.746 13 9L13 12C13 12.254 12.953 12.5 12.86 12.736ZM10 5C10 4.746 9.953 4.5 9.86 4.264C9.758 4.007 9.609 3.781 9.414 3.586C9.219 3.391 8.993 3.242 8.736 3.14C8.5 3.047 8.254 3 8 3C7.746 3 7.5 3.047 7.264 3.14C7.007 3.242 6.781 3.391 6.586 3.586C6.391 3.781 6.242 4.007 6.14 4.264C6.047 4.5 6 4.746 6 5L6 7L10 7L10 5ZM4.293 12.707C4.488 12.902 4.724 13 5 13L11 13C11.276 13 11.512 12.902 11.707 12.707C11.902 12.512 12 12.276 12 12L12 9C12 8.724 11.902 8.488 11.707 8.293C11.512 8.098 11.276 8 11 8L5 8C4.724 8 4.488 8.098 4.293 8.293C4.098 8.488 4 8.724 4 9L4 12C4 12.276 4.098 12.512 4.293 12.707ZM8.707 11.707C8.512 11.902 8.276 12 8 12C7.724 12 7.488 11.902 7.293 11.707C7.098 11.512 7 11.276 7 11L7 10C7 9.724 7.098 9.488 7.293 9.293C7.488 9.098 7.724 9 8 9C8.276 9 8.512 9.098 8.707 9.293C8.902 9.488 9 9.724 9 10L9 11C9 11.276 8.902 11.512 8.707 11.707Z"/></svg>
// Gentleface "lock" (line-round), MIT. https://gentleface.com/icons/lock
import type { SVGProps } from 'react';
export function LockIcon(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="M12.86 12.736C12.758 12.993 12.609 13.219 12.414 13.414C12.219 13.609 11.993 13.758 11.736 13.86C11.5 13.953 11.254 14 11 14L5 14C4.746 14 4.5 13.953 4.264 13.86C4.007 13.758 3.781 13.609 3.586 13.414C3.391 13.219 3.242 12.993 3.14 12.736C3.047 12.5 3 12.254 3 12L3 9C3 8.746 3.047 8.5 3.14 8.264C3.242 8.007 3.391 7.781 3.586 7.586C3.781 7.391 4.007 7.242 4.264 7.14C4.5 7.047 4.746 7 5 7L5 5C5 4.619 5.07 4.25 5.211 3.896C5.363 3.511 5.586 3.172 5.879 2.879C6.172 2.586 6.511 2.363 6.896 2.211C7.25 2.07 7.619 2 8 2C8.381 2 8.75 2.07 9.104 2.211C9.489 2.363 9.828 2.586 10.121 2.879C10.414 3.172 10.637 3.511 10.789 3.896C10.93 4.25 11 4.619 11 5L11 7C11.254 7 11.5 7.047 11.736 7.14C11.993 7.242 12.219 7.391 12.414 7.586C12.609 7.781 12.758 8.007 12.86 8.264C12.953 8.5 13 8.746 13 9L13 12C13 12.254 12.953 12.5 12.86 12.736ZM10 5C10 4.746 9.953 4.5 9.86 4.264C9.758 4.007 9.609 3.781 9.414 3.586C9.219 3.391 8.993 3.242 8.736 3.14C8.5 3.047 8.254 3 8 3C7.746 3 7.5 3.047 7.264 3.14C7.007 3.242 6.781 3.391 6.586 3.586C6.391 3.781 6.242 4.007 6.14 4.264C6.047 4.5 6 4.746 6 5L6 7L10 7L10 5ZM4.293 12.707C4.488 12.902 4.724 13 5 13L11 13C11.276 13 11.512 12.902 11.707 12.707C11.902 12.512 12 12.276 12 12L12 9C12 8.724 11.902 8.488 11.707 8.293C11.512 8.098 11.276 8 11 8L5 8C4.724 8 4.488 8.098 4.293 8.293C4.098 8.488 4 8.724 4 9L4 12C4 12.276 4.098 12.512 4.293 12.707ZM8.707 11.707C8.512 11.902 8.276 12 8 12C7.724 12 7.488 11.902 7.293 11.707C7.098 11.512 7 11.276 7 11L7 10C7 9.724 7.098 9.488 7.293 9.293C7.488 9.098 7.724 9 8 9C8.276 9 8.512 9.098 8.707 9.293C8.902 9.488 9 9.724 9 10L9 11C9 11.276 8.902 11.512 8.707 11.707Z" />
</svg>
);
}Vue: see /icons/lock.md
Svelte: see /icons/lock.md
HTML img: see /icons/lock.md
CSS: see /icons/lock.md
Data URL: see /icons/lock.md
Sprite: see /icons/lock.md
SwiftUI: see /icons/lock.md
Compose: see /icons/lock.md
Android XML: see /icons/lock.md
Flutter: see /icons/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
- lock, locked, private, encrypted, only me, encryption, encrypt, end to end encrypted, e2ee
- Alternatives
incognito: private browsing modeeye-off: hidden from viewshield-lock: privacy or data-protection featuresfile-lock: an encrypted file
- Also fits
- not allowed: the item is locked or needs a permission the user can get
- hide: private: only the owner can see it
- read only: locked by an owner or admin against all changes
- encrypted chat: encryption in general, E2EE (lock owns encrypted)
- vault: locked or private items in an app
- smart lock: the padlock: locked content, a file or an account
- Not for
- home security (use
home-shield): secure → shield, not lock - card disabled (use
credit-card-off): locked or private, not a frozen card - secure payment (use
credit-card-shield): secure → shield, not lock - incognito (use
incognito): lock means private or encrypted content - security (use
shield): the lock motif does not mean security - privacy (use
shield-lock): lock means private or encrypted content
- home security (use
- Tags
- padlock, security
- Category
- Security & privacy
- Component name
LockIcon- History
- added
- 20 px drawn, 24 px drawn
Family 4
More security & privacy icons
brick-wall cctv cctv-off fingerprint fingerprint-off incognito input-password key key-alert key-check key-clock key-code key-horizontal key-off key-plus key-question · all security & privacy icons
For agents
Metadata: /icons/lock.json · Markdown: /icons/lock.md · SVG: https://gentleface.com/svg/{style}/16/lock.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/lock.png