Moon phase widget
Today's Moon, on your website.
A small live Moon for astronomy clubs, schools and blogs: its phase as it looks from your town, how much is lit, its age and the next full and new Moon. Free, with no cookies and no tracking.
Moon phase by 3dsolarsystem.online
This is the code below, live, as it will look on your page.
What it shows
The Moon over your town, right now.
- The Moon drawn as it looks at this moment, its real face from NASA's maps3, lit as it is lit, south up below the equator.
- The phase by name, how much of the disc is lit and how many days since the new Moon, as the US Naval Observatory defines them.1
- The next full Moon and the next new Moon, to the minute, on the place's own clock.
- A link to that month's Moon phase calendar for anyone who wants more.
Good to know
Questions from site owners.
Is it free?
Yes. Any website can use it, with no sign-up and no fee. Copy the code and paste it into your page.
Does it track my visitors?
No. The widget sets no cookies, keeps nothing in the browser and runs no analytics. It loads two files from our site, the widget itself (15 KB) and one picture of the Moon (18 KB), and nothing from anywhere else.
Do I have to keep the credit line?
We ask you to. It is how people find the site, and it keeps the widget free. You can restyle it to suit your page, and add rel="nofollow" to its link if your site's rules ask for that.
How accurate is it?
It uses the same maths as our Moon phase pages: Jean Meeus's lunar theory2 and the US Naval Observatory's definitions of the phases, the percent lit and the Moon's age.1 Our times for the main phases agree with USNO's to within a minute and a half for every phase from 2026 to 2028.
Why is the Moon upside down for my town?
For a place south of the equator the widget turns the Moon south up, the way people there see it, so a waxing Moon is lit on the left.4
Which clock does it use?
The place's own. Today's date and the next full and new Moon are on that town's clock, summer time included.
Can I make it another size?
Pick small, medium or large here, or change the width and height in the code. The widget fills whatever frame it is given.
Does it keep itself up to date?
Yes. The words update every minute and the Moon is redrawn every ten, so a page left open stays right.
More about the Moon
- Moon phase todayThe Moon live, with this month's calendar
- Moon phase printsThe Moon from a date that matters, as a print
- For creatorsUse the 3D viewer in your videos, free with a credit
Sources
- US Naval Observatory: Phases of the Moon, and how the phases, the percent lit and the Moon's age are defined
- Jean Meeus, Astronomical Algorithms (2nd edition, 1998), chapters 47 and 48: the Moon's place, its phase and its lit fraction
- NASA's Scientific Visualization Studio, CGI Moon Kit (Ernie Wright, Noah Petro, 2019): the face the widget draws
- IAU Office of Astronomy for Education: the lunar phases seen from the Southern Hemisphere
- GeoNames, CC BY 4.0: geonames.org, the towns in the place search