About the Cron Expression Generator/Parser
Cron expressions are compact but cryptic: 0 18 * * 1-5 does not explain itself. This Cron Expression Generator and Parser works both ways. Build a schedule from five fields or a preset, or paste an existing expression to see what it means in plain words.
How it works
A standard cron expression has five space-separated fields: minute (0-59), hour (0-23), day of the month (1-31), month (1-12), and day of the week (0-7, where 0 and 7 are Sunday). Each field can be * for every value, a single number, a range like 1-5, a list like 9,17, a step like */15, or a stepped range like 1-5/2.
The parser checks that there are exactly five fields, that each matches one of those patterns and that every number is in range. It then describes each field in turn, for example 0 9 * * 1-5 as "at minute 0, past hour 9, on day Monday–Friday". It also lists the next five run times by stepping through the calendar in the chosen time zone; as in standard cron, when both day fields are set, a day matching either one runs.
How to use
- 1
To build a schedule, click a preset such as Every weekday at 6pm, or type values into the Minute, Hour, Day (mo), Month, and Day (wk) fields.
- 2
Read the expression and its description in the highlighted box, and check the Next runs list. Set Server time zone to the zone your scheduler uses, often UTC.
- 3
Click Copy to copy the expression, or Copy link to share it with the time zone.
- 4
To explain an existing schedule, paste it into the Paste a cron expression to explain it field; clear that field to go back to the builder.
Worked examples
Weekday evening job
A report that should run at 6pm Monday to Friday.
Every 15 minutes
A health check that runs four times an hour.
Once a year
A yearly cleanup at midnight on January 1.
Unsupported weekday name
Pasting a crontab line that uses a day name.
The parser only accepts numbers, so write Monday as 1.
Frequently asked questions
What do the five fields in a cron expression represent?+
In order: minute, hour, day of the month, month, and day of the week. Together they define when the job runs.
What does an asterisk mean in a cron expression?+
An asterisk means every value for that field. An asterisk in the hour field means every hour; in the weekday field it means every day of the week.
What does */15 mean?+
It is a step value. In the minute field, */15 means every 15 minutes: at minutes 0, 15, 30, and 45.
How do I run a job only on weekdays?+
Put 1-5 in the day-of-week field. For example, 0 9 * * 1-5 runs at 9:00 Monday through Friday.
Is Sunday 0 or 7?+
Both. Standard cron uses 0 for Sunday and most implementations also accept 7; this tool accepts either.
Does this work for six-field expressions with seconds?+
No. The parser expects exactly five fields. Quartz and some cloud schedulers add a seconds field, which you would need to remove first.