Cron Generator

Describe, build, and preview cron expressions with upcoming run times

5*/41271

At 5 minutes past the hour, every 4 hours, on day 12 of the month, on Monday, and only in July

Upcoming runs

Enter a valid expression to preview run times.

Expression breakdown

PartTokenMeaning
Minute55
Hour*/4every 4 hours
Day of month1212
Month7July
Day of week1Monday

Common templates

Cheatsheet

Standard operators

SymbolMeaning
*Any value — matches every value in the field.
,Value list — separate multiple values (e.g. 1,3,5).
-Range of values (e.g. 1-5 means 1,2,3,4,5).
/Step values (e.g. */15 = every 15th).
0-9Literal numeric value within the field's range.

Support for these operators varies by platform — your cron parser may not implement all of them.

Non-standard operators

SymbolMeaning
?No specific value — used in day-of-month or day-of-week.
LLast day of the month (or week, in day-of-week).
WNearest weekday to the given day of month.
#Nth weekday of the month (e.g. 5#3 = 3rd Friday).
L-nn days before the last day of the month.

Special shorthand strings

SymbolEquivalentMeaning
@yearly0 0 1 1 *Once a year at midnight, Jan 1.
@annually0 0 1 1 *Alias of @yearly.
@monthly0 0 1 * *Once a month at midnight on the 1st.
@weekly0 0 * * 0Once a week at midnight on Sunday.
@daily0 0 * * *Once a day at midnight.
@midnight0 0 * * *Alias of @daily.
@hourly0 * * * *Once an hour at minute 0.
@rebootRun once at startup (not time-based).