Skip to content

Constellation Viewer - Night Sky Map Generator | Free Tool

A free constellation viewer that draws an SVG night sky map of visible constellations, planets, and the Moon for any location, date, and time you choose.

Constellation Viewer

Night Sky Map

Civil twilightMoon 4%
ArcturusVegaAltairSpicaAquilaBootesCamelopardalisCanes VenaticiCassiopeiaCepheusComa BerenicesCorona BorealisCygnusDelphinusDracoEquuleusHerculesLacertaLeoLeo MinorLibraLynxLyraOphiuchusPegasusSagittaSagittariusScorpiusScutumSerpensUrsa MaiorUrsa MinorVirgoVulpeculaNorthEastSouthWestHYG v4 (CC BY-SA) · figures: d3-celestial
SunMoon Mercury Venus Mars Jupiter Saturn

Visible constellations (34)

Loading calculator...
📚

Documentation

What Is a Constellation Viewer?

A constellation viewer is a tool that shows which constellations are visible in the night sky from a chosen place, date, and time. This one draws the result as an SVG image: a night sky map with stars, constellation lines, the Sun, the Moon, and the five naked-eye planets plotted in their calculated positions.

How to Use the Constellation Viewer

  1. Enter a date and time, or leave the defaults, which are set to the current date and time.
  2. Enter a latitude and longitude, or check "Use current location" to let the browser detect them.
  3. The sky map draws right away. No extra button press is needed.
  4. Drag the time offset slider to move up to 12 hours earlier or later and watch the sky change.
  5. Click a constellation name or a line on the chart to highlight it, or click the download button to save the chart as an SVG file.

How to Calculate Which Constellations Are Visible

Every star has two celestial coordinates, similar to longitude and latitude on Earth:

  • Right ascension (RA): position measured east along the celestial equator, in hours, from 0 to 24.
  • Declination (Dec): position measured north or south of the celestial equator, in degrees, from -90° to +90°.

To find where a star sits in the sky at a given moment, the tool converts RA and Dec into two local values: altitude (how high the star is above the horizon) and azimuth (its compass direction, measured clockwise from north).

That conversion needs one more figure: local sidereal time (LST), a clock that tracks Earth's rotation relative to the stars rather than the Sun. LST is worked out from Greenwich Mean Sidereal Time, which depends only on the date and time, then adjusted for the observer's longitude.

From LST and a star's RA, the tool finds the hour angle (HA): how far the star has moved past the observer's meridian, an imaginary line running north to south overhead.

HA=LSTRAHA = LST - RA

Altitude then follows from the observer's latitude (Lat), the star's declination (Dec), and the hour angle:

sin(Alt)=sin(Dec)sin(Lat)+cos(Dec)cos(Lat)cos(HA)\sin(Alt) = \sin(Dec) \cdot \sin(Lat) + \cos(Dec) \cdot \cos(Lat) \cdot \cos(HA)

Azimuth, measured from north through east, is worked out from the same three values.

A star counts as "up" once its altitude passes 5°. The tool checks each of the 88 constellations recognized by the International Astronomical Union. A constellation is marked visible when at least 30% of the stars in its outline are up, with a minimum of one star. Visible constellations are listed with the highest ones first.

Worked Example

Take the tool's own default location: latitude 40.7° N, longitude 74.0° W, roughly New York City. Use August 9, 2026, at 22:00 UTC.

  1. The Julian Date works out to about 2,461,262.42.
  2. Greenwich Mean Sidereal Time is about 19.23 hours. Adjusted for longitude, the local sidereal time is about 14.29 hours.
  3. Vega, the brightest star in Lyra, has RA 18.616h and Dec +38.78°. Its hour angle is LST − RA = 14.29 − 18.616 ≈ −4.32 hours, or about −64.8°.
  4. Putting Lat = 40.7°, Dec = 38.78°, and HA = −64.8° into the altitude formula gives an altitude near 41.3°. The matching azimuth works out to about 70°, roughly east-northeast.

