Hard Hat icon
ph:hard-hat
The Hard Hat icon (ph:hard-hat) is a free SVG icon from the Phosphor set by Phosphor Icons. It is drawn on a 256 × 256 grid. Phosphor icons 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
- Phosphor
- Author
- Phosphor Icons
- License
- MIT
- Size
- 256 × 256
- Tags
- safety, construction, industry, helmet, ppe, hardhat
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256"><path fill="currentColor" d="M224 152v-16a96.37 96.37 0 0 0-64-90.51V40a16 16 0 0 0-16-16h-32a16 16 0 0 0-16 16v5.49A96.37 96.37 0 0 0 32 136v16a16 16 0 0 0-16 16v24a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16v-24a16 16 0 0 0-16-16m-16-16v16h-48V62.67A80.36 80.36 0 0 1 208 136m-64-96v112h-32V40Zm-96 96a80.36 80.36 0 0 1 48-73.33V152H48Zm176 56H32v-24h192z"/></svg>How to use the Hard Hat icon
React
import { Icon } from "@iconify/react";
<Icon icon="ph:hard-hat" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="ph:hard-hat" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="ph:hard-hat" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[ph--hard-hat]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/ph -->
<div class="i-ph:hard-hat"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="ph:hard-hat"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/ph/hard-hat.svg" alt="Hard Hat icon" width="24" height="24">Related icons in Phosphor
Hard Hat icon in other icon sets
Hard Hat icon FAQ
Is the Hard Hat icon free for commercial use?
Yes. Phosphor icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Hard Hat icon in React?
Install @iconify/react and render <Icon icon="ph: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/ph/hard-hat.svg" alt="Hard Hat icon">, or paste the SVG code inline to style it with CSS.