ICONYZ
English
Pencil icon from BoxIcons v2

Pencil icon

bx:pencil

The Pencil icon (bx:pencil) is a free SVG icon from the BoxIcons v2 set by Boxicons. It is drawn on a 24 × 24 grid. BoxIcons v2 icons are released under the MIT 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
BoxIcons v2
Author
Boxicons
License
MIT
Size
24 × 24
Tags
bx pencil
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="M4 21a1 1 0 0 0 .24 0l4-1a1 1 0 0 0 .47-.26L21 7.41a2 2 0 0 0 0-2.82L19.42 3a2 2 0 0 0-2.83 0L4.3 15.29a1.06 1.06 0 0 0-.27.47l-1 4A1 1 0 0 0 3.76 21A1 1 0 0 0 4 21M18 4.41L19.59 6L18 7.59L16.42 6zM5.91 16.51L15 7.41L16.59 9l-9.1 9.1l-2.11.52z"/></svg>

How to use the Pencil icon

React

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

<Icon icon="bx:pencil" width="24" />

Vue

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

<template>
  <Icon icon="bx:pencil" width="24" />
</template>

Svelte

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

<Icon icon="bx:pencil" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="bx:pencil"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/bx/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. BoxIcons v2 icons are released under the MIT 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="bx: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/bx/pencil.svg" alt="Pencil icon">, or paste the SVG code inline to style it with CSS.

Browse all BoxIcons v2 icons →