Icons

Pixel Art Moon Icon

IconStash indexes the Moon icon from Pixel Art Icons alongside 134,701 icons from 28 open-source libraries. It a clean SVG vector format, making it well suited for weather forecast apps, climate dashboards, location-based services, environmental widgets, and IoT sensor displays. Set an exact pixel size from 16px to 512px and download a lossless PNG in one click.

Interactive Customizer

1.5px
128px

About this icon

Use the Moon icon

The Moon icon from Pixel Art Icons fits naturally in weather forecast apps, climate dashboards, location-based services, environmental widgets, and IoT sensor displays. Its fill style makes it ideal for interface components and product UI.

Open it in IconStash to set stroke color via presets or a custom hex value, choose an exact pixel size (16–512px), control stroke width (0.1–3px), and preview against dark, light, or checkered backgrounds before downloading.

Export formats

Copy clean SVG vectors with one click, generate custom-size PNG files from 16px to 512px, export JSX/React components ready to paste into your project, or use the icon as a CSS background-mask for flexible theming.

All exports are based on the same editable vector — so the Moon icon stays pixel-perfect at 16px, 24px, 48px, and any large marketing size.

Design & UX integration

Aesthetic characteristics

Moon is drawn on a strict pixel grid with hard edges and no curves that rely on anti-aliasing. That is the point: it stays crisp at exact multiples of its native size. It suits retro, game and terminal-inspired interfaces, and looks wrong if you scale it to arbitrary sizes.

UX best practices

Weather icons are scanned rather than read, so the Moon icon must stay legible at small sizes and be consistent with the rest of the forecast set. The most common mistake is mixing outline and filled glyphs across one forecast row, which makes a single strip look like two different data sources.

Use in your project

React / npm — Pixel Art Icons

npm install pixelarticons

<!-- Direct SVG import (recommended) -->
<img src="node_modules/pixelarticons/svg/moon.svg" alt="moon" width="24" height="24">

Copy the SVG markup directly from the IconStash editor to use the Moon icon without any npm package — paste it into HTML, JSX, or a design tool.

Inline SVG (copy & paste)

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" role="img" aria-label="moon icon"><path fill="currentColor" d="M18 22H8v-2h10zM8 20H6v-2h2zm12 0h-2v-2h2zM6 18H4v-2h2zm16 0h-2v-4h-2v-2h2v-2h2zM4 16H2V6h2zm14 0h-6v-2h6zm-6-2h-2v-2h2zm-2-2H8V6h2zM6 6H4V4h2zm8-2h-2v2h-2V4H6V2h8z"/></svg>

Library & related icons

About Pixel Art Icons

1,000+ pixel art style SVG icons for retro aesthetics, game-inspired interfaces, and creative projects. Designed on a strict pixel grid.

  • Total icons: 1,099+
  • Style: pixel
  • License: MIT
  • npm package: pixelarticons
Browse all 1,099 Pixel Art Icons icons →

People also search for

Frequently asked questions

What is the Moon icon?

The Moon icon is a fill-style SVG icon from the Pixel Art Icons library, categorized under Weather. It is designed for use in weather forecast apps, climate dashboards, location-based services, environmental widgets, and IoT sensor displays. On IconStash you can preview it, customize its color and size, and export it in SVG, PNG, JSX, or CSS formats directly from your browser.

Is the Moon icon free to use?

Yes. Pixel Art Icons is licensed under MIT, making it free for personal and commercial use. This means you can freely use the Moon icon in personal, commercial, and open-source projects. IconStash provides SVG and PNG access at no cost with no login required.

How do I use the Moon icon in React?

Install the package with `npm install pixelarticons`, then import the component into your React file. IconStash's detail panel shows you the exact npm command, import statement, and JSX usage snippet for every icon — just click the Code tab and copy with one click.

What is the Pixel Art Icons icon library?

1,000+ pixel art style SVG icons for retro aesthetics, game-inspired interfaces, and creative projects. Designed on a strict pixel grid. It contains 1,099+ icons. IconStash indexes the complete Pixel Art Icons collection alongside 27 other open-source libraries — 134,701 icons total — in a single unified search interface.

Can I download the Moon icon as a PNG?

Yes. Open the Moon icon in IconStash, set your desired pixel size (16px to 512px) in the detail panel, and click Download PNG. You can also export a multi-resolution ZIP pack containing 16, 24, 32, 48, 64, 128, 256, and 512px PNGs with a single click.

What does the fill icon style mean?

An icon in fill style uses a clean SVG vector format. This style is best suited for interface components. The Pixel Art Icons Moon icon follows this visual convention throughout the Pixel Art Icons design system.

Can I change the Moon icon's color and size before downloading?

Yes. In IconStash's editor panel, choose from six color presets (blue, slate, green, purple, red, teal) or enter a custom hex value. Drag the size slider (16–256px) or type an exact pixel value up to 512px. Changes apply instantly to the SVG preview, the PNG output, and the copied code.