Julian Date Converter

A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call

Free Julian date converter. Convert a date to the ordinal Julian date (YYDDD or YYYYDDD) used on labels and logs, or to the astronomical Julian Day, and back.

YYDDD
0
YYYYDDD
0
Julian Day (JD)
0
Modified JD
0
Days left in year
0

Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.

How to use the Julian date converter

  1. Choose the direction: a calendar date to Julian, or a Julian date (YYDDD or YYYYDDD) back to a calendar date.
  2. For date to Julian, pick the date and, optionally, a time in UTC (24-hour format, such as 12:00).
  3. For Julian to date, type the Julian date, such as 24366 or 2024366.
  4. Read the results. The Julian date converter shows the day of the year, the short ordinal date (YYDDD), the long form (YYYYDDD), the astronomical Julian Day (JD), the Modified Julian Date (MJD) and the days left in the year.

It starts with today's date, so you can see today's Julian date straight away.

Two kinds of "Julian date"

The term "Julian date" is used for two quite different things, which causes a lot of confusion. The Julian date converter shows both.

1. Ordinal date (year + day of year)

In manufacturing, food packaging, logistics, the military and many computer systems, a "Julian date" usually means the year followed by the day of the year (1 to 365, or 366 in leap years):

  • YYDDD: 24366 = day 366 of 2024 = 31 December 2024.
  • YYYYDDD: 2024366, the same date with a four-digit year.
  • YYYY-DDD: 2024-366, the ISO 8601 ordinal date format.

Food and drink producers often print this code on packaging to show the production date. For example, 25032 would be 1 February 2025 (day 32). Some manufacturers use only the last digit of the year, such as 5032, so check the format your supplier uses.

Strictly speaking, this is an ordinal date, but "Julian date" is the common name in industry.

2. Julian Day (astronomy)

In astronomy, the Julian Day (JD) is a continuous count of days since noon Universal Time on 1 January 4713 BC (in the proleptic Julian calendar). It was designed so astronomers could calculate the time between events without dealing with months, years and calendar changes.

  • 1 January 2000 at 12:00 UTC is JD 2,451,545.0.
  • Julian Days start at noon, not midnight, which suited astronomers observing at night. So midnight UTC is always a ".5" value.

The Modified Julian Date (MJD) subtracts 2,400,000.5, giving smaller numbers that start at midnight: MJD = JD − 2,400,000.5. It's widely used in space science and satellite tracking.

The Julian Day count was proposed by Joseph Scaliger in 1583. Despite the name, it isn't directly connected to the Julian calendar used before the Gregorian calendar.

How to work out the day of the year

Add the days in each full month before your date, then add the day of the month:

Month Days Day number of the 1st (non-leap year)
January 31 1
February 28 (29) 32
March 31 60
April 30 91
May 31 121
June 30 152
July 31 182
August 31 213
September 30 244
October 31 274
November 30 305
December 31 335

In a leap year, add one to every day number from 1 March onwards. 15 March 2025 is 59 + 15 = day 74; in 2024 (a leap year) it's day 75. Our leap year checker tells you whether a year has 366 days.

Converting a Julian (ordinal) date back to a calendar date

Count forward from 1 January. Day 200 in a non-leap year: 1 July is day 182, so day 200 is 18 days later, 19 July. The Julian date converter does this for you, including leap years.

Two-digit years

With YYDDD, the century is ambiguous. The converter reads 00 to 69 as 2000 to 2069, and 70 to 99 as 1970 to 1999, a common convention. Use the four-digit format if you need to be certain.

Where Julian dates are used

  • Food production and packaging: lot codes and production dates.
  • Manufacturing and warehousing: batch numbers, inventory and shelf-life tracking.
  • The US military and government: document numbers and logistics.
  • Mainframes and older software: compact date storage.
  • Astronomy and space science: JD and MJD for observations and orbits.
  • Agriculture and environmental science: "day of year" for planting, weather and climate data.

Julian dates in spreadsheets

In Excel or Google Sheets, with a date in A1:

  • Day of year: =A1-DATE(YEAR(A1),1,0)
  • YYYYDDD: =YEAR(A1)*1000+(A1-DATE(YEAR(A1),1,0))
  • YYDDD: =TEXT(A1,"yy")&TEXT(A1-DATE(YEAR(A1),1,0),"000")

