Date to Julian Day Converter
Convert any calendar date to Julian Day Number (JDN) and Modified Julian Day (MJD)
Drop in a Gregorian calendar date and get the Julian Day Number (JDN) plus Modified Julian Day (MJD) back instantly — with a step-by-step formula breakdown you can verify or copy into your own code. And everything runs in your browser. Nothing gets uploaded.
How It Works
The tool uses the standard astronomical algorithm for converting Gregorian dates to Julian Day Numbers. It adjusts for the irregular month lengths and leap-year cycles, then adds the day count from the Julian Period epoch (January 1, 4713 BC). The MJD is simply JDN minus 2,400,000.5 — a shorter number that starts at midnight instead of noon.
Examples
The Moon Landing
Checking the Julian Day for a well-known historical date.
July 20, 1969
JDN: 2440423
MJD: 40422.5
Unix Epoch Start
The date every programmer knows — January 1, 1970. Useful when bridging Unix timestamps and Julian Day systems in the same pipeline.
January 1, 1970
JDN: 2440588
MJD: 40587.5
Today's Date for a Satellite Log
Satellite tracking systems commonly tag observations with MJD. Quick sanity check.
April 2, 2026
JDN: 2461131
MJD: 61130.5
Who Uses This
Convert observation dates to JDN for ephemeris calculations and star catalogs.
Bridge between Unix timestamps, ISO dates, and Julian Day when merging data from different systems.
Tag orbit data with MJD — the standard time reference in NORAD TLE files.
Pin down exact day counts between ancient events across different calendar systems.
Common Mistakes
They share the word "Julian" but are completely different things. The Julian Day is a continuous day count used in astronomy. The Julian Calendar is the old Roman calendar replaced by the Gregorian in 1582. Mixing them up leads to wrong dates fast.
The Julian Day Number ticks over at noon UTC, not midnight. If you need midnight-based counting, use the Modified Julian Day instead. Satellite tracking and most civil applications expect MJD for exactly this reason.
Dates before October 15, 1582 fall under the Julian Calendar, not the Gregorian. The conversion formula is different for each. This tool uses the Gregorian algorithm, so be careful with pre-1582 dates — you might be off by several days.
Technical Details
- Processing: 100% client-side — nothing leaves your browser
- Browser Support: Chrome, Firefox, Safari, Edge
- Algorithm: Standard Gregorian-to-JDN conversion (Meeus, Astronomical Algorithms)
- Output Formats: Julian Day Number (integer) and Modified Julian Day (decimal)
- Date Range: Any valid Gregorian calendar date
Frequently Asked Questions
What is the Julian Day Number?
It's a running count of days starting from January 1, 4713 BC in the Julian Calendar (or November 24, 4714 BC Gregorian). Astronomers picked this absurdly old start date so that every recorded historical event gets a positive number. Today's JDN is somewhere around 2,461,131.
What is Modified Julian Day and how is it different?
MJD equals JDN minus 2,400,000.5. Two differences from regular JDN: the number is shorter (easier to work with) and the day starts at midnight instead of noon. Most satellite tracking systems and the International Atomic Time standard use MJD.
Can I convert Julian Day back to a calendar date?
Yes, the math works both ways. The reverse formula takes a JDN and produces year, month, and day. Check the related tools section — there may be a dedicated reverse converter available.
Why does the Julian Day start at noon?
Astronomers work at night. Starting the day at noon means an entire night of observations falls on the same Julian Day — no awkward date change at midnight while you're in the middle of recording data. It is a practical choice from the 1800s that stuck around.
Is my date data sent to a server?
No. The conversion happens entirely in JavaScript inside your browser. Nothing gets uploaded, logged, or stored. Close the tab and it's gone.