ICONYZ
English
Hard Hat icon from Material Design Icons

Hard Hat icon

mdi:hard-hat

The Hard Hat icon (mdi:hard-hat) is a free SVG icon from the Material Design Icons set by Pictogrammers. It is drawn on a 24 × 24 grid. Material Design Icons are released under the Apache 2.0 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
Material Design Icons
Author
Pictogrammers
License
Apache-2.0
Size
24 × 24
Category
Clothing, Hardware / Tools
Tags
helmet, hardware, tools, clothing, hardhat
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="M9.87 12.15L9 6.46a9.9 9.9 0 0 1 6 0l-.87 5.69c-.07.49-.5.85-1 .85h-2.27a1 1 0 0 1-.99-.85M22 16c0-.79-.47-1.5-1.2-1.83A9.08 9.08 0 0 0 17 8.5l-1.76 4.84c-.14.4-.52.66-.94.66H9.7c-.42 0-.8-.26-.94-.66L7 8.5a9.1 9.1 0 0 0-3.8 5.66C2.47 14.5 2 15.2 2 16l6.45 1.84c.36.1.73.16 1.1.16h4.88c.37 0 .74-.06 1.1-.16z"/></svg>

How to use the Hard Hat icon

React

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

<Icon icon="mdi:hard-hat" width="24" />

Vue

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

<template>
  <Icon icon="mdi:hard-hat" width="24" />
</template>

Svelte

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

<Icon icon="mdi:hard-hat" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[mdi--hard-hat]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/mdi -->
<div class="i-mdi:hard-hat"></div>

Web component

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

<iconify-icon icon="mdi:hard-hat"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/mdi/hard-hat.svg" alt="Hard Hat icon" width="24" height="24">

Related icons in Material Design Icons

Hard Hat icon in other icon sets

Hard Hat icon FAQ

Is the Hard Hat icon free for commercial use?

Yes. Material Design Icons are released under the Apache 2.0 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="mdi: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/mdi/hard-hat.svg" alt="Hard Hat icon">, or paste the SVG code inline to style it with CSS.

Browse all Material Design Icons →