Pencil
The pencil icon represents editing functionality, content modification, and writing features in digital interfaces.
Exports at 24 × 24 px
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 100 100" {...props}>
<circle cx="50" cy="50" r="50" fill="#F2F2F2"/><clipPath id="SVGlgah6cRj"><circle cx="50" cy="50" r="50"/></clipPath><g fillRule="evenodd" clipPath="url(#SVGlgah6cRj)" clipRule="evenodd"><path fill="#3B97D3" d="M28.016 74.252v20.66C34.652 98.167 42.111 100 50 100s15.348-1.833 21.984-5.088v-20.66L50.001 32.013z"/><path d="M40.001 98.998V82.9c-7.061-1.658-11.912-5.016-11.995-8.9l-.005.005v20.899a49.6 49.6 0 0 0 12 4.094" opacity=".15"/><path fill="#fff" d="M60 98.998V82.9c7.061-1.658 11.912-5.016 11.995-8.9l.005.005v20.899a49.6 49.6 0 0 1-12 4.094" opacity=".15"/><path fill="#F0C419" d="M71.982 73.894L56.495 44.396A13.9 13.9 0 0 1 50.001 46c-2.352 0-4.564-.586-6.51-1.611L28 73.894h.001c0 5.581 9.85 10.105 22 10.105s22-4.524 22-10.105z"/><path fill="#D4896C" d="M50 76c-12.15 0-22-4.925-22-10.999V35c0-6.075 9.85-11 22-11s22 4.925 22 11v30.001C72 71.075 62.15 76 50 76"/><ellipse cx="50" cy="35" fill="#DF9173" rx="22" ry="11"/><path fill="#F0C419" d="M50 86c-12.15 0-22-4.925-22-11V55c0 6.075 9.85 11 22 11s22-4.925 22-11v20c0 6.075-9.85 11-22 11"/></g>
</svg>
);Other libraries
Pencil in 8 more libraries
Each library draws it its own way. Open one to compare.
Flat UI Icons
More like it
Icons that share its tags, then the ones next to it in Flat UI Icons, in the same style.
Search Flat UI Icons
Skip the copy and paste. With Pro, your AI agent finds and installs any Flat UI Icons icon from a prompt.
Get ProTags
Browse by tag
Pencil is tagged edit, writing, modify and 4 more. Related tags follow; each opens its icons from every library.
Pricing
Flat UI Icons MCP, with Pro
Ask for Pencil or any of 100 Flat UI Icons 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.
The pencil icon represents editing functionality, content modification, and writing features in digital interfaces. Featuring a classic pencil design, this symbol has become the universal indicator for edit modes, text composition, and content revision actions across all platforms.
In modern applications like Google Docs or Notion, you'll see this icon triggering edit modes and content modification states. It appears in content management systems like WordPress when entering post editing, or in note-taking apps like Evernote when enabling markup and annotation features for document review.
From a content creation perspective, the pencil communicates more than just modification - it specifically indicates draft states, revision capabilities, and the informal nature of editing compared to more permanent actions. This visual cue helps users understand they're entering editable states where changes can be refined before final commitment.
Pencil is one of 100 icons in Flat UI Icons, made by Designmodo, Inc. and released under MIT. It is drawn on a 100 × 100 grid.
Sign in (it's free), then open Get icon, Install with shadcn CLI, and pick your package manager to copy the command. It adds PencilIcon to components/icons/flat-ui-pencil.tsx: one file, a size prop (24 by default) and every SVG prop, with no icon package.
Copy it as React (from Get icon, or the Code section): a typed PencilIcon component you paste into your project, with no package to install. Only the icons you import reach your bundle. It works in Next.js and any React app.
Open Get icon, then Copy as code, and pick Vue, Svelte, Angular, Solid or Preact; the Code section shows each one too. Every version is one self-contained component with the SVG inside, and SVG and data URL copies are there for plain HTML and CSS.
With Pro, the shadcn.io MCP server lets Claude Code, Cursor or any MCP client find the Pencil icon, or any of 100 Flat UI Icons icons, and install it from a prompt.
It's multicolor, so it keeps its own colors.
Set width and height on the component, or a class like size-6. It's drawn on a 100 × 100 grid, so it stays sharp at any size. Customize also sets the size it exports at, its padding and rotation.
Yes. It keeps its own colors in light and dark mode, so check it against both backgrounds. The icon is a vector, so it needs no separate dark asset.
Next to a visible label it's decoration: add aria-hidden="true" so screen readers skip it. Standing alone, as in an icon button, give the button a name instead, like aria-label="Pencil", so screen readers say what it does.
Yes. PencilIcon passes every SVG prop to the svg element, so <PencilIcon aria-hidden="true" /> works, and so do role="img" with aria-label, or a title child, when it carries meaning on its own.
Yes. Open Get icon, then Download file: SVG for code or design tools like Figma; PNG, WebP or JPEG at 512px; or an ICO favicon with 16, 32 and 48px inside. Each one uses what you set in Customize.
Yes. MIT allows commercial use; keep the license notice when you ship the icons' source files. The full terms are in the license, linked on this page.
No visible credit is required: MIT only asks that you keep the license notice if you ship the icons' source files. Icons installed with the shadcn CLI already start with a comment naming Flat UI Icons, Designmodo, Inc. and the license.
Yes. Copying and downloading it is free, and the shadcn CLI install only needs a free account.
8 other libraries draw an icon called Pencil. The Other libraries section on this page shows each one, so you can compare them and open the one that fits your style.
Its tags are edit, writing, modify, annotation, write and compose. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for Pencil in another set.
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