Skip to content
ToolZone

Cron Expression Generator/Parser

Create cron expressions using a simple interface or parse existing cron schedules into human-readable descriptions.

Runs in your browser. Nothing you enter or upload leaves your device.

0 9 * * *
at minute 0, past hour 9
Copy expression
Presets

Keyboard shortcuts

Run the main action
⌘ / Ctrl + Enter
Copy the result
⌘ / Ctrl + Shift + Enter
Download the result
⌘ / Ctrl + S
Paste a file or image into file tools
⌘ / Ctrl + V
Search all tools
⌘ / Ctrl + K
Show these shortcuts
?

You can also drop files anywhere on the page.

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. 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. 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. 3

    Click Copy to copy the expression, or Copy link to share it with the time zone.

  4. 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.

Input
0 18 * * 1-5
Result
at minute 0, past hour 18, on day Monday–Friday

Every 15 minutes

A health check that runs four times an hour.

Input
*/15 * * * *
Result
at minute every 15 minutes, of every hour

Once a year

A yearly cleanup at midnight on January 1.

Input
0 0 1 1 *
Result
at minute 0, past hour 0, on day 1 of the month, in Jan

Unsupported weekday name

Pasting a crontab line that uses a day name.

Input
0 9 * * MON
Result
Invalid field: "MON" isn't a recognized cron pattern.

The parser only accepts numbers, so write Monday as 1.

Limitations
Month and weekday names (JAN, MON), macros like @daily, and special characters such as L, W, # and ? are not supported. Next runs are calculated up to four years ahead. A run at a time skipped by a daylight saving change (such as 02:30 on the spring-forward day) is left out, and cron implementations differ there. The description wording can be literal, for example "past hour hour(s) 9, 17" for lists.
Assumptions
Expressions use the standard five-field Unix cron format. Day of week uses 0-7, with both 0 and 7 meaning Sunday.
Privacy
Expressions are built and explained in your browser; nothing is sent or saved.

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.

Related tools