Skip to content

Cron Expression Explainer

Type a standard five-field cron expression, minute, hour, day of month, month and day of week, and get a plain English sentence that says when it runs, field by field, plus the next five run times in your browser's time zone. It understands the star, comma lists, dash ranges, slash steps and the names JAN to DEC and SUN to SAT. A wrong value gets a precise message that names the field. When both the day of month and the day of week are restricted, the job runs when either one matches, and the page says so.

Runs

Every 15 minutes.

Field by field

FieldYou wroteMatches
Minute (0-59)*/150, 15, 30, 45
Hour (0-23)*0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23
Day of month (1-31)*1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, … (31 values)
Month (1-12)*Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec
Day of week (0-7)*Sun, Mon, Tue, Wed, Thu, Fri, Sat

Next 5 runs

Calculating…

How it works

  1. Type or paste the five fields separated by spaces, or press one of the examples.
  2. Read the sentence and the table that splits your expression into its five fields.
  3. If you see an error message, fix the field it names; it says which values are allowed.
  4. Check the next five run times and compare them with what you expect, keeping in mind that your server may use another time zone.

What people use it for

  • Reviewing a crontab line

    Check that 0 9 * * 1-5 really means 09:00 on weekdays before you deploy it.

  • Debugging a job that never ran

    See that 0 0 30 2 * has no run at all, because 30 February does not exist.

  • Explaining a schedule to a teammate

    Copy the plain English sentence into a ticket or a pull request.

Questions

What do the five fields mean?
In order: 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 are Sunday. These are the ranges described in crontab(5). A star means every value, 1,15 is a list, 9-17 is a range, and */15 means every 15th value, so */15 in the minute field gives minutes 0, 15, 30 and 45.
How are day of month and day of week combined?
crontab(5) states that when both fields are restricted, which means neither is a star, the command runs when either one matches. So 0 0 13 * 5 runs on every 13th and on every Friday, not only on Friday the 13th. If one of them is a star, only the other one counts. This page treats a field that begins with a star as not restricted.
Which time zone are the next runs in?
The one your browser reports, which is also the one shown under the list. A cron daemon uses the time zone of the machine it runs on, or one configured for it, so a server set to UTC will run the same expression at another clock time than the one listed here. Around daylight saving changes, schedulers differ in how they treat skipped or repeated hours, and this page does not model that.
What is not supported?
Only the classic five-field format. Shortcuts such as @daily, a seconds or year field, and the extra characters of some schedulers (such as ?, L, W and #) are refused with a message, because other systems give them different meanings. A step must follow a star or a range: write */5 or 0-30/5, not 5/5. A range cannot run backwards, so 5-1 is an error.