InfyCalculator
💻

Cron Expression Calculator

Decode any 5-field cron expression into plain English and see the next five times it will run in your local timezone.

Cron expression
Loading calculator…

How it works

fields: minute (0–59) hour (0–23) day-of-month (1–31) month (1–12) day-of-week (0–6, 0/7 = Sunday) · each supports * , a-b a-b/n */n and comma lists · when both day-of-month and day-of-week are set, either match fires the job

A cron expression is five space-separated fields that together define a repeating schedule. Each field is matched against the current minute, hour, day, month and weekday; the job runs on any minute where all five match. A field can be a wildcard (*), a single value, a range (9-17), a step (*/15 means every 15th value), a range-with-step (0-30/10), or a comma list (1,15,30). One classic quirk: when both the day-of-month and day-of-week fields are restricted, the job runs when either one matches — not both — so "0 0 13 * 5" fires on the 13th and on every Friday.

Worked example

The expression */15 9-17 * * 1-5 reads as "every 15 minutes, 9:00–17:00, Monday to Friday". The minute field */15 matches :00, :15, :30 and :45; the hour field 9-17 restricts it to business hours; and 1-5 in the day-of-week field limits it to weekdays — so it fires 36 times on each working day.

Sources: crontab(5) — POSIX cron format

Frequently asked questions

What timezone are the run times shown in?

Your device's local timezone. Cron on a server uses that machine's clock (often UTC), so if you are scheduling a job on a remote host, mentally shift the times by the offset between your timezone and the server's.

Does 0 mean Sunday or Monday in the weekday field?

Sunday. The day-of-week field runs 0–6 from Sunday to Saturday, and 7 is also accepted as Sunday for compatibility. So 1-5 is Monday through Friday, and 0,6 is the weekend.

Why might a valid expression show no upcoming runs?

Because the day-of-month and month fields can describe a date that never happens, such as 30 February (0 0 30 2 *). The calculator searches a full year ahead and, finding nothing, tells you so rather than looping forever.

Related calculators

This calculator is for educational purposes. Double-check important results before acting on them.