Cron Expression Explainer
Translate a crontab expression into plain English and see the next five times it will run, so a misplaced asterisk is obvious before it ships.
Five fields: minute, hour, day of month, month, day of week. Try , , , .
Every 15 minutes during the hours 09:00 to 17:00, on Monday to Friday.
- Minute
- */150, 15, 30 and 45
- Hour
- 9-179 to 17
- Day of month
- *any
- Month
- *any
- Day of week
- 1-51 to 5
Next runs, in your time zone
The five fields
A crontab line starts with five fields, separated by spaces, that say when the command after them runs: minute (0 to 59), hour (0 to 23), day of month (1 to 31), month (1 to 12 or jan to dec) and day of week (0 to 7 or sun to sat, where both 0 and 7 mean Sunday).
- * matches every value of the field.
- 1,15 is a list: the 1st and the 15th.
- 9-17 is a range, ends included.
- */15 is a step: every 15th value, starting from the lowest.
- @hourly, @daily, @weekly, @monthly, @yearly are shortcuts for the common schedules.
Three mistakes this catches
- * 3 * * * does not run once at 3 am. It runs every minute from 03:00 to 03:59, sixty times. The once-a-day form is 0 3 * * *.
- 0 0 13 * 5 is not Friday the 13th. When both day fields are set, cron runs the job when either matches: every 13th, and also every Friday.
- */40 * * * * is not every 40 minutes. Steps restart each hour, so it runs at minute 0 and minute 40, with a 20 minute gap between runs.
Time zones, and what is not covered
Cron runs in the time zone of the server, which is often UTC. The run times above are shown in your browser's time zone, so shift them if the server's clock differs from yours.
This reads standard five-field crontab, the form used by cron on Linux, by Kubernetes CronJobs and by GitHub Actions schedules. It does not read the six and seven field forms of Quartz or AWS EventBridge, which add seconds and years. Everything is calculated in your browser.
More tools
- Email Security ScannerSPF · DKIM · DMARC
- .np Domain CheckerNepal · Availability
- DNS Propagation CheckerMulti-resolver · TTL
- Subnet / CIDR CalculatorCIDR · Mask · Hosts