Moonrise

Put the moon on your site

A small box for your own website that shows tonight's moon for your town: the phase, when the moon rises and which way to look, and the date of the next full moon. It keeps itself up to date. It's free, and adding it takes one line of code.

2. Choose a look

How it will look

Adding it to your site

Most website builders have a block for pasting in code. It's usually called HTML, Code or Embed. Add one where you want the moon to appear, paste the code into it, and save.

The box is 360 pixels wide and 150 high, and shrinks to fit a narrower space. To change its size, change the width and height numbers in the code. It works best between 280 and 480 pixels wide.

Light and dark

"Match the visitor's device" shows the dark box to people whose phone or computer is set to dark mode, and the light box to everyone else. Most sites with a dark mode follow the same setting, so the two will match. If your site has its own day and night switch, the box can't see it and keeps following the device. In that case, choose whichever look suits your site best.

What it shows

The times are for the town you chose, in that town's own time zone, whoever is looking at your page. Click the box, and Moonrise opens in a new tab with that town's full night: the path of the moon across the sky, the month ahead, and reminders.

Privacy

The box sets no cookies, stores nothing on your visitors' devices, and never asks for their location. Like the rest of Moonrise, it counts how many times it's shown and which site it's shown on, without identifying anyone. Privacy and terms has the details.

Using it

It's free for any website, with no sign-up. Please leave the box as it is, link included. If you'd like a different size or look, or something isn't working, tell us.