Close SVG icon, line

Free

Crossed diagonal strokes form an X for dismissing content. Use it on a modal window or at the edge of a notification banner.

Sign in to download. Free SVGs are free with any account.

How to use it

HTML <img>
<img src="https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/wSZcu6XQ8_tl/amnt.svg" alt="Close" width="48" height="48">
Inline SVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4 20 20M20 4 4 20"/></svg>
CSS background-image
.close {
  background-image: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/wSZcu6XQ8_tl/amnt.svg");
  background-size: contain;
}
CSS mask-image (takes the text colour)
.close {
  width: 1.5em; height: 1.5em;
  background-color: currentColor;
  mask: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/wSZcu6XQ8_tl/amnt.svg") center / contain no-repeat;
}
React
import CloseSvg from "./close.jsx"; // from the React tab above

<CloseSvg width={48} height={48} />

Made with AMNT

AMNT SVG 1.1 drew this from the words Close: Two diagonal strokes crossing at the center. as part of the pack Interface icons, line. Want one like it? Make your own in the SVG studio.

Rest of Interface icons, line

Similar SVGs

Licence: free. A Free account may use it for personal work; Pro and Max download it with a commercial licence, fixed at download, forever. No credit needed. Read the licence