Skip to content
UniKit

Shelf-life & expiry tracker

Paste an inventory list (name, production date, shelf life or expiry date) plus a reference date to compute expiry dates, remaining days and expired/due-soon status, sorted by urgency with a summary. Everything runs offline.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Inventory list

One item per line: `name | produced | shelf life` or `name | expiry date`. Separators can be |, English comma, Chinese comma or tab; lines starting with # are ignored. Shelf life accepts 180天 / 3周 / 6个月 / 2年.

Expiry list

Sorted by remaining days, with a summary line at the end.

面包: expires 2025-12-31 (expired 1 day ago) · produced 2025-12-01 · shelf life 30天
酸奶: expires 2026-01-10 (9 days left) · produced 2025-12-20 · shelf life 21天
牛奶: expires 2026-03-03 (61 days left) · produced 2025-09-04 · shelf life 180天
饼干: expires 2026-05-01 (120 days left)
4 items · expired 1 · due within 30 days 1 · expiring today 0 · fine 2 · reference date 2026-01-01

4 items · expired 1 · due within 30 days 1 · expiring today 0 · fine 2 · earliest 2025-12-31 · latest 2026-05-01

What this tool does

  • Organize shelf-life lists for the fridge, medicine cabinet or warehouse: paste `name | produced | shelf life` and get expiry dates plus an urgency sort
  • Flag items that are about to expire by choosing a reference date and a warning threshold

Example

Input

牛奶 | 2025-09-04 | 180天
面包 | 2025-12-01 | 30天
酸奶 | 2025-12-20 | 21天
饼干 | 2026-05-01

Output

面包: expires 2025-12-31 (expired 1 day ago) · produced 2025-12-01 · shelf life 30天
酸奶: expires 2026-01-10 (9 days left) · produced 2025-12-20 · shelf life 21天
牛奶: expires 2026-03-03 (61 days left) · produced 2025-09-04 · shelf life 180天
饼干: expires 2026-05-01 (120 days left)
4 items · expired 1 · due within 30 days 1 · expiring today 0 · fine 2 · reference date 2026-01-01

Reference date 2026-01-01, warn threshold 30 days. The product names stay as typed; the last line is the summary.

Frequently asked questions

How is the expiry date calculated, and can it differ from the package?

Expiry date = production date + shelf life. Day and week units add days directly; months and years advance by whole calendar months and clamp to the last day of the target month (2024-01-31 plus one month becomes 2024-02-29). Some manufacturers print "best before the day before expiry"; this tool does not subtract a day, so follow the package when it disagrees.

Which day counts as "today"? Does it read the system clock?

It never reads the system clock. Every remaining-day figure is measured from the Reference date field, which defaults to the fixed value 2026-01-01 — change it to the real date when you need a real deadline. That keeps the same list reproducible on any device and at any time.

What input format is supported?

One item per line, in either `name | produced | shelf life` or `name | expiry date` form. Separators may be a pipe, an English comma, a Chinese comma or a tab; blank lines and lines starting with # are ignored. Dates must be written as 2026-01-01, and shelf life accepts 180天, 3周, 6个月, 2年 (also 180 d / 6 m). Invalid lines report their line number.

How do sorting and the threshold work?

The default sort is ascending remaining days (most urgent first); you can switch to name or input order. The warning threshold defaults to 30 days: remaining days less than or equal to it count as due soon, zero counts as expiring today and a negative number as expired N days ago. The list never leaves the browser and is gone when you close the page.

Keywords:shelf life calculatorexpiry trackerbest beforedate calculator

Related tools