icons/Heroicons/pencilOpen in browser →

pencil · Heroicons

Free SVG pencil icon from Heroicons. Rendered at 24×24 in the stroke style and licensed under MIT. Copy directly as SVG, React (JSX), or Vue. Download as SVG or PNG. No login, no attribution required for MIT licensed icons.

pencil icon — HeroiconsFree pencil SVG icon from Heroicons, stroke style, MIT licensed.

Tags

  • pencil
  • outline

Code

HTML / SVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path stroke-linecap="round" stroke-linejoin="round" d="m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"/></svg>
React
// Run: npx sant-icons get heroicons-pencil --format react
export function HeroiconsPencil(props) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" {...props}><path stroke-linecap="round" stroke-linejoin="round" d="m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"/></svg>
  );
}
CLI
npx sant-icons get heroicons-pencil

Properties

Name
pencil
Library
Heroicons
Style
stroke
License
MIT
Version
2.2.0
Identifier
heroicons-pencil

pencil in other libraries

Related from Heroicons

The pencil icon ships with Heroicons, an open-source icon set licensed under MIT. Search for it as "heroicons pencil", "pencil svg", or any of its tagged terms (pencil, outline). The SVG is normalised to a 24×24 viewBox so you can drop it into any UI framework alongside the other icons here without scaling concerns.

Need this icon in your codebase fast? Install the MCP server for Claude Code (or any MCP-aware AI tool) and ask the model to fetch heroicons-pencil directly into your project. No browser context-switch.