Julian Date Converter

Convert Gregorian dates to Julian Dates (JD, JDN, MJD) and back — instantly in your browser.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

The Julian Date (JD) is the gold standard for time-stamping events in astronomy, orbital mechanics, and scientific computing. Instead of fragmented year/month/day/hour fields, a JD is a single decimal number that grows monotonically — the elapsed time between two events is just one subtraction away. This converter translates between Gregorian calendar dates (with full UTC time resolution) and the family of Julian Date quantities: JD, JDN, MJD, and J2000.0 offset.

How it works

The tool runs two directions entirely in your browser — no API calls, no rounding by a remote server.

Gregorian to JD uses the Richards integer formula to find the Julian Day Number (JDN), then adds a fractional day measured from noon UTC:

a   = floor((14 - month) / 12)
y'  = year + 4800 - a
m'  = month + 12*a - 3
JDN = day + floor((153*m' + 2) / 5) + 365*y'
          + floor(y'/4) - floor(y'/100) + floor(y'/400) - 32045

JD  = JDN + (hour - 12)/24 + minute/1440 + second/86400

The three derived quantities follow automatically:

  • MJD = JD - 2,400,000.5 — same count but starting at midnight; used in space geodesy and satellite tracking
  • J2000.0 offset = JD - 2,451,545.0 — days before or after the standard epoch 2000-01-01 12:00 UTC
  • Julian-calendar date (O.S.) — the equivalent date on the proleptic Julian calendar, useful for history before 1582

JD to Gregorian inverts the formula using the Richards reverse algorithm, splitting the integer JDN back into year, month, and day, then converting the fractional part into hours, minutes, and seconds.

Worked example

The J2000.0 epoch is one of astronomy’s most-cited reference points. Enter 2000-01-01, 12 h, 0 m, 0 s in Gregorian mode and you get:

QuantityValue
JD2451545.00000000
JDN2451545
MJD51544.50000000
J2000.0 offset0.000000 days
Day of weekSaturday
Julian calendar (O.S.)December 19, 1999

Try 1969-07-20 (Apollo 11 Moon landing day) at 20:17:40 UTC:

  • JD ≈ 2440423.345602
  • MJD ≈ 40422.845602
  • J2000.0 offset ≈ -11122.654 days (about 30.5 years before J2000)

The timeline diagram

Below the results the tool draws a compact SVG timeline from JD 0 (noon UTC, 1 Jan 4713 BC) through the present, with tick marks at the Gregorian reform (1582), the 1900 epoch, J2000.0, and the approximate current date. A blue marker shows where your chosen date falls. This gives an instant sense of scale — J2000.0 is only about 0.8% of the way along the full JD range from 0 to today.

Every calculation runs locally in your browser. No date or time information is transmitted anywhere.

Ad placeholder (rectangle)