Skip to content

Pencil

The pencil icon represents editing and writing with its classic pencil design.

Exports at 24 × 24 px

Pencil icon from HeroIcons
Get Pro

Code

Pencil in your framework

In any framework. Customize it above, and the code follows.

export const PencilIcon = (props: React.SVGProps<SVGSVGElement>) => (
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" {...props}>
    <path fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1.5" d="m16.862 4.487l1.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.8l.8-2.685a4.5 4.5 0 0 1 1.13-1.897zm0 0L19.5 7.125"/>
  </svg>
);

HeroIcons

Icons that share its tags, then the ones next to it in HeroIcons, in the same style.

  • Pencil Square icon from HeroIcons
  • Arrow Left Start On Rectangle icon from HeroIcons
  • Arrow Right On Rectangle icon from HeroIcons
  • Arrow Up On Square icon from HeroIcons
  • Clipboard icon from HeroIcons
  • Clipboard Document icon from HeroIcons
  • Document icon from HeroIcons
  • Document Text icon from HeroIcons
  • Film icon from HeroIcons
  • Musical Note icon from HeroIcons
  • Newspaper icon from HeroIcons
  • Rss icon from HeroIcons
  • Scissors icon from HeroIcons
  • Strikethrough icon from HeroIcons
  • Minus Circle icon from HeroIcons
  • Minus Small icon from HeroIcons
  • Moon icon from HeroIcons
  • No Symbol icon from HeroIcons
  • Numbered List icon from HeroIcons
  • Paint Brush icon from HeroIcons
  • Paper Airplane icon from HeroIcons
  • Paper Clip icon from HeroIcons
  • Pause icon from HeroIcons
  • Pause Circle icon from HeroIcons

Skip the copy and paste. With Pro, your AI agent finds and installs any HeroIcons icon from a prompt.

Get Pro

Pricing

HeroIcons MCP, with Pro

Ask for Pencil or any of 1,288 HeroIcons icons and your agent installs it. The MCP comes with every Pro plan, with 6,000+ blocks and 14 premium templates. The icons stay free.

4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.

  • Secure checkout via Stripe
  • Code lives in your repo
  • Keep what you've shipped if you cancel
  • License terms

FAQ

Frequently asked questions

What the Pencil icon means and where it's used, then how to install, style, label and license it.

4.9 out of 5 from 150+ developers

Install Pencil from a prompt

MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.

Get Pro