---
title: "Sun Icon: Free SVG & JSX | Pikaicons"
description: "A sun for light mode toggles, sunny weather, daytime and brightness. Free in 5 styles as SVG or JSX, for commercial use."
url: https://pikaicons.com/icon/sun
---

1. [All categories](https://pikaicons.com/categories)
2. [Weather & Climate](https://pikaicons.com/weather-climate)
3. Sun

# Sun icon

A sun for light mode toggles, sunny weather, daytime and brightness. A free sun icon in 5 styles, drawn by hand on a 24px grid. Copy it as SVG or JSX or install it from npm, for personal or commercial use.

Category

[Weather & Climate](https://pikaicons.com/weather-climate)

Size

24 × 24, scales to any size

License

Free, credit optional ([terms](https://pikaicons.com/license))

Guides

[Using SVG icons in React](https://pikaicons.com/blog/svg-icons-in-react), [Choosing an icon size](https://pikaicons.com/blog/icon-sizes)

Tags

weather, solar, sunshine, daylight, bright, summer, sunrise, sun, sunny, light mode, daytime

## Install from npm (React, MIT)

`npm i @pikaicons/react @pikaicons/core-free`

`import { PikaIcon } from "@pikaicons/react"; import { SunIcon } from "@pikaicons/core-free"; <PikaIcon icon={SunIcon} />`

## SVG code

```
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
  <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 18c3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6 2.69 6 6 6"/>
  <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 23v-1m-7.78-2.22.71-.71M1 12h1m2.22-7.78.71.71M12 2V1m7.07 3.93.71-.71M22 12h1m-3.93 7.07.71.71"/>
</svg>
```

## Related free icons

* [Cloud Sun](https://pikaicons.com/icon/cloud-sun)
* [Cloud](https://pikaicons.com/icon/cloud-default)
* [Cloud Rain](https://pikaicons.com/icon/cloud-rain)
* [Lightning](https://pikaicons.com/icon/lightning-thunder-electric-on)
* [Moon](https://pikaicons.com/icon/moon)
* [Snowflake](https://pikaicons.com/icon/snowflake)
* [Water Droplet](https://pikaicons.com/icon/water-droplet)
* [Light Bulb](https://pikaicons.com/icon/bulb-on)

## More Weather & Climate icons

### In the full library

* Beach Umbrella
* Cloud Lightning
* Cloud Moon
* Cloud Snow
* Cloud Wind
* Leaf
* Lightning Thunder Electric Off
* Mountain
* Pine Tree
* Plant Pot
* Sunrise Down
* Sunrise Up
* Thermometer
* Thermometer Add
* Thermometer Down
* Thermometer Minus
* Thermometer Up
* Umbrella
* Water Double Droplet
* Water Triple Droplet

[See all Weather & Climate icons](https://pikaicons.com/weather-climate)

## Get the full library

6,000+ icons across five styles, with the Figma file and the Pikaicons app, for one payment from $99\. 221 of them are free to copy here.

[Get Pikaicons](https://pikaicons.com/pricing) [Browse free icons](https://pikaicons.com/free-icons)
