ICONYZ
English
Shield icon from Boxicons

Shield icon

boxicons:shield

The Shield icon (boxicons:shield) is a free SVG icon from the Boxicons set. It is drawn on a 24 × 24 grid. Boxicons are released under the MIT 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
Boxicons
Author
Boxicons
License
MIT
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="m20.42 6.11l-7.97-4c-.28-.14-.62-.14-.9 0l-7.97 4c-.31.15-.51.45-.55.79c-.01.11-.96 10.77 8.55 15.01a.98.98 0 0 0 .82 0c9.51-4.25 8.57-14.9 8.55-15.01a.98.98 0 0 0-.55-.79ZM12 19.9C5.26 16.63 4.94 9.64 5 7.64l7-3.51l7 3.51c.04 1.99-.33 9.02-7 12.27Z"/></svg>

How to use the Shield icon

React

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

<Icon icon="boxicons:shield" width="24" />

Vue

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

<template>
  <Icon icon="boxicons:shield" width="24" />
</template>

Svelte

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

<Icon icon="boxicons:shield" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="boxicons:shield"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/boxicons/shield.svg" alt="Shield icon" width="24" height="24">

Related icons in Boxicons

Shield icon in other icon sets

Shield icon FAQ

Is the Shield icon free for commercial use?

Yes. Boxicons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Shield icon in React?

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

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

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

Browse all Boxicons →