// reference

Cron Syntax

How cron expressions work — the five fields, special characters, @macros and ready-to-use schedule examples.

A cron expression is five fields — minute, hour, day of month, month and day of week — that describe when a job runs. This reference explains each field and the special characters, then lists common schedules you can copy straight into a crontab.

The five fields

FieldAllowed valuesDescription
Minute0–59Minute of the hour
Hour0–23Hour of the day (24-hour clock)
Day of month1–31Day of the month
Month1–12 or JAN–DECMonth of the year
Day of week0–6 or SUN–SATDay of the week (0 = Sunday)

Special characters

SymbolMeaningExample
*Every value in the field* = every minute
,A list of specific values1,15,30
-A range of values9-17
/Step values (every n)*/5 = every 5

Shortcuts (macros)

MacroEquivalentMeaning
@yearly0 0 1 1 *Once a year, midnight on Jan 1 (also @annually)
@monthly0 0 1 * *Midnight on the first of every month
@weekly0 0 * * 0Midnight every Sunday
@daily0 0 * * *Every day at midnight (also @midnight)
@hourly0 * * * *At the top of every hour
@rebootAt startup (implementation-dependent)

Common examples

ExpressionRuns
* * * * *Every minute
*/5 * * * *Every 5 minutes
0 * * * *Every hour, on the hour
0 9 * * *Every day at 09:00
0 9 * * 1-5At 09:00 on weekdays (Mon–Fri)
30 8 1 * *At 08:30 on the 1st of every month
0 0 * * 0Midnight every Sunday
15 14 * * 3At 14:15 every Wednesday
0 22 * * 1-5At 22:00 on weekdays
0 0 1 1 *Midnight on Jan 1 (yearly)

More developer references

Cheat sheets and lookups paired with 36+ free, private, browser-based tools.

Browse references →
Last updated: Aug 19, 2026