ICONYZ
English
Pencil icon from Material Design Light

Pencil icon

mdi-light:pencil

The Pencil icon (mdi-light:pencil) is a free SVG icon from the Material Design Light set by Pictogrammers. It is drawn on a 24 × 24 grid. Material Design Light icons are released under the Open Font License, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Material Design Light
Author
Pictogrammers
License
OFL-1.1
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="m19.71 8.04l-2.34 2.33l-3.75-3.75l2.34-2.33c.39-.39 1.04-.39 1.41 0l2.34 2.34c.39.37.39 1.02 0 1.41M3 17.25L13.06 7.18l3.75 3.75L6.75 21H3zM16.62 5.04l-1.54 1.54l2.34 2.34l1.54-1.54zM15.36 11L13 8.64l-9 9.02V20h2.34z"/></svg>

How to use the Pencil icon

React

import { Icon } from "@iconify/react";

<Icon icon="mdi-light:pencil" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="mdi-light:pencil" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="mdi-light:pencil" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[mdi-light--pencil]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/mdi-light -->
<div class="i-mdi-light:pencil"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="mdi-light:pencil"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/mdi-light/pencil.svg" alt="Pencil icon" width="24" height="24">

Pencil icon in other icon sets

Pencil icon FAQ

Is the Pencil icon free for commercial use?

Yes. Material Design Light icons are released under the Open Font License, which allows use in personal and commercial projects.

How do I use the Pencil icon in React?

Install @iconify/react and render <Icon icon="mdi-light:pencil" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Pencil icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/mdi-light/pencil.svg" alt="Pencil icon">, or paste the SVG code inline to style it with CSS.

Browse all Material Design Light icons →