ICONYZ
English
Trash icon from Evil Icons

Trash icon

ei:trash

The Trash icon (ei:trash) is a free SVG icon from the Evil Icons set by Alexander Madyankin and Roman Shamin. It is drawn on a 50 × 50 grid. Evil Icons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Evil Icons
Author
Alexander Madyankin and Roman Shamin
License
MIT
Size
50 × 50
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 50 50"><path fill="currentColor" d="M20 18h2v16h-2zm4 0h2v16h-2zm4 0h2v16h-2zm-16-6h26v2H12zm18 0h-2v-1c0-.6-.4-1-1-1h-4c-.6 0-1 .4-1 1v1h-2v-1c0-1.7 1.3-3 3-3h4c1.7 0 3 1.3 3 3z"/><path fill="currentColor" d="M31 40H19c-1.6 0-3-1.3-3.2-2.9l-1.8-24l2-.2l1.8 24c0 .6.6 1.1 1.2 1.1h12c.6 0 1.1-.5 1.2-1.1l1.8-24l2 .2l-1.8 24C34 38.7 32.6 40 31 40"/></svg>

How to use the Trash icon

React

import { Icon } from "@iconify/react";

<Icon icon="ei:trash" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="ei:trash" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="ei:trash" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[ei--trash]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/ei -->
<div class="i-ei:trash"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="ei:trash"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/ei/trash.svg" alt="Trash icon" width="24" height="24">

Trash icon in other icon sets

Trash icon FAQ

Is the Trash icon free for commercial use?

Yes. Evil Icons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Trash icon in React?

Install @iconify/react and render <Icon icon="ei:trash" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Trash icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/ei/trash.svg" alt="Trash icon">, or paste the SVG code inline to style it with CSS.

Browse all Evil Icons →