ICONYZ
English
Lock icon from Font Awesome 4

Lock icon

fa:lock

The Lock icon (fa:lock) is a free SVG icon from the Font Awesome 4 set by Dave Gandy. It is drawn on a 1152 × 1408 grid. Font Awesome 4 icons are released under the Open Font License, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Font Awesome 4
Author
Dave Gandy
License
OFL-1.1
Size
1152 × 1408
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="1152" height="1408" viewBox="0 0 1152 1408"><path fill="currentColor" d="M320 640h512V448q0-106-75-181t-181-75t-181 75t-75 181zm832 96v576q0 40-28 68t-68 28H96q-40 0-68-28t-28-68V736q0-40 28-68t68-28h32V448q0-184 132-316T576 0t316 132t132 316v192h32q40 0 68 28t28 68"/></svg>

How to use the Lock icon

React

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

<Icon icon="fa:lock" width="24" />

Vue

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

<template>
  <Icon icon="fa:lock" width="24" />
</template>

Svelte

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

<Icon icon="fa:lock" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="fa:lock"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/fa/lock.svg" alt="Lock icon" width="24" height="24">

Lock icon in other icon sets

Lock icon FAQ

Is the Lock icon free for commercial use?

Yes. Font Awesome 4 icons are released under the Open Font License, which allows use in personal and commercial projects.

How do I use the Lock icon in React?

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

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

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

Browse all Font Awesome 4 icons →