Julian Day Number Converter
Convert a calendar date to or from its Julian day number.
How the Julian Day Number Converter Works
The Julian Day Number Converter turns a calendar date into the Julian Day Number (JDN), a continuous count of days since 1 January 4713 BC in the Julian calendar.
Enter a date
Enter a Gregorian calendar date.
Shift the year
The formula treats January and February as months 13 and 14 of the previous year.
Apply the integer formula
The converter combines year, month and day terms into 1 integer.
Read the JDN
The result is the JDN for noon Universal Time (UT) on that date.
How the Count Is Calculated
The Julian Day Number formula for Gregorian dates uses integer division.
a = floor((14 − month) ÷ 12)
y = year + 4800 − a
m = month + 12a − 3
JDN = day + floor((153m + 2) ÷ 5) + 365y + floor(y ÷ 4) − floor(y ÷ 100) + floor(y ÷ 400) − 32045- JDN
- Julian Day Number, an integer day count.
- JD
- Julian Date, JDN plus the fraction of the day since noon UT.
- MJD
- Modified Julian Date = JD − 2,400,000.5, starting 17 November 1858.
Example: 1 January 2000 has JDN 2,451,545. 4 December 2026 has JDN 2,461,379, which is 9,834 days later.
Worked Examples
The table lists Julian Day Numbers for reference dates.
| Gregorian date | JDN | Note |
|---|---|---|
| 17 Nov 1858 | 2,400,001 | MJD 0 starts at midnight |
| 1 Jan 1970 | 2,440,588 | Unix epoch |
| 1 Jan 2000 | 2,451,545 | J2000 epoch |
| 1 Jan 2026 | 2,461,042 | |
| 4 Dec 2026 | 2,461,379 | |
| 1 Jan 2027 | 2,461,407 |
What the Tool Measures
A Julian Day Number Converter is a tool that converts a calendar date into a single day count used by astronomers.
Joseph Scaliger proposed the Julian Period in 1583. The JDN removes months, years and calendar reforms, so the gap between 2 dates is a simple subtraction.
The JDN is not the same as the Julian calendar, and the JDN is not the day-of-year number some industries call a "Julian date".
When to Use This Tool
There are 4 main uses of the Julian Day Number Converter, including astronomy and software epochs.
Astronomy
Astronomers time observations and variable-star cycles in JD.
Satellite tracking
Orbit files use MJD timestamps.
Software conversion
Developers convert between Unix time and JD (JD = Unix days + 2,440,587.5).
Historical spans
Researchers measure gaps between ancient dates across calendar changes.