Hard Hat icon
fa-solid:hard-hat
The Hard Hat icon (fa-solid:hard-hat) is a free SVG icon from the Font Awesome 5 Solid set by Dave Gandy. It is drawn on a 512 × 512 grid. Font Awesome 5 Solid icons 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
- Font Awesome 5 Solid
- Author
- Dave Gandy
- License
- CC-BY-4.0
- Size
- 512 × 512
- Category
- Construction, Logistics
- Tags
- hardhat
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><path fill="currentColor" d="M480 288c0-80.25-49.28-148.92-119.19-177.62L320 192V80a16 16 0 0 0-16-16h-96a16 16 0 0 0-16 16v112l-40.81-81.62C81.28 139.08 32 207.75 32 288v64h448zm16 96H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h480a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16"/></svg>How to use the Hard Hat icon
React
import { Icon } from "@iconify/react";
<Icon icon="fa-solid:hard-hat" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="fa-solid:hard-hat" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="fa-solid:hard-hat" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[fa-solid--hard-hat]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/fa-solid -->
<div class="i-fa-solid:hard-hat"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="fa-solid:hard-hat"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/fa-solid/hard-hat.svg" alt="Hard Hat icon" width="24" height="24">Hard Hat icon in other icon sets
Hard Hat icon FAQ
Is the Hard Hat icon free for commercial use?
Yes. Font Awesome 5 Solid icons 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 Hard Hat icon in React?
Install @iconify/react and render <Icon icon="fa-solid:hard-hat" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Hard Hat icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/fa-solid/hard-hat.svg" alt="Hard Hat icon">, or paste the SVG code inline to style it with CSS.