How we chose the year
Julian Date Converter for Lot Codes and Best-By Dates
Turn a Julian lot code like 4297 or 24297 into a calendar date and back, see today's Julian date, work out best-by dates, or convert a whole list at once. Free, no signup.
Runs in your browser. Nothing you enter or paste is sent to OrderSync.
Today's Julian date
26296
Day 296 of 365, Friday, October 23, 2026. 69 days left. UTC date until the page loads.
- YYYYDDD
- 2026296
- YDDD
- 6296
- DDD
- 296
- CYYDDD
- 126296
- Julian Day
- 2461337
Calendar date
YDDD: 2024 day 297
Wednesday, October 23, 2024
2024-10-23 · day 297 of 366 (2024 is a leap year) · 730 days ago
How the code was read
- 4year
- 297day
Read as YDDD: 2024, day 297.
Julian date codes
Day 296 of 365
Friday, October 23, 2026 is day 296 of 365, with 69 days left in the year.
| Format | Code | Used for | Copy |
|---|---|---|---|
| YYDDD | 26296 | Most lot codes | |
| YDDD | 6296 | 4-digit lot codes, military Julian date | |
| YYYYDDD | 2026296 | Excel, WMS and mainframe files | |
| DDD | 296 | Day of the year only | |
| CYYDDD | 126296 | JD Edwards, IBM i (AS/400) | |
| DDDYY | 29626 | Day first lot codes | |
| ISO ordinal | 2026-296 | ISO 8601 ordinal date | |
| Julian Day Number | 2461337 | Astronomy: the day starting at noon UT |
Or paste a spreadsheet column: we use the first cell with digits on each line and skip a header row. Up to 10,000 codes; nothing is uploaded.
Adds a best-by column: production date plus this many days.
No codes yet
Best-by date
Best by Oct 23, 2027
Saturday, October 23, 2027
Oct 23, 2026 plus 365 days. That is in 365 days, and 365 days after production.
| Format | Code | Used for | Copy |
|---|---|---|---|
| YYDDD | 27296 | Most lot codes | |
| YDDD | 7296 | 4-digit lot codes, military Julian date | |
| YYYYDDD | 2027296 | Excel, WMS and mainframe files |
Julian date calendar 2024
Day of the year for every date. 2024 is a leap year: 366 days, and from March 1 every day is one higher than in other years.
Julian date calendar 2024 (leap year, 366 days) · ordersync.io/tools/julian-date-converter
| Day | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 001 | 032 | 061 | 092 | 122 | 153 | 183 | 214 | 245 | 275 | 306 | 336 |
| 2 | 002 | 033 | 062 | 093 | 123 | 154 | 184 | 215 | 246 | 276 | 307 | 337 |
| 3 | 003 | 034 | 063 | 094 | 124 | 155 | 185 | 216 | 247 | 277 | 308 | 338 |
| 4 | 004 | 035 | 064 | 095 | 125 | 156 | 186 | 217 | 248 | 278 | 309 | 339 |
| 5 | 005 | 036 | 065 | 096 | 126 | 157 | 187 | 218 | 249 | 279 | 310 | 340 |
| 6 | 006 | 037 | 066 | 097 | 127 | 158 | 188 | 219 | 250 | 280 | 311 | 341 |
| 7 | 007 | 038 | 067 | 098 | 128 | 159 | 189 | 220 | 251 | 281 | 312 | 342 |
| 8 | 008 | 039 | 068 | 099 | 129 | 160 | 190 | 221 | 252 | 282 | 313 | 343 |
| 9 | 009 | 040 | 069 | 100 | 130 | 161 | 191 | 222 | 253 | 283 | 314 | 344 |
| 10 | 010 | 041 | 070 | 101 | 131 | 162 | 192 | 223 | 254 | 284 | 315 | 345 |
| 11 | 011 | 042 | 071 | 102 | 132 | 163 | 193 | 224 | 255 | 285 | 316 | 346 |
| 12 | 012 | 043 | 072 | 103 | 133 | 164 | 194 | 225 | 256 | 286 | 317 | 347 |
| 13 | 013 | 044 | 073 | 104 | 134 | 165 | 195 | 226 | 257 | 287 | 318 | 348 |
| 14 | 014 | 045 | 074 | 105 | 135 | 166 | 196 | 227 | 258 | 288 | 319 | 349 |
| 15 | 015 | 046 | 075 | 106 | 136 | 167 | 197 | 228 | 259 | 289 | 320 | 350 |
| 16 | 016 | 047 | 076 | 107 | 137 | 168 | 198 | 229 | 260 | 290 | 321 | 351 |
| 17 | 017 | 048 | 077 | 108 | 138 | 169 | 199 | 230 | 261 | 291 | 322 | 352 |
| 18 | 018 | 049 | 078 | 109 | 139 | 170 | 200 | 231 | 262 | 292 | 323 | 353 |
| 19 | 019 | 050 | 079 | 110 | 140 | 171 | 201 | 232 | 263 | 293 | 324 | 354 |
| 20 | 020 | 051 | 080 | 111 | 141 | 172 | 202 | 233 | 264 | 294 | 325 | 355 |
| 21 | 021 | 052 | 081 | 112 | 142 | 173 | 203 | 234 | 265 | 295 | 326 | 356 |
| 22 | 022 | 053 | 082 | 113 | 143 | 174 | 204 | 235 | 266 | 296 | 327 | 357 |
| 23 | 023 | 054 | 083 | 114 | 144 | 175 | 205 | 236 | 267 | 297 | 328 | 358 |
| 24 | 024 | 055 | 084 | 115 | 145 | 176 | 206 | 237 | 268 | 298 | 329 | 359 |
| 25 | 025 | 056 | 085 | 116 | 146 | 177 | 207 | 238 | 269 | 299 | 330 | 360 |
| 26 | 026 | 057 | 086 | 117 | 147 | 178 | 208 | 239 | 270 | 300 | 331 | 361 |
| 27 | 027 | 058 | 087 | 118 | 148 | 179 | 209 | 240 | 271 | 301 | 332 | 362 |
| 28 | 028 | 059 | 088 | 119 | 149 | 180 | 210 | 241 | 272 | 302 | 333 | 363 |
| 29 | 029 | 060 | 089 | 120 | 150 | 181 | 211 | 242 | 273 | 303 | 334 | 364 |
| 30 | 030 | 090 | 121 | 151 | 182 | 212 | 243 | 274 | 304 | 335 | 365 | |
| 31 | 031 | 091 | 152 | 213 | 244 | 305 | 366 |
How to Read a Julian Date Code
A Julian date code is the day of the year, 001 to 365 (366 in a leap year), printed with some or all of the year. Manufacturers use it as the production or pack date in lot codes because it is short and sorts in date order. 24297 is the 297th day of 2024: October 23, 2024.
| Format | Example | Reads as | Where you see it |
|---|---|---|---|
| YYDDD | 24297 | 2024, day 297 | Most food and beverage lot codes |
| YDDD | 4297 | 2024, day 297 | Short lot codes, military Julian date |
| YYYYDDD | 2024297 | 2024, day 297 | Excel, WMS and mainframe files |
| DDD | 297 | Day 297 of a year you supply | Pack lines that print the year elsewhere |
| CYYDDD | 124297 | 2024, day 297 | JD Edwards and IBM i (AS/400) |
| YY-DDD | 24-297 | 2024, day 297 | Store and bulk-bin labels |
Letters and extra digits around the date usually name the plant, line or shift. In L24297 B2, the date is 24297 and L and B2 identify the line and batch. The converter reads the digits and shows the rest separately.
Which Year Is a 4-Digit Code?
A YDDD code such as 4297 carries only the last digit of the year, so it fits 2014, 2024 and 2034 equally. For a production date the converter takes the most recent year ending in that digit, since nothing is made in the future. For a best-by date it takes the year within five years of today. When the result is still in doubt, it says so and lists the other decade, so a receiving clerk can check it against the case.
Leap Years Move Every Date After February
Day 60 is March 1 in 2026 but February 29 in 2024. Printed Julian calendars come in two versions for this reason, and using the wrong one puts every spring and summer code a day out. The calendar on this page switches with the year you pick, and day 366 is rejected in any year that does not have one.
Lot Codes, Best-By Dates and Barcodes
The USDA calls Julian codes closed or coded dates: packing numbers for tracking and recalls, not a safety date for the shopper. On a GS1-128 case label the same information is in plain YYMMDD form under application identifiers (10) batch or lot, (11) production date, (15) best before and (17) expiry, listed in the GS1 application identifier reference. Foods on the FDA Food Traceability List also need a traceability lot code under the FSMA 204 traceability rule.
On an 856 ship notice the lot travels in the LIN segment with qualifier LT and the expiration date in DTM*036; check one with the EDI Inspector. Build the case label itself with the SSCC label generator, check the GTIN on it with the check digit calculator, and convert cases to eaches with the unit of measure converter.
The Astronomical Julian Day
Astronomers count days continuously from noon UTC on January 1, 4713 BC, so January 1, 2000 at noon is Julian Day 2451545. It has nothing to do with lot codes, but it shares the name. The Julian Day tab converts it both ways, and the US Naval Observatory converter covers dates before 1900.
Frequently Asked Questions
What is today's Julian date?
It is shown at the top of this page in every common format, using your local date. In the YYDDD format it is the last two digits of the year followed by the day of the year, so October 23, 2026 is 26296: day 296 of 2026. The 3-digit version is just the day (296), and the 4-digit version is the last digit of the year plus the day (6296).
How do I read a Julian date code like 4297 or 24297?
The last three digits are the day of the year, from 001 for January 1 to 365 (or 366 in a leap year) for December 31. The digits in front are the year. 24297 is 2024, day 297, which is October 23, 2024. 4297 has only the last digit of the year, so it is day 297 of a year ending in 4: 2024 for anything made recently.
Is a Julian date code the expiration date?
Usually not. On most food, beverage and consumer goods the Julian code is the production or pack date, and the best-by or use-by date is printed separately in plain text. To work out a best-by date from a production code, add the product's shelf life in the Shelf life tab.
How do leap years change Julian dates?
In a leap year February has 29 days, so every date from March 1 onward is one day number higher: March 1 is day 61 instead of 60, and December 31 is day 366. A code ending in 366 is only valid in a leap year such as 2024 or 2028. The converter applies this automatically.
What is a JD Edwards Julian date (CYYDDD)?
JD Edwards and IBM i store dates as six digits: a century digit (0 for the 1900s, 1 for the 2000s), the 2-digit year and the day of the year. 126296 is 2026, day 296. Pick CYYDDD in the format list, or let Detect format read 6-digit codes that way.
Is a Julian date the same as the Julian calendar?
No. A Julian date code on a product is the day of the year in the normal (Gregorian) calendar. Astronomers use the Julian Day Number, a count of days since January 1, 4713 BC, where January 1, 2000 at noon is 2451545. The Julian calendar is the older calendar Europe used before 1582. This page converts the first two.
Can I convert a whole list of lot codes?
Yes. Paste a column of codes or open a CSV in the Bulk codes tab, up to 10,000 at a time. Each code gets a calendar date, the format it was read as, any other possible reading, and an optional best-by date, and you can download the results as CSV or Excel.
Is my data uploaded?
No. Every conversion, including bulk lists and CSV files, runs in your browser. Nothing you type or open is sent to OrderSync.
Related Free Tools
GS1 Check Digit Calculator
Validate or calculate check digits for UPC, EAN, GTIN-14, SSCC and GLN, one at a time or 10,000 from a CSV.
SSCC Label Generator
Build SSCC-18 numbers from your GS1 company prefix and print GS1-128 carton labels as a 4x6 or A6 PDF, or straight from an 856.
Unit of Measure Codes
Look up X12 and UN/ECE unit of measure codes (EA, CA, PL, KGM, XCS) and convert cases, inner packs and eaches.
ITF-14 Barcode Generator
Turn a UPC or GTIN-14 into a true-size ITF-14 case barcode with bearer bars. Download SVG or PDF.