Moon icon
boxicons:moon
The Moon icon (boxicons:moon) 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.
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12.2 22c4.53 0 8.45-2.91 9.76-7.24a1.002 1.002 0 0 0-1.25-1.25c-.78.23-1.58.35-2.38.35c-4.52 0-8.2-3.68-8.2-8.2c0-.8.12-1.6.35-2.38c.11-.35.01-.74-.25-1s-.64-.36-1-.25A10.17 10.17 0 0 0 2 11.8C2 17.42 6.57 22 12.2 22M8.18 4.65c-.03.34-.05.68-.05 1.02c0 5.62 4.57 10.2 10.2 10.2c.34 0 .68-.02 1.02-.05C17.93 18.38 15.23 20 12.2 20C7.68 20 4 16.32 4 11.8a8.15 8.15 0 0 1 4.18-7.15"/></svg>How to use the Moon icon
React
import { Icon } from "@iconify/react";
<Icon icon="boxicons:moon" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="boxicons:moon" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="boxicons:moon" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[boxicons--moon]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/boxicons -->
<div class="i-boxicons:moon"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="boxicons:moon"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/boxicons/moon.svg" alt="Moon icon" width="24" height="24">Related icons in Boxicons
moon-crater
moon-crater-filled
moon-filled
moon-phase-0
moon-phase-0-filled
moon-phase-1
moon-phase-1-filled
moon-phase-2
moon-phase-2-filled
moon-phase-3
moon-phase-3-filled
moon-phase-4
moon-phase-4-filled
moon-phase-5
moon-phase-5-filled
moon-phase-6
moon-phase-6-filled
moon-star
moon-star-filled
moon-stars
moon-stars-filled
Moon icon in other icon sets
Moon icon FAQ
Is the Moon 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 Moon icon in React?
Install @iconify/react and render <Icon icon="boxicons:moon" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Moon icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/boxicons/moon.svg" alt="Moon icon">, or paste the SVG code inline to style it with CSS.