Skip to content
tablericons
Category
security
Styles
Outline
Component
IconLockCode

security

Lock Code icon

Download the Lock Code icon as free SVG or PNG. Customize its outline stroke. Copy React, Vue or Svelte code.

  • lock
  • padlock
  • locked
  • security
  • secure
  • password
  • private
  • protected
  • pin-code
  • passcode
Size
Stroke
Color
Download SVG

Press C to copy SVG, J for JSX, D to download.

Code

Copy it the way you use it

lock-code.svg
<svg
  xmlns="http://www.w3.org/2000/svg"
  width="24"
  height="24"
  viewBox="0 0 24 24"
  fill="none"
  stroke="currentColor"
  stroke-width="2"
  stroke-linecap="round"
  stroke-linejoin="round"
 
>
  <path d="M11.5 21h-4.5a2 2 0 0 1 -2 -2v-6a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2" />
  <path d="M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0" />
  <path d="M8 11v-4a4 4 0 1 1 8 0v4" />
  <path d="M20 21l2 -2l-2 -2" />
  <path d="M17 17l-2 2l2 2" />
</svg>

Use the Lock Code icon

For a decorative icon beside text, add aria-hidden="true" to the SVG. For an icon-only control, put its accessible name on the button or link.

React example
import { IconLockCode } from '@tabler/icons-react';

<IconLockCode size={24} stroke={2} />
Read the React guide
Vue example
import { IconLockCode } from '@tabler/icons-vue';

<IconLockCode :size="24" :stroke="2" />
Read the Vue guide
Svelte 5 example
import { IconLockCode } from '@tabler/icons-svelte-runes';

<IconLockCode size={24} stroke={2} />
Read the Svelte guide

Related

Related icons

See all 78 security icons