Cron Expression Generator

Build and explain cron job schedule expressions visually.

Cron Expression

Result

Expression* * * * *
Human-readable—

About the Cron Expression Generator

The Cron Expression Generator builds a five-field cron schedule and explains it in plain English. Set the minute, hour, day of month, month and day of week, or pick a preset, and it returns both the expression and a readable description.

The five fields run in a fixed order: minute, hour, day of the month, month and day of the week. An asterisk means every value, a number means exactly that value, a range like 1-5 means through, a list like 1,3,5 means those values, and */5 means every fifth value. So 0 9 * * 1-5 reads as nine in the morning, Monday to Friday.

One trap catches almost everyone: when both day-of-month and day-of-week are restricted, cron runs the job if either matches, not both. A schedule of 0 0 1 * 1 does not mean the first of the month when it is a Monday, it means every Monday plus every first of the month.

Common questions about Cron Expression Generator

What are the five fields?

Minute, hour, day of the month, month and day of the week, in that order.

What does an asterisk mean?

Every possible value for that field. * in the hour field means every hour.

How do I run a job every five minutes?

Use */5 in the minute field: */5 * * * *.

How do I run something on weekdays at 9 AM?

0 9 * * 1-5, where 1 to 5 is Monday to Friday and Sunday is 0.

Why does my day-of-month and day-of-week schedule fire too often?

Because cron uses OR between those two fields. Restricting both means either match triggers the job.

Does it support seconds?

No, standard cron has five fields. Systems that accept six fields, such as Quartz, add seconds at the front.

Related Tools in Developer Tools

JSON FormatterBase64 Encoder/DecoderURL Encoder/Decoder