ICONYZ
English
Unlock icon from Codicons

Unlock icon

codicon:unlock

The Unlock icon (codicon:unlock) is a free SVG icon from the Codicons set by Microsoft Corporation. It is drawn on a 24 × 24 grid. Codicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Codicons
Author
Microsoft Corporation
License
CC-BY-4.0
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="currentColor"><path d="M8 9a1 1 0 1 1 0 2a1 1 0 0 1 0-2"/><path fill-rule="evenodd" d="M13 1c1.654 0 3 1.346 3 3v.5a.5.5 0 0 1-1 0V4c0-1.103-.897-2-2-2s-2 .897-2 2v2h1c1.103 0 2 .897 2 2v5c0 1.103-.897 2-2 2H4c-1.103 0-2-.897-2-2V8c0-1.103.897-2 2-2h6V4c0-1.654 1.346-3 3-3M4 7c-.551 0-1 .449-1 1v5c0 .551.449 1 1 1h8c.551 0 1-.449 1-1V8c0-.551-.449-1-1-1z" clip-rule="evenodd"/></g></svg>

How to use the Unlock icon

React

import { Icon } from "@iconify/react";

<Icon icon="codicon:unlock" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="codicon:unlock" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="codicon:unlock" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[codicon--unlock]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/codicon -->
<div class="i-codicon:unlock"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="codicon:unlock"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/codicon/unlock.svg" alt="Unlock icon" width="24" height="24">

Unlock icon in other icon sets

Unlock icon FAQ

Is the Unlock icon free for commercial use?

Yes. Codicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.

How do I use the Unlock icon in React?

Install @iconify/react and render <Icon icon="codicon:unlock" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Unlock icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/codicon/unlock.svg" alt="Unlock icon">, or paste the SVG code inline to style it with CSS.

Browse all Codicons →