Cron Expression Generator
Build a schedule with the controls below, or paste any cron expression into the box to see what it means and when it will run next.
Minute
Hour
Day (month)
Month
Day (week)
What is a cron expression?
A cron expression is a short line of text used to tell a scheduler ("cron", built into Linux and macOS, and used by many hosting and automation tools) when to run a task. It has five fields, separated by spaces, each describing one part of the schedule.
Field meanings
| Field | Allowed values | Notes |
|---|---|---|
| Minute | 0–59 | — |
| Hour | 0–23 | 24-hour clock, 0 = midnight |
| Day of month | 1–31 | — |
| Month | 1–12 or JAN–DEC | Names are case-insensitive |
| Day of week | 0–6 or SUN–SAT | Both 0 and 7 mean Sunday |
Special characters
| Character | Meaning | Example |
|---|---|---|
* |
Every value in the field | * in Hour = every hour |
, |
A list of specific values | 1,15 = the 1st and the 15th |
- |
An inclusive range of values | 1-5 = 1, 2, 3, 4, 5 |
/ |
A step, used after a value or range | */15 = every 15 units |
Common examples
| Expression | Meaning |
|---|
Quick tips
- Sunday can be written as either
0or7in the day-of-week field. - If both day-of-month and day-of-week are restricted (not
*), the job runs when either one matches — not only when both do. - Ranges are inclusive:
1-5means 1, 2, 3, 4 and 5. - Steps can combine with ranges:
1-10/2means 1, 3, 5, 7, 9. - The order of a comma list doesn't matter:
5,1,3is the same as1,3,5. - Cron doesn't support "wrap-around" ranges like
22-2— write them as two values or a list instead.