Cron Parser

Enter a standard 5-field cron to compute its next few run times — handy for scheduling jobs and debugging cron.

Enter a cron expression (minute hour day month weekday)
Hint: standard 5 fields; weekday 0–6 (Sunday=0, also accepts 7).
Next 5 run times (browser local time zone)
—

Reading the five fields

A standard cron expression has five space-separated fields, read left to right:

FieldRangeMeaning
Minute0 – 59Which minute past the hour
Hour0 – 2324-hour clock
Day of month1 – 31Which day of the month
Month1 – 121 = January
Day of week0 – 70 and 7 both mean Sunday

The special characters

Worked examples

ExpressionWhen it runs
0 3 * * *Every day at 03:00
*/15 * * * *Every 15 minutes, all day
0 9 * * 1-5Weekdays at 09:00
30 2 1 * *02:30 on the first of every month
0 0 1 1 *Midnight on 1 January, once a year

The trap almost everyone hits

When both day-of-month and day-of-week are restricted (neither is *), cron joins them with OR, not AND. So 0 0 13 * 5 fires on every Friday and the 13th of every month — not only on Friday the 13th. To get the intersection you have to check the date inside the job itself.

Beyond the classic five

Many systems accept a sixth leading field for seconds, and Quartz-style schedulers use seven fields (seconds plus an optional year) along with keywords like ? and L for "last". Because dialects differ, always confirm which flavour the target system runs before pasting an expression into production.

Schedules you will actually write

Most real jobs are one of a handful of patterns, so it is worth having them memorised rather than re-derived each time:

ExpressionRuns
*/5 * * * *Every 5 minutes, around the clock
0 * * * *On the hour, every hour
30 3 * * *Daily at 03:30
0 9 * * 1-5Weekdays at 09:00
0 4 * * 0Sunday at 04:00 — quiet hours for maintenance
0 0 1 * *First of every month at midnight
0 0 1 1 *Once a year, 1 January

Where the implementation supports them, macros express the same thing without the arithmetic:

@hourly    =  0 * * * *
@daily     =  0 0 * * *
@weekly    =  0 0 * * 0
@monthly   =  0 0 1 * *
@yearly    =  0 0 1 1 *
@reboot    — once, when the daemon starts

The time zone belongs to the server, not to you

A cron expression carries no zone: it is interpreted in the daemon's local time. On a container or a minimal cloud image that is almost always UTC, so 0 9 * * * meant as "nine in the morning" fires at 17:00 Beijing time, or 02:00 in Los Angeles. The job runs perfectly and at the wrong moment — a failure that leaves no error to search for.

Either set TZ in the container environment so the daemon inherits the intended zone, or convert the target local time to UTC once and write the expression in UTC. Check which applies before trusting any schedule that looks suspiciously offset by a round number of hours.

Related tools

Unix timestamp Date calculator Time zone converter

FAQ

Does it support the standard 5-field or the 6-field (with seconds) form?
This tool supports the standard 5-field cron (minute hour day month weekday), the common Linux / Quartz form. The optional leading “seconds” field is not included. The weekday field accepts 0–6 (Sunday=0, and 7 is also accepted for Sunday).
When both day-of-month and weekday are restricted, how is it evaluated?
It follows Vixie cron rules: when both day-of-month and weekday are restricted to specific values, they are OR-ed (either match triggers); if one is *, only the other is considered. For example 0 0 13 * 5 means “the 13th of any month” OR “every Friday”.
What time zone is used?
It is computed and displayed using your browser's current local time zone. The actual trigger still depends on the deploying machine's time zone; this is only an intuitive preview.