A nib over a box, the conventional edit mark for records and inline fields. On a 24×24 grid in stroke, duotone and fill, free under MIT.

Filesv0.1.0Added
Drawn byKeyline Icons
16
20
24 px
32
24px
2px
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  <path d="M12 3H6C4.34315 3 3 4.34315 3 6V18C3 19.6569 4.34315 21 6 21H18C19.6569 21 21 19.6569 21 18V12M10.5 13.5L14.6248 11.8501L20.4874 5.9874C21.1709 5.304 21.1709 4.196 20.4874 3.5126C19.804 2.8291 18.696 2.8291 18.0126 3.5126L12.1499 9.3752Z"/>
</svg>

Related icons

The rest of the square family first, then the Files shelf.

FAQ

Answered from square-pen's own facts: its shelf, the weights it was drawn in, its siblings and its dates.

What is the square-pen icon for?
A nib over a box, the conventional edit mark for records and inline fields. It is filed under Files in Keyline Icons, drawn on the same 24×24 grid as the rest of the set.
What styles does the square-pen icon come in?
All three: stroke, duotone and fill. They are drawn from the same geometry, so swapping weight never moves anything.
Is there a square or circle version of square-pen?
No. square-pen is drawn as a bare glyph, and the set has no boxed variant of it.
What other icons go with square-pen?
square, square-dashed, square-dashed-full, square-dashed-half, square-dashed-quarter and square-dashed-three-quarter, and 12 more, all shown below. The square family is listed first, then the rest of the Files shelf, so the row under this one is the useful one even where a shelf runs long.
How do I import square-pen in React?
<SquarePen /> is the component, and the weight decides the module: stroke from "@keyline-icons/react", duotone from "@keyline-icons/react/duotone" and fill from "@keyline-icons/react/fill". It takes the usual SVG props plus a size, so <SquarePen size={16} /> and className="size-4" both work, and there is no provider or theme to set up.
Where is the square-pen SVG?
icons/stroke/square-pen.svg, icons/duotone/square-pen.svg and icons/fill/square-pen.svg in the repository, normalised: no wrapper, no ids and no classes to strip out. The tabs above hand you the same drawing as SVG or JSX without the download, and neither needs an install.
When was square-pen added to the set?
Added 17 Aug 2026. It ships in v0.1.0, so an install at that version or later has it.

Questions about the set rather than about this drawing are answered where they belong. The home page covers what the set is, how the three styles differ, why some icons come boxed and where the Figma file is; installing the set in a shadcn/ui project covers the React package, the CLI and using an icon without React. The MIT licence is stated in the footer of every page.