# How to Name the Stars in Your Own Night-Sky Photo

> Take a photo of the night sky, tap two stars you know, and Space Radar draws the constellations, the star names and the planets onto it. The photo never leaves your phone or computer.

By Space Radar. Published 2026-12-03. Category: Skywatching. Tags: astrophotography, constellations, stargazing, star names, night sky, privacy. 8 min read.
Canonical: https://blog.spaceradar.ai/name-the-stars-in-your-sky-photo/

To name the stars in your own night-sky photo, open [spaceradar.ai/sky-photo](https://www.spaceradar.ai/sky-photo/), choose the photo, tap two stars you know and say which ones they are. The page lines the sky up and draws the constellation figures, the names of the bright stars and, if it knows when the photo was taken, the planets and the Moon. **Save the picture** gives you a PNG with all of it. It is free, it runs in the browser, and your photo is never uploaded.

That last part is the reason it works the way it does. Here is how to use it, what happens behind the two taps, and what it cannot do yet.

## What you need

- **A photo of the night sky** taken through an ordinary lens: a phone’s main camera or its zoom, or a camera with a normal lens. The more stars show, the better.
- **Two stars you can name** somewhere in the photo. If you cannot name any yet, the time, a city near you and the direction the camera faced will do to start.
- **Optionally, the time** it was taken. Many cameras write it into the photo, and the page reads it from there.

## Step by step

1. Press **Choose a photo**, or drop one onto the page. A photo larger than 4 096 pixels across is shown at 4 096, which is plenty to name its stars.
2. Keep the **Two stars** tab. Tap a star you know, then pick its name from the list under “Which star is this?”. Do the same with a second star. The sky is now lined up.
3. Tap a third star if you can. It checks the fit, and a line says how far the stars sit from their true places on average, in pixels.
4. Press **Snap to the stars in the photo**. The page looks for the bright spots near where each bright star should be, and lines everything up on all of them at once.
5. Under **When it was taken** and **Where it was taken**, check the time (often already filled in from the photo) and choose a city near you. The planets and the Moon appear.
6. Use **Show** to turn the constellation lines, the constellation names, the star names, and the planets and the Moon on or off.
7. Press **Save the picture**. You get `sky-photo-named.png`: your photo at its own size, up to 4 096 pixels across, with everything drawn on it and a credit line along the bottom.

![The sky photo tool in use: a photo of Orion with blue constellation lines and white star names on the left, numbered rings round Betelgeuse, Rigel and Bellatrix, and on the right the three named stars, a line saying it is lined up on 18 stars and the photo is 60 degrees across, and the Snap button](/media/name-the-stars-in-your-sky-photo/sky-photo-two-stars.jpg)
*Three stars named, then Snap: “Lined up on 18 stars: the photo is 60° across.” With a time (10 January 2026, 21:00) and a city (London), Jupiter appears beside Wasat in Gemini, top left.*

## If you do not know any star yet

Switch to **Time and direction**. Give the time, a city near you, the way the camera faced (one of eight compass points), how high above the horizon it pointed, and how wide the photo is. The page helps with the last one: a phone’s main camera sees about 65 degrees across, and its zoom 25 to 35. Press **Draw the sky** for a first, rough overlay. It shows which bright star is probably which; tap two of them to pin it properly.

If you would rather learn a few bright stars first, our guide to [what is in the sky tonight](https://blog.spaceradar.ai/what-is-in-the-sky-tonight/) is a good start, and the map’s constellations trip shows the figures one by one.

**Fly there in the 3D map:** [Learn the constellations first](https://www.spaceradar.ai/#trip=the-constellations). A short guided trip through the figures the tool draws.

## How two taps can line up a whole sky

A camera with an ordinary lens draws the sky in one fixed way, the gnomonic projection, about the direction it points. Four numbers then describe any photo: where its middle points (two numbers), how far it is turned, and how wide it sees. Each star you name gives two equations, its across and its up, so two stars give exactly the four that are needed.

A third star and any more turn that into a least-squares fit, and the leftover is shown in pixels. When the average miss is more than about 0.4 per cent of the photo’s longest side, the line changes to a warning: a wide or fisheye lens, or a star named wrong. With three or more stars the page also tries the photo mirrored, as a front camera takes it, keeps whichever reading fits better, and says so if the photo was mirrored.

**Snap** then does the patient work. For each catalogue star brighter than magnitude 3.5 that falls in the frame, away from other bright stars, it looks for the brightest spot nearby that clearly stands out from the background, up to 30 of them. Then it refits on all of them, leaving out any pair that misses by more than three times the others, so one misnamed star or one speck of noise cannot pull the whole sky askew.

## Where the names come from

The names are those of the 436 named stars on the tool’s list, from the HYG catalogue. The lines and names of the constellations are d3-celestial’s, which follow the figures of Western star maps; other sky cultures drew [quite different pictures](https://blog.spaceradar.ai/constellations-in-other-cultures-sky-stories/) from the same stars. The planets and the Moon are worked out on your device by the Astronomy Engine library, for the time you give. A city matters most for the Moon, which is close enough to shift against the stars depending on where you stand: without one, the page warns, it may be off by up to a degree.

![The top of the sky photo page: the heading Name the stars in your photo, a short explanation, an orange Choose a photo button, the words or drop one here, and the line Your photo is read on this device and never uploaded](/media/name-the-stars-in-your-sky-photo/sky-photo-choose.jpg)
*The page before a photo is chosen. The promise is printed next to the button.*

## Your photo stays on your device

A photo of your garden or your street at night can say a lot about where you live, so the tool was built so that it cannot send it. The browser turns the file into a local `blob:` address, the page draws it on a canvas and reads its pixels there, and the address is thrown away when you choose another. The time read from the photo stays in the form; the place is a city you choose; nothing goes into the address bar.

This is held by a test, not only by good intentions. `tests/test_skyphoto.mjs` reads the page’s code and fails if it contains any way of sending data (a network request with a body, a beacon, a socket, a form post, the share sheet), or any request for a file that is not one of our own. If you have said yes to analytics, the one thing counted is that a picture was saved, with nothing about the picture.

## What it does not do

- **It does not find the sky by itself.** Services such as Astrometry.net solve a photo blind, by matching patterns of stars against an index built at every scale. For the roughly 9 000 stars visible to the eye, we estimated that index at about 6.5 MB, more than twice what the map allows for all its star tiles, before a star finder that copes with a noisy phone photo. So you name two stars instead, and the page says so.
- **It assumes an ordinary lens.** There is no model for fisheye lenses yet, and a phone’s ultra-wide camera bends the edges. The third star’s leftover shows how much.
- **It names the bright, named stars only.** It does not mark satellites or their trails, meteors or faint galaxies.
- **It does not open your photo in the 3D map**, on purpose: that link would have to carry where and when the photo was taken.

## Tips for a photo that works

- Use the main camera or the zoom, not the ultra-wide, so the stars land where a plain lens puts them.
- Rest the phone on something, or use a tripod and the camera’s night mode, so the stars are points and not streaks.
- Frame at least two or three bright stars you can recognise. A well-known figure, such as Orion’s belt or the Plough, makes the first two taps easy.
- Get away from bright lights if you can. Snap needs stars that stand out clearly from the background, and a glowing sky hides them.
- Keep the original file. A screenshot or a compressed copy may lose the time the camera wrote, and without it the page cannot place the planets; you can still type the time yourself.

> **How this article was checked.** The steps, button names and limits are from the live page and its code on 25 November 2026. The pictures come from the feature’s pull request, which drew its test photo from our own star list rather than use anyone’s picture; that is why the stars look so tidy. A real phone photo will be noisier and the fit a few pixels looser.

**Fly there in the 3D map:** [Name the stars in your photo](https://www.spaceradar.ai/sky-photo/). Free, in your browser, and the photo never leaves your device.

## Questions people ask

### Is my photo uploaded anywhere?

No. The browser opens the photo on your device and draws it on the page; nothing of it is sent to Space Radar or anyone else, and nothing is kept when you close the page. The page asks the server only for its own star lists and words, and an automated test fails if its code ever gains a way to send data.

### Which stars do I need to know?

Any two of the bright, named stars in the photo, such as Betelgeuse and Rigel in Orion or Vega and Altair in summer. If you know none, give the time, a city near you and the way the camera faced: the tool draws a rough sky that shows which bright star is likely to be which, and you confirm two of them.

### Does it work with a phone photo?

Yes, with the phone’s main camera or its zoom. An ultra-wide or fisheye lens bends straight lines, so the stars near the edges miss their places; the tool shows by how many pixels once you have named a third star.

### Why are the planets missing from my photo?

Planets and the Moon move against the stars, so the tool can draw them only when it knows when the photo was taken. It reads the time from the photo’s own data when the camera wrote it; otherwise type it in the “When it was taken” field.

## Sources

1. [Name the stars in your photo](https://www.spaceradar.ai/sky-photo/)
2. [site/js/pages/skyphoto-core.js](https://github.com/Sara-Managed-Projects/space-radar/blob/main/site/js/pages/skyphoto-core.js)
3. [tests/test_skyphoto.mjs](https://github.com/Sara-Managed-Projects/space-radar/blob/main/tests/test_skyphoto.mjs)
4. [HYG star database, v4.4](https://codeberg.org/astronexus/hyg)
5. [d3-celestial](https://github.com/ofrohn/d3-celestial)
6. [Astronomy Engine](https://github.com/cosinekitty/astronomy)
7. [Astrometry.net](https://astrometry.net/)
