Cron Expression Parser

Cron expression parser: explains each of the 5 crontab fields, lists the next 5 run times and flags invalid or Quartz-only syntax and impossible dates.

Runs in your browser. Files never leave your device.

About the Cron Expression Parser

Paste a cron expression such as 0 9 * * 1 and this cron parser explains it field by field: which minutes, hours, days of the month, months and weekdays it allows, and the next five times the job will run. Run a line through it before it goes into a crontab, a CI schedule or a hosting panel's scheduled task.

It also catches the mistakes that make a scheduled job silently never fire: values out of range, ranges written backwards, Quartz-only syntax pasted into a standard crontab, and dates that don't exist, such as 30 February.

How the cron expression is read

A standard cron expression has five fields separated by spaces: minute (0–59), hour (0–23), day of month (1–31), month (1–12 or JAN–DEC) and day of week (0–7 or SUN–SAT, where both 0 and 7 mean Sunday). Each field can be * for every value, a single number, a range such as 9-17, a list such as 1,15, or a step such as */15 or 9-17/2. These rules follow the crontab format used by Linux cron (Vixie cron and cronie).

The parser expands every field into the exact set of values it allows and prints them, so */15 in the minute field is shown as 0, 15, 30, 45 and MON-FRI as Mon–Fri. The shortcuts @hourly, @daily, @midnight, @weekly, @monthly, @yearly and @annually are expanded to their five-field form first.

The next five runs are found by stepping through the calendar day by day from the current minute. The search covers 400 years, the length of a full Gregorian calendar cycle, so a schedule with no match in that time is reported as never running.

Assumptions and limits

  • Run times are listed for a machine whose clock is set to UTC. If your server runs in another time zone, the job fires at the same clock numbers in that zone's local time, but the list itself starts from the current UTC time, so its first entry may already be past or not yet due locally, and clock-change days aren't adjusted.
  • When both day fields are restricted (neither starts with *), cron runs on days matching EITHER one, so 0 0 1,15 * 5 runs on the 1st, the 15th and every Friday. The parser says so whenever it applies.
  • A day field that starts with *, such as */2, counts as unrestricted, so then a day must match BOTH fields. This follows Vixie cron and cronie; some other schedulers treat it differently.
  • Only the standard five fields are accepted. Six- or seven-field Quartz and Spring expressions (with seconds or a year) and the ?, L, W and # characters are rejected with an explanation.
  • @reboot has no time schedule (it runs once when cron starts), so it can't be turned into run times.

Worked examples

Every 15 minutes during office hours

A typical schedule for a health check or sync job. The parser lists the exact minutes and hours it allows:

Cron: */15 9-17 * * MON-FRI

Minute:     0, 15, 30, 45 (every 15 minutes)
Hour:       9–17
Day/Month:  Every day
Month:      Every month
Day/Week:   Mon–Fri

Every other day at 02:30

30 2 */2 * * allows days 1, 3, 5 … 31 of each month. That means the job runs on the 31st and again on the 1st of the next month, two days in a row, which surprises many people who expect a strict 48-hour gap.

A schedule that never runs

0 0 30 2 * asks for midnight on 30 February. Every field is valid on its own, so cron accepts it without complaint, but the parser's next-runs list says "Never — no date matches" so you find out before you rely on it.

Common cron expressions

ExpressionWhen it runs
* * * * *Every minute
*/5 * * * *Every 5 minutes (:00, :05, :10 …)
0 * * * *At the start of every hour (same as @hourly)
0 0 * * *Every day at midnight (@daily, @midnight)
30 6 * * 1-506:30 Monday to Friday
0 9 * * 109:00 every Monday
0 0 * * 0Midnight every Sunday (@weekly)
0 0 1 * *Midnight on the 1st of each month (@monthly)
0 0 1 1 *Midnight on 1 January (@yearly, @annually)
0 3 1,15 * *03:00 on the 1st and 15th of each month

How to use the Cron Expression Parser

  1. Paste the cron expression. Type or paste five fields, or a shortcut such as @weekly, into the Input box; 0 9 * * 1 is filled in as an example.
  2. Press Process. The output updates as you type; Process runs it again, for example to refresh the next run times.
  3. Check the fields and next runs. Read each field's allowed values and the next five run times, then copy the explanation if you want it for a ticket or code review.

Frequently asked questions

What do the five fields in a cron expression mean?

In order: minute (0–59), hour (0–23), day of the month (1–31), month (1–12) and day of the week (0–7, with 0 and 7 both Sunday). A * in a field means every value, so * * * * * runs once a minute.

How do I run a cron job every 5 minutes?

Use */5 * * * *. The /5 step takes every fifth minute starting from 0, so the job runs at :00, :05, :10 and so on up to :55. For every 5 minutes only during working hours, add an hour range: */5 9-17 * * 1-5.

Why does my cron job run on more days than I expected?

Probably because both day fields are set. When day-of-month and day-of-week are both restricted, standard cron runs when either one matches, not both. 0 0 13 * 5 runs on every 13th and on every Friday, not only on Friday the 13th.

Does this cron parser support seconds or Quartz syntax?

No. It checks standard five-field crontab syntax. Quartz and Spring schedulers add a seconds field and the ?, L, W and # characters; if you paste one of those, you're told which part isn't standard so you can rewrite it.

Can I use names like MON or JAN in a cron expression?

Yes. Months accept JAN–DEC and weekdays SUN–SAT, in any case, and they also work in ranges and lists such as MON-FRI or JAN,JUL. They're shown back as short names in the explanation.

What time zone are the next run times in?

UTC. The list assumes the machine's clock is set to UTC, which is the default on most cloud servers and CI runners. If your server uses local time, the job fires at the same clock times in that zone, so read the list as a pattern rather than exact upcoming moments.

This tool runs entirely in your browser. What you enter or upload stays on your device and is never sent to our servers.