gentleface

Gentleface › Tools › hammer

hammer icon

Hammer: hammer, build, compile, build project. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Animated hammer-strike · line-round

The hammer lifts back from the end of its handle and swings down fast. It rebounds and lands a second, lighter blow, with sparks at each hit, then returns.

Download SVG

Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To play it once on hover or click, run 0.25 s to 1.65 s. Examples and helper.

Code line-round

SVG
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M12.207 10.5C12.012 10.695 11.776 10.793 11.5 10.793C11.224 10.793 10.988 10.695 10.793 10.5L9.5 9.207L4.207 14.5C4.012 14.695 3.776 14.793 3.5 14.793C3.224 14.793 2.988 14.695 2.793 14.5L1.5 13.207C1.305 13.012 1.207 12.776 1.207 12.5C1.207 12.224 1.305 11.988 1.5 11.793L6.793 6.5L4.637 4.344C4.53 4.237 4.452 4.113 4.401 3.971C4.344 3.81 4.33 3.645 4.357 3.477C4.384 3.308 4.45 3.157 4.555 3.022C4.648 2.903 4.762 2.81 4.897 2.743L7.954 1.214C8.147 1.118 8.349 1.087 8.561 1.121C8.774 1.156 8.956 1.249 9.108 1.401L14.5 6.793C14.695 6.988 14.793 7.224 14.793 7.5C14.793 7.776 14.695 8.012 14.5 8.207L12.207 10.5ZM7.5 5.793C7.631 5.924 7.718 6.072 7.761 6.239C7.88 6.239 7.994 6.287 8.078 6.371L9.629 7.922C9.713 8.006 9.761 8.12 9.761 8.239C9.928 8.282 10.076 8.369 10.207 8.5L11.5 9.793L13.793 7.5L8.401 2.108L5.344 3.637L7.5 5.793ZM3.5 13.793L8.793 8.5L7.5 7.207L2.207 12.5L3.5 13.793Z"/></svg>
React
// Gentleface "hammer" (line-round), MIT. https://gentleface.com/icons/hammer
import type { SVGProps } from 'react';

export function HammerIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M12.207 10.5C12.012 10.695 11.776 10.793 11.5 10.793C11.224 10.793 10.988 10.695 10.793 10.5L9.5 9.207L4.207 14.5C4.012 14.695 3.776 14.793 3.5 14.793C3.224 14.793 2.988 14.695 2.793 14.5L1.5 13.207C1.305 13.012 1.207 12.776 1.207 12.5C1.207 12.224 1.305 11.988 1.5 11.793L6.793 6.5L4.637 4.344C4.53 4.237 4.452 4.113 4.401 3.971C4.344 3.81 4.33 3.645 4.357 3.477C4.384 3.308 4.45 3.157 4.555 3.022C4.648 2.903 4.762 2.81 4.897 2.743L7.954 1.214C8.147 1.118 8.349 1.087 8.561 1.121C8.774 1.156 8.956 1.249 9.108 1.401L14.5 6.793C14.695 6.988 14.793 7.224 14.793 7.5C14.793 7.776 14.695 8.012 14.5 8.207L12.207 10.5ZM7.5 5.793C7.631 5.924 7.718 6.072 7.761 6.239C7.88 6.239 7.994 6.287 8.078 6.371L9.629 7.922C9.713 8.006 9.761 8.12 9.761 8.239C9.928 8.282 10.076 8.369 10.207 8.5L11.5 9.793L13.793 7.5L8.401 2.108L5.344 3.637L7.5 5.793ZM3.5 13.793L8.793 8.5L7.5 7.207L2.207 12.5L3.5 13.793Z" />
    </svg>
  );
}
Vue
Vue: see /icons/hammer.md
Svelte
Svelte: see /icons/hammer.md
HTML img
HTML img: see /icons/hammer.md
CSS
CSS: see /icons/hammer.md
Data URL
Data URL: see /icons/hammer.md
Sprite
Sprite: see /icons/hammer.md
SwiftUI
SwiftUI: see /icons/hammer.md
Compose
Compose: see /icons/hammer.md
Android XML
Android XML: see /icons/hammer.md
Flutter
Flutter: see /icons/hammer.md

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.

With npm: import { HammerIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
hammer, build, compile, build project
Don’t confuse with
  • wrench: Material's build icon is a wrench, but wrench owns maintenance and repair
Tags
hammer, build, construction, tool, repair, diy, compile
Category
Tools
Component name
HammerIcon
History
  • added
  • released in 0.1.0
  • changed in 0.2.0
  • 16 px redrawn
  • 20 px drawn, 24 px drawn
Since
version 0.1.0

More tools icons

For agents

Metadata: /icons/hammer.json · Markdown: /icons/hammer.md · SVG: https://gentleface.com/svg/{style}/16/hammer.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/hammer.png