ICONYZ
English
Magic icon from Font Awesome 4

Magic icon

fa:magic

The Magic icon (fa:magic) is a free SVG icon from the Font Awesome 4 set by Dave Gandy. It is drawn on a 1664 × 1664 grid. Font Awesome 4 icons are released under the Open Font 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
Font Awesome 4
Author
Dave Gandy
License
OFL-1.1
Size
1664 × 1664
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="1664" height="1664" viewBox="0 0 1664 1664"><path fill="currentColor" d="m1190 581l293-293l-107-107l-293 293zm447-293q0 27-18 45L333 1619q-18 18-45 18t-45-18L45 1421q-18-18-18-45t18-45L1331 45q18-18 45-18t45 18l198 198q18 18 18 45M286 98l98 30l-98 30l-30 98l-30-98l-98-30l98-30l30-98zm350 162l196 60l-196 60l-60 196l-60-196l-196-60l196-60l60-196zm930 478l98 30l-98 30l-30 98l-30-98l-98-30l98-30l30-98zM926 98l98 30l-98 30l-30 98l-30-98l-98-30l98-30l30-98z"/></svg>

How to use the Magic icon

React

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

<Icon icon="fa:magic" width="24" />

Vue

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

<template>
  <Icon icon="fa:magic" width="24" />
</template>

Svelte

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

<Icon icon="fa:magic" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="fa:magic"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/fa/magic.svg" alt="Magic icon" width="24" height="24">

Magic icon in other icon sets

Magic icon FAQ

Is the Magic icon free for commercial use?

Yes. Font Awesome 4 icons are released under the Open Font License, which allows use in personal and commercial projects.

How do I use the Magic icon in React?

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

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

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

Browse all Font Awesome 4 icons →