The Standard Icon Set

Security

Lock icon

A closed padlock with a rounded shackle on a rounded body. Use for locked items, security, or privacy.

Also searched as secure, private, password.

SVG
PNG
Size
Weight

Sizes

  • 16
  • 18
  • 20
  • 22
  • 24
  • 28
  • 32
  • 40
  • 48

Use it

Format
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M5.167 13.333H10.834C11.57 13.333 12.167 12.666 12.167 11.843V7.745C12.167 7.334 11.868 7 11.5 7H4.5C4.132 7 3.834 7.334 3.834 7.745V11.843C3.834 12.666 4.43 13.333 5.167 13.333Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.182"/><path d="M5.167 6.833V6.728C5.167 5.688 5.104 4.527 5.831 3.783C6.246 3.358 6.917 3 8 3C9.084 3 9.755 3.358 10.169 3.783C10.896 4.527 10.834 5.688 10.834 6.728V6.833" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.182"/></svg>

Paste it into HTML. It draws in currentColor, so it takes the colour of the text around it.