Lock icon
gala:lock
The Lock icon (gala:lock) is a free SVG icon from the Gala Icons set by Jake Wells. It is drawn on a 256 × 256 grid. Gala Icons are released under the GPL license, which allows use in personal and commercial projects; modified versions of the icon files must keep the same license. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- Gala Icons
- Author
- Jake Wells
- License
- GPL-3.0
- Size
- 256 × 256
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"><path d="M 48.003124,207.99947 V 144.00668"/><path d="M 208.00205,207.99948 V 143.99989"/><path d="M 80.002888,239.99926 H 176.00225"/><path d="m 208.00205,207.99948 a 31.999787,31.999787 0 0 1 -31.9998,31.99978"/><path d="m 48.003124,207.99948 a 31.999787,31.999787 0 0 0 31.999764,31.99978"/><path d="m 128.00258,207.99949 v -31.9998"/><path d="M 47.996095,144.00668 A 15.999894,15.999894 0 0 1 63.995976,128.0068"/><path d="M 208.00205,143.99989 A 15.999894,15.999894 0 0 0 192.00218,128"/><path d="M 176.00225,64.00042 A 47.999683,47.999683 0 0 0 128.00258,16.00074"/><path d="M 80.002812,64.00042 A 47.999683,47.999683 0 0 1 128.00249,16.00074"/><path d="M 80.002888,128 V 63.907475"/><path d="M 176.00225,64.000424 V 128"/><path d="M 64.003006,128 H 192.00218"/></g></svg>How to use the Lock icon
React
import { Icon } from "@iconify/react";
<Icon icon="gala:lock" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="gala:lock" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="gala:lock" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[gala--lock]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/gala -->
<div class="i-gala:lock"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="gala:lock"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/gala/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. Gala Icons are released under the GPL license, which allows use in personal and commercial projects; modified versions of the icon files must keep the same license.
How do I use the Lock icon in React?
Install @iconify/react and render <Icon icon="gala: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/gala/lock.svg" alt="Lock icon">, or paste the SVG code inline to style it with CSS.