Skip to content
Icon Pantry

Sun and Moon icon

16
20
24
32
48
Style
Color
PNG size

Free for personal and commercial use. No attribution required.

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 16.5a5.5 5.5 0 0 1-6.5-6.5 5.5 5.5 0 1 0 6.5 6.5"/><circle cx="7" cy="7" r="2.5"/><path d="M7 2v1m0 8v1M2 7h1m8 0h1M3.5 3.5l.7.7m6.3-.7-.7.7m-6.3 6.3.7-.7"/></svg>

About the sun and moon icon

The Sun and Moon icon is a free line icon from the weather set, drawn on a 24 by 24 pixel grid with a 2px rounded stroke so it matches every other icon on Icon Pantry. People use it for weather apps, travel sites and outdoor event pages, and it also works when you need an icon for sun moon, day night, theme toggle, dark mode. Change the color and stroke width, then download it as SVG or PNG (16 to 1024px), or copy it as React or HTML. It is free for personal and commercial use with no attribution required.

Category
Weather
Style
Line, 2px stroke, Solid version
Grid
24 × 24px
Formats
SVG, PNG, React, HTML
License
Free for commercial use
File
sun-moon.svg

Similar icons