Cancel icon

Cancel is a Google Material Symbol from the UI actions category. It's one of the 100 most used Material Symbols. It comes in outlined, rounded and sharp styles, filled or unfilled, at seven weights from 100 to 700. Download it as SVG or PNG, or copy code for HTML, React, Vue, Angular, Flutter and Android — it's free to use under the Apache License 2.0.

Outlined

SVG

Outlined, filled

SVG

Every style, fill and weight

Material Symbols are variable: each icon comes in three styles, with or without fill, at seven weights. Pick a combination to preview it, download it, or copy the code for your platform.

Outlined, unfilled, weight 400

cancel_outlined_fill0_wght400.svg

Cancel icon in HTML

Load the Material Symbols font from Google Fonts (this link loads just this icon), then use the icon's name as text.

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200&icon_names=cancel" />

<span class="material-symbols-outlined">cancel</span>

Cancel icon in React

// With the font from the HTML tab:
export function CancelIcon() {
  return (
    <span className="material-symbols-outlined">
      cancel
    </span>
  );
}

// Or as an SVG component (Vite + vite-plugin-svgr) instead:
//   npm install @material-symbols/svg-400
//   import CancelIcon from "@material-symbols/svg-400/outlined/cancel.svg?react";

Cancel icon in Vue

<!-- With the font from the HTML tab -->
<template>
  <span class="material-symbols-outlined">cancel</span>
</template>

<!-- Or as an SVG component (Vite + vite-svg-loader):
     npm install @material-symbols/svg-400
     import CancelIcon from "@material-symbols/svg-400/outlined/cancel.svg?component"; -->

Cancel icon in Angular

With Angular Material and the font from the HTML tab:

<mat-icon fontSet="material-symbols-outlined">cancel</mat-icon>

Cancel icon in Flutter

Uses the community material_symbols_icons package.

flutter pub add material_symbols_icons

import 'package:material_symbols_icons/symbols.dart';

Icon(Symbols.cancel, fill: 0, weight: 400)

Cancel icon in Android

A vector drawable of the selected style, fill and weight:

<!-- res/drawable/cancel.xml -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24"
    android:tint="?attr/colorControlNormal">
        <path android:fillColor="@android:color/white" android:pathData="m8.25 16.8 3.75-3.75 3.75 3.75 1.05-1.05-3.75-3.75 3.75-3.75-1.05-1.05-3.75 3.75-3.75-3.75-1.05 1.05 3.75 3.75-3.75 3.75 1.05 1.05ZM12 22q-2.05 0-3.875-.787t-3.187-2.15Q3.575 17.7 2.788 15.875T2 12q0-2.075 .788-3.9t2.15-3.175Q6.3 3.575 8.125 2.788T12 2q2.075 0 3.9 .788T19.075 4.925q1.35 1.35 2.138 3.175T22 12q0 2.05-.787 3.875T19.075 19.063q-1.35 1.362-3.175 2.15T12 22Zm0-1.5q3.55 0 6.025-2.487T20.5 12q0-3.55-2.475-6.025t-6.025-2.475q-3.525 0-6.012 2.475T3.5 12q0 3.525 2.488 6.013T12 20.5Zm0-8.5Z" />
</vector>

Cancel icon in SVG

npm install @material-symbols/svg-400

import icon from "@material-symbols/svg-400/outlined/cancel.svg";

<!-- or load it from a CDN -->
<img src="https://cdn.jsdelivr.net/npm/@material-symbols/[email protected]/outlined/cancel.svg" width="24" height="24" alt="Cancel">

Cancel icon in Power Apps

Paste into an Image control's Image property. The Copy button copies the full formula with this icon's SVG.

"data:image/svg+xml;utf8, " & EncodeUrl("<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'>…</svg>")

Details

NameCancel
Ligaturecancel
Code pointU+E5C9
CategoryUI actions
StylesOutlined, Rounded, Sharp — each unfilled or filled
Weights100, 200, 300, 400, 500, 600, 700
Files@material-symbols/svg-400/outlined/cancel.svg, cancel-fill.svg
FlutterSymbols.cancel
LicenseApache License 2.0 (© Google LLC)

Keywords

ui actionsactionstopremoveerrorroundcrosscloseblockclearexitdeleteforbidden

Related icons