Our week number calculator and unix timestamp converter handle other date formats used in business and computing.

A worked example

Priya manages stock at a small food company. A supplier's batch code reads 25213, and she needs to know the production date and whether it's within a 90-day use-by window.

In the Julian date converter, she chooses "Julian → date" and enters 25213: day 213 of 2025 is 1 August 2025. Using the days from today calculator, she adds 90 days to get 30 October 2025 as the last use date.

Her colleague, an amateur astronomer, uses the same converter to find that 1 August 2025 at 21:30 UTC is JD 2,460,889.396.

Who uses a Julian date converter

Warehouse, quality and production staff use it to read and write batch codes. Food businesses use it for traceability. Military and government staff use it for documents and logistics. Astronomers and scientists use JD and MJD for observations, and programmers use it to convert between date formats.

Need more customers from Google?

This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit manages Google Ads for small and mid-size businesses, and only Google Ads. We check your account before we ever get on a call, then fix the structure, the keywords, the tracking and the ads, with month-to-month terms and no long contract. Book a free audit call.

Julian dates in programming

Many programming languages can produce ordinal dates directly:

  • Python: date.today().strftime("%y%j") gives YYDDD, and "%Y%j" gives YYYYDDD. %j is the day of the year as a three-digit number.
  • SQL: many databases support DAYOFYEAR(date) or EXTRACT(DOY FROM date).
  • JavaScript: there's no built-in format, but the day of the year is the number of days since 1 January plus one, which is what the Julian date converter calculates.
  • Unix shells: date +%y%j prints today's YYDDD date.

For the astronomical Julian Day, a common formula is JD = Unix time ÷ 86,400 + 2,440,587.5, since the Unix epoch (1 January 1970, 00:00 UTC) is JD 2,440,587.5. Our unix timestamp converter gives the Unix time for any date.

Julian calendar versus Julian date

The Julian calendar, introduced by Julius Caesar in 46 BC, had a leap year every four years. It was replaced by the Gregorian calendar, starting in 1582 in some countries and as late as the 20th century in others, because the Julian calendar's average year was slightly too long. The Julian Day and the industrial "Julian date" are both unrelated to that calendar, despite the shared name. The Julian date converter uses the Gregorian calendar for all calendar dates.

Checking food and product codes

If you're reading production codes on packaging, remember:

  • Formats vary by manufacturer. Some use YYDDD, some YDDD (one-digit year), and some put plant or line codes before or after the date.
  • A production date isn't the same as a best-before or use-by date.
  • If in doubt, ask the manufacturer how to read their codes.

Julian dates and leap years

Because leap years add a day at the end of February, every ordinal date from 1 March onwards is one higher in a leap year. Day 60 is 1 March in an ordinary year but 29 February in a leap year, and day 366 exists only in leap years. The Julian date converter accounts for this automatically, and rejects day numbers that don't exist in the year you enter.

Sources and further reading

  • Julian day on Wikipedia: the astronomical day count, JD and MJD.
  • Ordinal date on Wikipedia: year and day-of-year formats, including ISO 8601.
  • US Naval Observatory: Julian date converter, the official astronomical conversion service.

Frequently asked questions

What is today's Julian date?

Open the Julian date converter: it starts with today's date and shows the YYDDD and YYYYDDD formats and the astronomical Julian Day.

How do I read a Julian date like 24123?

The first two digits are the year (2024) and the last three are the day of the year (123), which is 2 May 2024.

What is the difference between a Julian date and a Julian Day?

In industry, "Julian date" usually means year + day of year. In astronomy, the Julian Day is a continuous count of days since 4713 BC.

Why does the Julian Day start at noon?

It was designed for astronomers, so that a night's observations fall on the same Julian Day.

What day of the year is it today?

The Julian date converter shows it, along with the number of days left in the year.

Is the Julian date converter free?

Yes. It's free, needs no sign-up, and works in your browser.

Free PPC audit

See where your ad budget leaks.

We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.

Book a free audit call 30-minute call · Free · The audit is yours to keep