A nib with two sparkles, for AI writing, smart edits and generated drafts. On a 24×24 grid in stroke, two-tone, duotone and fill, free under MIT.

AIv1.0.0Added Updated
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="M21.0237 7.6904L9.8567 18.8573L2 22L5.1427 14.1433L16.3096 2.9763C16.9348 2.3512 17.7826 2 18.6667 2C19.5507 2 20.3986 2.3512 21.0237 2.9763C21.6488 3.6014 22 4.4493 22 5.3333C22 6.2174 21.6488 7.0652 21.0237 7.6904ZM15.0638 4.2222L19.7778 8.9362"/>
  <path d="M5.5492 1.3739L6.1373 2.8648C6.3173 3.3213 6.6787 3.6827 7.1352 3.8627L8.6261 4.4508C8.8518 4.5397 9 4.7576 9 5C9 5.2424 8.8518 5.4603 8.6261 5.5492L7.1352 6.1373C6.6787 6.3173 6.3173 6.6787 6.1373 7.1352L5.5492 8.6261C5.4603 8.8518 5.2424 9 5 9C4.7576 9 4.5397 8.8518 4.4508 8.6261L3.8627 7.1352C3.6827 6.6787 3.3213 6.3173 2.8648 6.1373L1.3739 5.5492C1.1482 5.4603 1 5.2424 1 5C1 4.7576 1.1482 4.5397 1.3739 4.4508L2.8648 3.8627C3.3213 3.6827 3.6827 3.3213 3.8627 2.8648L4.4508 1.3739C4.5397 1.1482 4.7576 1 5 1C5.2424 1 5.4603 1.1482 5.5492 1.3739ZM19.8433 17.2337L20.2108 18.1655C20.3233 18.4508 20.5492 18.6767 20.8345 18.7892L21.7663 19.1567C21.9074 19.2123 22 19.3485 22 19.5C22 19.6515 21.9074 19.7877 21.7663 19.8433L20.8345 20.2108C20.5492 20.3233 20.3233 20.5492 20.2108 20.8345L19.8433 21.7663C19.7877 21.9074 19.6515 22 19.5 22C19.3485 22 19.2123 21.9074 19.1567 21.7663L18.7892 20.8345C18.6767 20.5492 18.4508 20.3233 18.1655 20.2108L17.2337 19.8433C17.0926 19.7877 17 19.6515 17 19.5C17 19.3485 17.0926 19.2123 17.2337 19.1567L18.1655 18.7892C18.4508 18.6767 18.6767 18.4508 18.7892 18.1655L19.1567 17.2337C19.2123 17.0926 19.3485 17 19.5 17C19.6515 17 19.7877 17.0926 19.8433 17.2337Z" fill="currentColor" stroke="none"/>
</svg>

Also called

What someone searching for this drawing would have typed instead. These are the words the browser's search matches on.

  • ai write
  • ai edit
  • smart edit
  • generate text
  • magic pen
  • rewrite
  • pencil sparkles

Related icons

The rest of the pen family first, then the AI shelf.

FAQ

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

What is the pen-sparkles icon for?
A nib with two sparkles, for AI writing, smart edits and generated drafts. It is filed under AI in Keyline Icons, drawn on the same 24×24 grid as the rest of the set. People look for it as ai write, ai edit, smart edit, generate text, magic pen, rewrite and pencil sparkles, and the browser's search matches all of those.
What styles does the pen-sparkles icon come in?
All four: stroke, two-tone, duotone and fill. They are drawn from the same geometry, so swapping style never moves anything.
Is there a square or circle version of pen-sparkles?
No. pen-sparkles is drawn as a bare glyph, and the set has no boxed variant of it.
What other icons go with pen-sparkles?
pen, pen-line, pen-off, activity-sparkles, app-window-sparkles and audio-lines-sparkles, and 12 more, all shown below. The pen family is listed first, then the rest of the AI shelf, so the row under this one is the useful one even where a shelf runs long.
How do I import pen-sparkles in React?
<PenSparkles /> is the component, and the weight decides the module: stroke from "@keyline-icons/react", two-tone from "@keyline-icons/react/two-tone", duotone from "@keyline-icons/react/duotone" and fill from "@keyline-icons/react/fill". It takes the usual SVG props plus a size, so <PenSparkles size={16} /> and className="size-4" both work, and there is no provider or theme to set up.
Where is the pen-sparkles SVG?
icons/stroke/pen-sparkles.svg, icons/two-tone/pen-sparkles.svg, icons/duotone/pen-sparkles.svg and icons/fill/pen-sparkles.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 pen-sparkles added to the set?
Added 17 Sept 2026, and last redrawn 23 Sept 2026. It ships in v1.0.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.