Pen icon
boxicons:pen
The Pen icon (boxicons:pen) is a free SVG icon from the Boxicons set. It is drawn on a 24 × 24 grid. Boxicons 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.
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M17 17.76v-5.35l2.91-2.91L21 8.41c.38-.38.58-.88.58-1.42s-.21-1.04-.59-1.41L18.4 3c-.38-.38-.88-.58-1.41-.58s-1.04.21-1.41.59L13.8 4.8l-2.21 2.21H6.24l-3.35 12.3l1.82 1.82l12.3-3.35Zm0-13.35l2.59 2.58l-1.09 1.09l-2.59-2.59l1.08-1.08ZM7.77 9h4.65l2.09-2.09L17.1 9.5l-2.09 2.09v4.65L7 18.42l3.43-3.43h.08c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.08L5.58 17l2.18-8.01Z"/></svg>How to use the Pen icon
React
import { Icon } from "@iconify/react";
<Icon icon="boxicons:pen" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="boxicons:pen" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="boxicons:pen" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[boxicons--pen]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/boxicons -->
<div class="i-boxicons:pen"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="boxicons:pen"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/boxicons/pen.svg" alt="Pen icon" width="24" height="24">Related icons in Boxicons
pen-alt
pen-alt-filled
pen-draw
pen-draw-filled
pen-edit-circle
pen-edit-circle-alt
pen-edit-circle-alt-filled
pen-edit-circle-filled
pen-filled
pen-minus
pen-minus-filled
pen-plus
pen-plus-filled
pencil
pencil-circle
pencil-circle-filled
pencil-draw
pencil-draw-filled
pencil-edit-circle
pencil-edit-circle-filled
pencil-filled
pencil-sparkles
pencil-sparkles-filled
pencil-square
Pen icon in other icon sets
Pen icon FAQ
Is the Pen icon free for commercial use?
Yes. Boxicons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Pen icon in React?
Install @iconify/react and render <Icon icon="boxicons:pen" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Pen icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/boxicons/pen.svg" alt="Pen icon">, or paste the SVG code inline to style it with CSS.