Our Solar System

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.

Place

London

The Moon as it looks from here, and its dates on this town's clock.

Look

Dark

Size

320 × 430

Your code

<iframe src="https://3dsolarsystem.online/embed/moon/?lat=51.51&amp;lon=-0.13&amp;tz=Europe/London&amp;place=London" width="320" height="430" style="border:0;max-width:100%" loading="lazy" title="The Moon tonight in London"></iframe>
<p style="margin:6px 0 0;font:13px/1.4 system-ui,sans-serif;color:#8b8f99">Moon phase by <a href="https://3dsolarsystem.online/moon-phase/" style="color:inherit">3dsolarsystem.online</a></p>

Paste it where the Moon should go, in your page's HTML or a "custom HTML" block. Please keep the credit line under it.

What it shows

The Moon over your town, right now.

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

Sources

  1. US Naval Observatory: Phases of the Moon, and how the phases, the percent lit and the Moon's age are defined
  2. Jean Meeus, Astronomical Algorithms (2nd edition, 1998), chapters 47 and 48: the Moon's place, its phase and its lit fraction
  3. NASA's Scientific Visualization Studio, CGI Moon Kit (Ernie Wright, Noah Petro, 2019): the face the widget draws
  4. IAU Office of Astronomy for Education: the lunar phases seen from the Southern Hemisphere
  5. GeoNames, CC BY 4.0: geonames.org, the towns in the place search