Close icon

interfacealso known as x mark, cancel, dismiss, clear, xmark
Colors byColorchord

Tap an icon to copy its SVG · copies stay currentColor at 24px — the swatches only tint the preview.

When to use it

The X dismisses transient surfaces: modals, toasts, chips, banners. Top-right corner, a comfortably sized tap target, and never doing double duty as 'discard my unsaved work' without a confirm. Distinguish it from minus (remove from list) and trash (destroy). Naming is scattered: x-mark in Heroicons, close-line in Remix, xmark in Iconoir, plain x in Lucide, Tabler, Phosphor and Feather.

Every set here is open-licensed for commercial use with no attribution required in your product — the notices their licenses do require live on our set pages. No accounts, no download walls.

Related icons