Converter
Julian Date Converter
Enter a calendar date, a day-of-year Julian code or an astronomical JD/MJD and see every other form at once. Everything runs in your browser.
Convert
- Julian Date (JD)
- Modified JD (MJD)
- Julian Day Number
Click or tap any result to copy it.
Every format, from one input
“Julian date” is used for two very different things, so this tool always shows both. When you type a calendar date it produces:
- YYYYDDD — four-digit year followed by the day of year, e.g.
2026202for July 21, 2026. The unambiguous form, used in databases, batch records and data files. - YYDDD — two-digit year plus day of year, e.g.
26202. Common on packaging and on IBM mainframes. - Day of year (DDD) — the ordinal day, 001–365 or 001–366, on its own. The pack date on egg cartons.
- ISO ordinal date —
2026-202, the ISO 8601 spelling of the same value. - Julian Date (JD) — the astronomical continuous day count, including the fraction of the day from the UTC time you enter.
- Modified Julian Date (MJD) — JD minus 2,400,000.5, so it starts at midnight.
- Julian Day Number (JDN) — the whole-day astronomical count, equal to the JD at noon UTC.
Worked examples
Click an input to load it into the converter.
| Input | Result | Note |
|---|---|---|
| July 4, 2026 | 2026185 · 26185 · JD 2461225.5 at 00:00 UTC | Calendar date to Julian date |
| 25294 | Tuesday, October 21, 2025 | 5-digit YYDDD code |
| 2024366 | Tuesday, December 31, 2024 | Day 366 exists only in a leap year |
| 99365 | Friday, December 31, 1999 | Two-digit years 69–99 read as the 1900s |
| JD 2451545.0 | January 1, 2000, 12:00 UTC | The J2000.0 reference epoch |
| MJD 60000 | February 25, 2023, 00:00 UTC | Modified Julian Date |
Decode a Julian date you were given
Switch the input to Julian date (day-of-year) and paste a code from a product label, batch record or report. The converter accepts 7-digit, 5-digit and 3-digit forms and shows the calendar date, the day of the week and how far through the year it falls. A bare 3-digit day is read in the current year unless you change the reference year, which matters after February: day 294 is October 21 in a common year but October 20 in a leap year.
Codes on packaging are often embedded in a longer lot number. Look for a group of three digits between 001 and 366, usually with one or two year digits before it (or, at some plants, one after it). For specific layouts, use the egg carton, MRE or JD Edwards converters.
How the conversion works
For the day-of-year code, the converter adds the lengths of the months before your date to the day of the month, using a 29-day February in leap years (years divisible by 4, except century years not divisible by 400). For example, July 21 is 31 + 28 + 31 + 30 + 31 + 30 + 21 = day 202. Going the other way it subtracts month lengths until the remainder fits in a month.
For the astronomical Julian Date it uses the algorithm in Jean Meeus’s Astronomical Algorithms, which counts days from noon UTC on January 1, 4713 BC in the Julian calendar and adds the time of day as a fraction: midnight UTC is .5 and noon is .0. Dates before October 15, 1582 are read in the Julian calendar, as astronomers do.
Looking for a Julian calendar?
People mean three different things by “Julian calendar”:
- A day-of-year calendar showing each date's Julian day number. See the printable Julian date calendar for 2026 or 2027, and the perpetual day-of-year chart.
- The Julian calendar of Julius Caesar, introduced in 45 BC and replaced by the Gregorian calendar from 1582. It now runs 13 days behind the Gregorian calendar. See Julian vs. Gregorian calendar.
- The astronomical Julian Date, the continuous day count shown in the converter's astronomical results. See the Julian Day reference.
Related tools
Frequently asked questions
How do I convert a date to a Julian date?
Choose "Calendar date", enter the month, day and year, and the converter instantly shows the day-of-year code (YYYYDDD and YYDDD) plus the astronomical Julian Date, Modified Julian Date and Julian Day Number. To go the other way, switch the input to "Julian date" and paste the code.
What is today’s Julian date?
Today’s code is shown in the strip above the converter in YYYYDDD, YYDDD and 3-digit form, for your own time zone. The home page lists it in every format, with yesterday’s and the next few days’ codes.
Which Julian date format does this converter output?
All the common ones. For any input it shows the 7-digit YYYYDDD and 5-digit YYDDD day-of-year codes, the bare day of year, the ISO ordinal date, and the astronomical JD, MJD and JDN. For the JD Edwards CYYDDD form or a 4-digit MRE code, use the dedicated converters linked below.
Why does a 5-digit code come out in the 1900s?
A YYDDD code has no century, so the converter uses the POSIX pivot: 00–68 are read as 2000–2068 and 69–99 as 1969–1999. A code such as 99365 is therefore December 31, 1999. If you know the century, enter the 7-digit YYYYDDD form instead.
Can I convert a whole list of dates?
Yes. The bulk converter takes a pasted column of dates or Julian codes, converts every line and exports the result as CSV.
Are my dates sent anywhere?
No. Every calculation happens locally in your browser using JavaScript. Nothing is uploaded, logged or stored.
What date range is supported?
Any year, including BC dates for the astronomical scale (entered as astronomical years, where 0 is 1 BC and −1 is 2 BC). The astronomical algorithms follow Jean Meeus and switch from the Julian to the Gregorian calendar at the 1582 reform, so October 4, 1582 is followed by October 15, 1582.