Skip to content
tablericons

general

Pencil icon

Download the Pencil icon as free SVG or PNG. Compare outline and filled styles. Copy React, Vue or Svelte code.

  • edit
  • write
  • draw
  • modify
  • pen
  • compose
  • update
  • change
  • rename
  • sketch
Style
Size
Stroke
Color
Download SVG

Press C to copy SVG, J for JSX, D to download.

Category
general
Styles
Outline, filled
Component
IconPencil
License
MIT · Paweł Kuna

Code

Copy it the way you use it

pencil.svg
<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="M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4" />
  <path d="M13.5 6.5l4 4" />
</svg>

Use the Pencil icon

For a decorative icon beside text, add aria-hidden="true" to the SVG. For an icon-only control, put its accessible name on the button or link.

React example
import { IconPencil } from '@tabler/icons-react';

<IconPencil size={24} stroke={2} />
Read the React guide
Vue example
import { IconPencil } from '@tabler/icons-vue';

<IconPencil :size="24" :stroke="2" />
Read the Vue guide
Svelte 5 example
import { IconPencil } from '@tabler/icons-svelte-runes';

<IconPencil size={24} stroke={2} />
Read the Svelte guide

Compare variants and alternatives

Related

Related icons

See all 788 general icons