softicons.dev

hard hat icon

Free hard hat SVG icon, MIT licensed. Copy the SVG, install for React/Vue/Angular, or download. Part of the Softicons interface set.

Setup guide
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
     fill="none" stroke="currentColor" stroke-width="2"
     stroke-linecap="round" stroke-linejoin="round">
  <path d="M2 18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1Z"/>
  <path d="M10 10V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5"/>
  <path d="M4 15v-3a6 6 0 0 1 6-6"/>
  <path d="M14 6a6 6 0 0 1 6 6v3"/>
</svg>
<!-- via the CDN — no build step -->
<img src="https://cdn.softicons.dev/v1/icons/interface/hard-hat.svg"
     width="24" height="24" alt="hard hat icon">

<!-- …or paste the raw SVG from the SVG tab -->
import { HardHatIcon } from "@softicons/react";

export default function Example() {
  return <HardHatIcon size={24} strokeWidth={2} />;
}
<script setup>
import { HardHatIcon } from "@softicons/vue";
</script>

<template>
  <HardHatIcon :size="24" :stroke-width="2" />
</template>
import { HardHatIconComponent } from "@softicons/angular";

@Component({
  standalone: true,
  imports: [HardHatIconComponent],
  template: `<hard-hat-icon [size]="24" [strokeWidth]="2" />`,
})
export class DemoComponent {}