duration.tools

Cron Expression Builder

Point, click, get the crontab line.

Free, no sign-upRuns in your browser — nothing is uploadedUpdated

Cron expression
0 9 * * 1-5
At 9:00 AM, Monday through Friday

Field order: minute · hour · day of month · month · day of week (0 = Sunday).

Start from a preset or type each field's pattern and watch the five-field cron expression assemble itself, with a plain-English readback so you can confirm “0 9 * * 1-5” really means weekday mornings at 9.

Common cron expressions

Cron expressionRuns
* * * * *Every minute
*/5 * * * *Every 5 minutes
*/15 * * * *Every 15 minutes
0 * * * *Every hour, on the hour
0 */6 * * *Every 6 hours
0 0 * * *Every day at midnight
0 9 * * 1-5Weekdays at 09:00
0 0 * * 0Every Sunday at midnight
0 0 1 * *First day of every month at midnight
0 0 1 1 *Once a year, 1 January at midnight

Cron syntax in one minute

A standard cron expression has five fields separated by spaces: minute, hour, day of month, month, day of week. Each field takes a number, * (every value), a range like 1-5, a list like 1,15, or a step like */10 (every tenth value).

Reading “30 2 * * 6” left to right: minute 30, hour 2, any day of month, any month, Saturday — so 02:30 every Saturday. Cron uses the server's time zone unless the scheduler says otherwise.

Common gotchas

Day of week numbering starts at 0 for Sunday (7 is also Sunday in most implementations). When both day-of-month and day-of-week are restricted, standard cron runs on days matching either one, not both. And jobs scheduled between 01:00 and 03:00 can run twice or not at all on daylight-saving change nights.

Some platforms extend the format: Quartz and Spring add a seconds field at the front, and AWS EventBridge adds a year field and uses ? for “no specific value”. This builder writes standard five-field cron, as used by crontab, Kubernetes CronJobs and GitHub Actions.

How to use it

  1. 1.Pick a preset, or set each field's pattern.
  2. 2.Read the live English description of the schedule.
  3. 3.Copy the finished cron expression.

Questions people ask

What do the five fields mean?
In order: minute (0–59), hour (0–23), day of month (1–31), month (1–12), day of week (0–6, Sunday = 0). An asterisk means “every”.
How do day-of-month and day-of-week interact?
In standard cron, when both are restricted the job runs when either matches — a common surprise. Restrict only one of the two unless you want that OR behavior.
What is the cron expression for every 5 minutes?
*/5 * * * *. The */5 in the minute field means every fifth minute — 00, 05, 10 and so on — of every hour.
How do I run a cron job every weekday at 9 AM?
0 9 * * 1-5: minute 0, hour 9, any day of month, any month, Monday (1) through Friday (5).