ToolMelt

Cron Expression Cheat Sheet

Quick-reference cron cheat sheet: the 5 fields, every operator (* , - /), 30 copy-paste examples with plain-English meanings, and the pitfalls that bite most.

This guide pairs with a free tool:

Open the Cron Expression Parser

The five fields

A cron expression is a single line of five space-separated fields: minute hour day-of-month month day-of-week. The cron daemon runs the job whenever the current time matches every field at once.

FieldAllowed valuesNotes
Minute0-59The minute within the hour.
Hour0-2324-hour clock; 0 is midnight.
Day of month1-31Short months skip missing dates.
Month1-12 or JAN-DECNames are case-insensitive.
Day of week0-7 or SUN-SATBoth 0 and 7 mean Sunday.

Operators

Four characters do all the work inside any field, and they combine freely (for example 1-15/3 or 0,30):

OperatorMeaningExample
*Every allowed value.* in the minute field = every minute.
,A list of values.6,18 in hour = 06:00 and 18:00.
-An inclusive range.1-5 in day-of-week = Monday to Friday.
/A step through a range.*/15 = every 15; 8-18/2 = every 2 from 8 to 18.

30 real examples

Each pattern below is a valid five-field expression. Times use the 24-hour clock of the machine the cron daemon runs on.

ExpressionPlain-English meaning
* * * * *Every minute.
*/5 * * * *Every 5 minutes.
*/10 * * * *Every 10 minutes.
*/15 * * * *Every 15 minutes.
*/30 * * * *Every 30 minutes.
0 * * * *Hourly, at minute 0 (on the hour).
15 * * * *Every hour at 15 minutes past.
0 */2 * * *Every 2 hours, on the hour.
0 */6 * * *Every 6 hours: 00:00, 06:00, 12:00, 18:00.
0 6,18 * * *Twice a day, at 06:00 and 18:00.
0 0 * * *Every day at midnight (00:00).
5 0 * * *Every day at 00:05.
0 12 * * *Every day at noon.
30 4 * * *Every day at 04:30.
* 3 * * *Every minute during the 3 AM hour (03:00-03:59).
0 9 * * 1-5At 09:00 on weekdays (Monday to Friday).
0 9 * * MON-FRISame schedule, written with weekday names.
0 9 * * 1At 09:00 every Monday.
0 2 * * 0At 02:00 every Sunday.
0 2 * * 7Identical: 7 also means Sunday.
0 0 * * 6,0At midnight on Saturday and Sunday (weekends).
0 22 * * FRIAt 22:00 every Friday.
0 0 1 * *At midnight on the 1st of every month.
0 0 15 * *At midnight on the 15th of every month.
0 0 1,15 * *At midnight on the 1st and the 15th.
0 0 1 1 *At midnight on January 1st (once a year).
0 0 29 2 *At midnight on February 29 (leap years only).
*/15 9-17 * * 1-5Every 15 minutes from 09:00 to 17:45 on weekdays — work hours.
0 9-17 * * *Hourly from 09:00 through 17:00, every day.
0 8-18/2 * * *Every 2 hours from 08:00 to 18:00 (08:00, 10:00, ... 18:00).

Common pitfalls

Check your expression

Try it: paste any expression from the tables above into the Cron Expression Parser — it turns the schedule into plain English, breaks down each of the five fields, and previews the next five run times in your local timezone, so you can confirm the pattern before it goes anywhere near a real crontab.

More guides