Skip to content
All tools
English

Cron expression explainer

Find out what "*/15 9-17 * * 1-5" really means and when it will run next, before it runs in production.

Your data never leaves your device

Five fields: minute hour day-of-month month day-of-week, or @daily, @hourly…

Fields

0–59

0–23

1–31

1–12 or JAN–DEC

0–6 or SUN–SAT (7 = Sunday)

Show times in

How to use it

  1. Paste or pick

    Type an expression, or start from a preset such as "every weekday at 9".

  2. Read it in words

    The schedule is described in plain language, field by field.

  3. Check the next runs

    Compare your local time with UTC: most servers and CI runners use UTC.

The five fields

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–6 or SUN–SAT, with 7 also meaning Sunday). Each field accepts:

  • * every value; 5 one value; 1,15 a list; 9-17 a range.
  • */15 every 15th value from the start; 5/20 every 20th starting at 5; 9-17/2 every other hour in a range.

Shortcuts: @hourly, @daily, @weekly, @monthly, @yearly.

The day-of-month / day-of-week trap

If you restrict both day fields, classic cron runs when either matches, not both. 0 0 13 * 5 runs on every 13th and every Friday, not only on Friday the 13th. The next-run list shows this so it does not surprise you.

Time zones

Cron uses the time zone of the machine or service that runs it. GitHub Actions schedules and most cloud schedulers use UTC; a Linux server uses its system zone unless CRON_TZ is set. Switch the next-run list between your local time and UTC to see the difference. Need to convert a log time? Use the timestamp converter.

What this tool does not cover

Quartz and Spring use six or seven fields (with seconds and year) and extra symbols such as L, W and #. Those are not standard cron and are rejected here with an explanation.

Frequently asked questions

How do I run a job every 5 minutes?
*/5 * * * * runs at minute 0, 5, 10 … of every hour. To run every 5 minutes only during working hours on weekdays: */5 9-17 * * 1-5.
Why did my GitHub Actions schedule run at the wrong hour?
GitHub runs schedules in UTC. If you are in Cairo (UTC+2), 0 9 * * * runs at 11:00 local time. Switch the next runs to UTC to check.
Is Sunday 0 or 7?
Both. Standard cron accepts 0 and 7 for Sunday; you can also write SUN.
Can cron run every 30 seconds?
Not with standard cron; its smallest unit is one minute. Use a systemd timer, a loop in your job, or a scheduler with a seconds field.