ICONYZ
English
Compare Alt icon from Boxicons

Compare Alt icon

boxicons:compare-alt

The Compare Alt icon (boxicons:compare-alt) is a free SVG icon from the Boxicons set. It is drawn on a 24 × 24 grid. Boxicons 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
Boxicons
Author
Boxicons
License
MIT
Size
24 × 24
Tags
comparealt
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M9 2H4c-1.1 0-2 .9-2 2v5c0 1.1.9 2 2 2h5c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M4 9V4h5v5zm13.5 4c-2.48 0-4.5 2.02-4.5 4.5s2.02 4.5 4.5 4.5s4.5-2.02 4.5-4.5s-2.02-4.5-4.5-4.5m0 7a2.5 2.5 0 0 1 0-5a2.5 2.5 0 0 1 0 5M7 18H4v-5H2v5c0 1.1.9 2 2 2h3v2l4-3l-4-3zM20 4h-3V2l-4 3l4 3V6h3v5h2V6c0-1.1-.9-2-2-2" class="b"/></svg>

How to use the Compare Alt icon

React

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

<Icon icon="boxicons:compare-alt" width="24" />

Vue

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

<template>
  <Icon icon="boxicons:compare-alt" width="24" />
</template>

Svelte

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

<Icon icon="boxicons:compare-alt" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[boxicons--compare-alt]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/boxicons -->
<div class="i-boxicons:compare-alt"></div>

Web component

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

<iconify-icon icon="boxicons:compare-alt"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/boxicons/compare-alt.svg" alt="Compare Alt icon" width="24" height="24">

Related icons in Boxicons

Compare Alt icon FAQ

Is the Compare Alt icon free for commercial use?

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

How do I use the Compare Alt icon in React?

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

How do I add the Compare Alt icon to a web page?

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

Browse all Boxicons →