gentleface

Gentleface › Files & folders › file-pencil

file-pencil icon

File pencil: edit file, edit document, rename file, modify file. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

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="M3.14 2.264C3.242 2.007 3.391 1.781 3.586 1.586C3.781 1.391 4.007 1.242 4.264 1.14C4.5 1.047 4.746 1 5 1L7.5 1C7.886 1 8.258 1.074 8.615 1.222C8.972 1.37 9.287 1.58 9.561 1.854L12.146 4.439C12.42 4.713 12.63 5.028 12.778 5.385C12.926 5.742 13 6.114 13 6.5C13 6.641 12.952 6.759 12.856 6.856C12.759 6.952 12.641 7 12.5 7C12.359 7 12.241 6.952 12.144 6.856C12.048 6.759 12 6.641 12 6.5C12 6.329 11.978 6.162 11.934 6L10 6C9.746 6 9.5 5.953 9.264 5.86C9.007 5.758 8.781 5.609 8.586 5.414C8.391 5.219 8.242 4.993 8.14 4.736C8.047 4.5 8 4.254 8 4L8 2.066C7.838 2.022 7.671 2 7.5 2L5 2C4.724 2 4.488 2.098 4.293 2.293C4.098 2.488 4 2.724 4 3L4 13C4 13.276 4.098 13.512 4.293 13.707C4.488 13.902 4.724 14 5 14L6.5 14C6.641 14 6.759 14.048 6.856 14.144C6.952 14.241 7 14.359 7 14.5C7 14.641 6.952 14.759 6.856 14.856C6.759 14.952 6.641 15 6.5 15L5 15C4.746 15 4.5 14.953 4.264 14.86C4.007 14.758 3.781 14.609 3.586 14.414C3.391 14.219 3.242 13.993 3.14 13.736C3.047 13.5 3 13.254 3 13L3 3C3 2.746 3.047 2.5 3.14 2.264ZM9 2.707L9 4C9 4.276 9.098 4.512 9.293 4.707C9.488 4.902 9.724 5 10 5L11.293 5L9 2.707ZM14 7.707C14.276 7.707 14.512 7.805 14.707 8L15 8.293C15.195 8.488 15.293 8.724 15.293 9C15.293 9.276 15.195 9.512 15 9.707L12.061 12.646C11.56 13.147 11.007 13.579 10.4 13.943L8.757 14.929C8.636 15.001 8.51 15.021 8.378 14.988C8.246 14.955 8.144 14.878 8.071 14.757C8.023 14.677 7.999 14.592 7.999 14.5C7.999 14.408 8.023 14.323 8.071 14.243L9.057 12.6C9.421 11.993 9.853 11.44 10.354 10.939L13.293 8C13.488 7.805 13.724 7.707 14 7.707Z"/></svg>
React
// Gentleface "file-pencil" (line-round), MIT. https://gentleface.com/icons/file-pencil
import type { SVGProps } from 'react';

export function FilePencilIcon(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="M3.14 2.264C3.242 2.007 3.391 1.781 3.586 1.586C3.781 1.391 4.007 1.242 4.264 1.14C4.5 1.047 4.746 1 5 1L7.5 1C7.886 1 8.258 1.074 8.615 1.222C8.972 1.37 9.287 1.58 9.561 1.854L12.146 4.439C12.42 4.713 12.63 5.028 12.778 5.385C12.926 5.742 13 6.114 13 6.5C13 6.641 12.952 6.759 12.856 6.856C12.759 6.952 12.641 7 12.5 7C12.359 7 12.241 6.952 12.144 6.856C12.048 6.759 12 6.641 12 6.5C12 6.329 11.978 6.162 11.934 6L10 6C9.746 6 9.5 5.953 9.264 5.86C9.007 5.758 8.781 5.609 8.586 5.414C8.391 5.219 8.242 4.993 8.14 4.736C8.047 4.5 8 4.254 8 4L8 2.066C7.838 2.022 7.671 2 7.5 2L5 2C4.724 2 4.488 2.098 4.293 2.293C4.098 2.488 4 2.724 4 3L4 13C4 13.276 4.098 13.512 4.293 13.707C4.488 13.902 4.724 14 5 14L6.5 14C6.641 14 6.759 14.048 6.856 14.144C6.952 14.241 7 14.359 7 14.5C7 14.641 6.952 14.759 6.856 14.856C6.759 14.952 6.641 15 6.5 15L5 15C4.746 15 4.5 14.953 4.264 14.86C4.007 14.758 3.781 14.609 3.586 14.414C3.391 14.219 3.242 13.993 3.14 13.736C3.047 13.5 3 13.254 3 13L3 3C3 2.746 3.047 2.5 3.14 2.264ZM9 2.707L9 4C9 4.276 9.098 4.512 9.293 4.707C9.488 4.902 9.724 5 10 5L11.293 5L9 2.707ZM14 7.707C14.276 7.707 14.512 7.805 14.707 8L15 8.293C15.195 8.488 15.293 8.724 15.293 9C15.293 9.276 15.195 9.512 15 9.707L12.061 12.646C11.56 13.147 11.007 13.579 10.4 13.943L8.757 14.929C8.636 15.001 8.51 15.021 8.378 14.988C8.246 14.955 8.144 14.878 8.071 14.757C8.023 14.677 7.999 14.592 7.999 14.5C7.999 14.408 8.023 14.323 8.071 14.243L9.057 12.6C9.421 11.993 9.853 11.44 10.354 10.939L13.293 8C13.488 7.805 13.724 7.707 14 7.707Z" />
    </svg>
  );
}
Vue
Vue: see /icons/file-pencil.md
Svelte
Svelte: see /icons/file-pencil.md
HTML img
HTML img: see /icons/file-pencil.md
CSS
CSS: see /icons/file-pencil.md
Data URL
Data URL: see /icons/file-pencil.md
Sprite
Sprite: see /icons/file-pencil.md
SwiftUI
SwiftUI: see /icons/file-pencil.md
Compose
Compose: see /icons/file-pencil.md
Android XML
Android XML: see /icons/file-pencil.md
Flutter
Flutter: see /icons/file-pencil.md

Each SVG is 16 × 16 with fill="currentColor". Keep it at 16 px or an exact multiple (32, 48) on whole pixels: a fractional size or position blurs it. 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.

Meaning

Use it for
edit file, edit document, rename file, modify file
Example
Edit document
Alternatives
  • pencil: the bare edit when the UI already names the file
  • file-signature: sign a document (sign-document)
Also fits
  • edit: edit a document where the target must be named
Built from
file + pencil
Tags
document, page, sheet, pencil
Category
Files & folders
Component name
FilePencilIcon
History
  • added, modifier pencil redrawn

Family 42

More files & folders icons

For agents

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

Feedback