Skip to content

X Square

The x-square icon combines the stylized cancellation symbol with a square shape, often used in digital interfaces for actions like closing windows or cancelling operations.

Exports at 24 × 24 px

X Square icon from Phosphor
Get Pro

Code

X Square in your framework

In any framework. Customize it above, and the code follows.

export const XSquareIcon = (props: React.SVGProps<SVGSVGElement>) => (
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 256 256" {...props}>
    <path fill="currentColor" d="M208 32H48a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16m0 176H48V48h160zm-42.34-106.34L139.31 128l26.35 26.34a8 8 0 0 1-11.32 11.32L128 139.31l-26.34 26.35a8 8 0 0 1-11.32-11.32L116.69 128l-26.35-26.34a8 8 0 0 1 11.32-11.32L128 116.69l26.34-26.35a8 8 0 0 1 11.32 11.32"/>
  </svg>
);

Other libraries

X Square in 7 more libraries

Each library draws it its own way. Open one to compare.

Phosphor

Icons that share its tags, in the same style.

  • X Logo icon from Phosphor
  • Subtract Square icon from Phosphor
  • Anchor Simple icon from Phosphor
  • Angle icon from Phosphor
  • Arrows In Line Horizontal icon from Phosphor
  • Arrow U Left Up icon from Phosphor
  • Caret Double Down icon from Phosphor
  • Caret Double Left icon from Phosphor
  • Chat Slash icon from Phosphor
  • Checks icon from Phosphor
  • Circle Half icon from Phosphor
  • Circle Half Tilt icon from Phosphor
  • Circles Three Plus icon from Phosphor
  • Coat Hanger icon from Phosphor
  • Crosshair Simple icon from Phosphor
  • Crown icon from Phosphor
  • Door Open icon from Phosphor
  • Dots Nine icon from Phosphor
  • Dots Six icon from Phosphor
  • Drop Slash icon from Phosphor
  • Gender Intersex icon from Phosphor
  • Hash Straight icon from Phosphor
  • Heartbeat icon from Phosphor
  • Letter Circle V icon from Phosphor

Skip the copy and paste. With Pro, your AI agent finds and installs any Phosphor icon from a prompt.

Get Pro

Pricing

Phosphor MCP, with Pro

Ask for X Square or any of 9,161 Phosphor icons and your agent installs it. The MCP comes with every Pro plan, with 6,000+ blocks and 14 premium templates. The icons stay free.

4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.

  • Secure checkout via Stripe
  • Code lives in your repo
  • Keep what you've shipped if you cancel
  • License terms

FAQ

Frequently asked questions

What the X Square icon means and where it's used, then how to install, style, label and license it.

4.9 out of 5 from 150+ developers

Install X Square from a prompt

MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.

Get Pro