Find out when the sun rises and sets with a simple tool that runs in your browser. Pick a city, or use your own location, and the tool shows today's sunrise and sunset in the local time of that place. It also shows first light and last light, solar noon, and how long the day is, and it tells you whether the days are getting longer or shorter. You can check any date from 1900 to 2100, which helps when you plan a photo shoot, a hike, a garden, a flight, a run, or an outdoor event. Everything runs on your device, and your choices are remembered the next time you visit.

Knowing when the light starts and ends lets you plan the day around it, from the early walk to the last shot of golden light.

How to use the sunrise and sunset tool

  • Pick a place: choose a city from the list. The tool tries to start on a city in your time zone.
  • Use your location: press Use my location and allow your browser to share it, to see the times where you are.
  • Pick a date: choose any date, or press Previous day and Next day to move one day at a time. Press Today to come back.
  • Choose 12-hour or 24-hour time: the times redraw straight away.
  • Copy the times: click any card to copy it. Copy times copies the whole day. Reset returns to the default city and today.
  • Use the keyboard: press the Left and Right arrow keys to change the day, and T to jump back to today.

How the times are worked out

  • Sunrise and sunset: these are the moments the top edge of the sun appears at and disappears from the horizon, allowing for the bending of light by the air.
  • Solar noon: this is when the sun is highest in the sky. It is usually not exactly at 12:00 on the clock, because of your position in the time zone and the sun's changing speed through the year.
  • First light and last light: these mark civil twilight, when the sun is 6 degrees below the horizon. There is enough light outdoors to see clearly without lamps.
  • Day length: this is the time between sunrise and sunset. The tool compares it with the day before.
  • Midnight sun and polar night: near the poles the sun can stay up or down all day. The tool tells you when this happens.
  • Today: the tool uses your device clock and the time zone of the chosen place to find today's date there. It moves to the next day by itself at midnight in that place.

What the tool tells you

ResultExampleWhat it means
Sunrise and sunset6:06 AM – 5:25 PMThe times the sun rises and sets in the local time of the chosen place.
First light5:43 AMWhen civil twilight begins, before sunrise.
Solar noon11:46 AMWhen the sun reaches its highest point in the sky.
Last light5:48 PMWhen civil twilight ends, after sunset.
Day length11h 19mThe time between sunrise and sunset, with how it changed since yesterday.

What this tool does and does not do

This tool runs entirely in your browser and sends nothing to a server. It calculates times from the date, the latitude and longitude of the place, and the position of the sun, then shows them in the local time zone of that place. The results are usually within a few minutes of official tables, but they are calculated for a flat horizon at sea level, so hills, buildings, clouds, and your height above sea level change when you really see the sun. The tool does not give prayer times, moonrise or moonset, or exact times for legal, aviation, or navigation use. The city list is a selection of large cities, not every place, and a place near a city can have times a minute or two different. If you use your location, the tool shows times in your device's time zone, and your coordinates are used only for the calculation. The time zone rules come from your browser, so very old dates can differ from the time that was used in a place at the time.

Tips for better results

  • Plan photos: first light and last light show how long the soft light lasts before sunrise and after sunset.
  • Check the day length: the change since yesterday shows whether the days are getting longer or shorter, and how fast.
  • Plan ahead: pick a future date to plan a trip, a hike, or an event, and press Next day to step through the dates.
  • Compare places: switch the city to see how day length differs between your place and somewhere far north or south.
  • Copy for notes: use Copy times to paste the day's times into a message, calendar note, or document.
Pick a city, choose a date, and read the times. Today's date is already chosen for you.

Common sunrise and sunset problems

  • The time is a few minutes off my app: different sources use slightly different methods and horizon rules. A difference of a minute or two is normal.
  • The sun does not rise or set: the place may be near a pole, where the sun can stay up or down all day. The summary says so.
  • The time is an hour off: the tool uses your browser's time zone rules. Check that your device is set to the right time zone and that daylight saving time is correct for the date.
  • Use my location does not work: allow location access in your browser, or choose a city from the list instead.
  • My settings disappeared: your city and time format are saved in your browser. Clearing site data, using a private window, or pressing Reset removes them.

Frequently asked questions

How are sunrise and sunset times calculated?

The tool uses a standard astronomical formula based on the date, the latitude and longitude of the place, and the position of the sun. It then converts the result to the local time zone of the place.

How accurate are the times?

They are usually within a few minutes of official tables. Hills, buildings, weather, and height above sea level change when you actually see the sun, and the tool does not account for them.

Why does a place show no sunrise or sunset?

Near the poles the sun can stay above the horizon all day (midnight sun) or below it all day (polar night). The tool tells you when this happens, for example in Tromsø, Norway.

What are first light and last light?

They are the start and end of civil twilight, when the sun is 6 degrees below the horizon. There is enough light outdoors to see clearly without lamps.

Can I use my own location?

Yes. Press Use my location and allow your browser to share it. The tool uses it only to calculate the times and does not send it to a server.

Is the Xornex sunrise and sunset tool free?

Yes. There is no sign-up and no limit on how many cities or dates you can check. The tool runs in your browser and sends nothing to our server.

Share this article