Skip to content
tablericons
Category
shape
Styles
Outline
Component
IconSquareKey

shape

Square Key icon

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

  • key
  • password
  • access
  • lock
  • square
  • security
  • protection
Size
Stroke
Color
Download SVG

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

Code

Copy it the way you use it

square-key.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="M12 10a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" />
  <path d="M12.5 11.5l-4 4l1.5 1.5" />
  <path d="M12 15l-1.5 -1.5" />
  <path d="M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14" />
</svg>

Use the Square Key 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 { IconSquareKey } from '@tabler/icons-react';

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

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

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

Related

Related icons

See all 486 shape icons