Since 41.3° is well past the 5° cutoff, Vega counts as "up." Lyra appears in the list of visible constellations for that place and time.

What the Sky Map Shows

The chart is a circular projection. The zenith, the point directly overhead, sits at the center. The horizon runs around the outer edge, drawn at 0° altitude. North is at the top of the chart. East is drawn on the left, which matches the view of someone lying on the ground and holding the map up overhead. The image itself measures 640 by 640 pixels.

Besides stars and constellation lines, the map plots:

  • The Sun and Moon, each shown only when its altitude is above 0°. The Moon's shape reflects its current illuminated fraction, calculated from the angular separation between the Sun and Moon.
  • The five naked-eye planets: Mercury, Venus, Mars, Jupiter, and Saturn. Each is drawn with a typical brightness value rather than one recalculated for the exact date.
  • A label showing the current sky state: day, civil twilight, nautical twilight, astronomical twilight, or night, based on how far the Sun sits below the horizon.

The time offset slider does not change time zones. It shifts the calculation by up to 12 hours from the entered date and time. This lets a stargazer preview the sky later that night without retyping the time. Outside of that slider, the date and time are used exactly as entered, in the visitor's own browser time zone.

Practical Uses

  • Learning to identify constellations before going outside to stargaze.
  • Teaching celestial coordinates and basic astronomy in a classroom.
  • Planning an astrophotography session around when a target constellation sits highest in the sky.
  • Checking whether a constellation is circumpolar (always above the horizon) at a given latitude, or whether it never rises there at all.

The map shows theoretical visibility based on geometry alone. It does not account for light pollution, clouds, or the glare of a nearby full Moon. A star's magnitude, its brightness rating where lower numbers mean brighter, offers a rough guide to how easy it will be to spot in practice.

A Short History of Constellation Mapping

People have grouped stars into named patterns for thousands of years. Babylonian, Egyptian, and Greek astronomers built early star catalogs and constellation myths. In the 2nd century AD, the Greek astronomer Ptolemy listed 48 constellations in his work the Almagest. European navigators mapped the southern sky during the age of exploration in the 16th and 17th centuries, adding constellations unseen from the Mediterranean. In 1922, the International Astronomical Union fixed the list at 88 constellations with official boundaries, the standard still used today.

Frequently Asked Questions

What is the best time to view constellations?

Stars stand out most clearly during astronomical twilight or later, once the Sun has dropped more than 18° below the horizon and the sky is fully dark. Which constellations are visible then depends on the date, time, and latitude.

How accurate is the constellation viewer?

The tool computes positions from standard astronomical formulas: accurate to about 0.1° for stars, 1° for the Sun and planets, and 2° for the Moon. It does not correct for atmospheric refraction or the observer's height above sea level.

Does the tool work for any location on Earth?

Yes. Enter any latitude between -90° and 90° and any longitude between -180° and 180°, or use the browser's location detection, and the tool calculates the sky for that spot.

What does the time offset slider do?

It shifts the displayed sky forward or backward by up to 12 hours from the date and time entered. This lets a user preview how the sky will look later that night, or earlier that day, without changing the date field.

Why do some constellations never appear from my location?

A constellation's visibility depends on its declination and the observer's latitude. Constellations near the celestial pole on an observer's side of the sky stay above the horizon all the time. These are called circumpolar. Constellations near the opposite pole never rise there at all.

Does the tool account for light pollution?

No. It shows which constellations are geometrically above the horizon, assuming a clear, dark sky. Light pollution and weather both reduce how many stars are actually visible in practice.

References

  1. "Constellation." Wikipedia, Wikimedia Foundation. https://en.wikipedia.org/wiki/Constellation
  2. "Celestial coordinate system." Wikipedia, Wikimedia Foundation. https://en.wikipedia.org/wiki/Celestial_coordinate_system
  3. "The Constellations." International Astronomical Union. https://www.iau.org/public/themes/constellations/
  4. "HYG Database." AstroNexus. https://github.com/astronexus/HYG-Database