Pencil icon
bi:pencil
The Pencil icon (bi:pencil) is a free SVG icon from the Bootstrap Icons set by The Bootstrap Authors. It is drawn on a 24 × 24 grid. Bootstrap 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
- Bootstrap Icons
- Author
- The Bootstrap Authors
- License
- MIT
- Size
- 24 × 24
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168zM11.207 2.5L13.5 4.793L14.793 3.5L12.5 1.207zm1.586 3L10.5 3.207L4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293zm-9.761 5.175l-.106.106l-1.528 3.821l3.821-1.528l.106-.106A.5.5 0 0 1 5 12.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.468-.325"/></svg>How to use the Pencil icon
React
import { Icon } from "@iconify/react";
<Icon icon="bi:pencil" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="bi:pencil" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="bi:pencil" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[bi--pencil]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/bi -->
<div class="i-bi:pencil"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="bi:pencil"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/bi/pencil.svg" alt="Pencil icon" width="24" height="24">Related icons in Bootstrap Icons
Pencil icon in other icon sets
Pencil icon FAQ
Is the Pencil icon free for commercial use?
Yes. Bootstrap 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="bi: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/bi/pencil.svg" alt="Pencil icon">, or paste the SVG code inline to style it with CSS.