Cron Expression Examples

Type any cron expression below to see what it means. Click any example to try it.

minhourdaymonthweekday

Common Examples

Click any expression to load it into the tester above.

* * * * *Every minute
*/5 * * * *Every 5 minutes
*/15 * * * *Every 15 minutes
0 * * * *Every hour (at minute 0)
0 */2 * * *Every 2 hours
0 */6 * * *Every 6 hours
0 0 * * *Daily at midnight
0 9 * * *Daily at 9:00 AM
30 2 * * *Daily at 2:30 AM
0 9 * * 1-5Weekdays at 9:00 AM
0 0 * * 0Every Sunday at midnight
0 0 * * 1Every Monday at midnight
0 0 1 * *First day of every month
0 0 15 * *15th of every month
0 0 1 1 *January 1st (yearly)
0 0 1 */3 *Every 3 months
0 8,17 * * *At 8 AM and 5 PM daily
0 0 * * 6,0Weekends at midnight
*/10 9-17 * * 1-5Every 10 min during business hours
0 3 1,15 * *1st and 15th at 3 AM

Cron Syntax

A cron expression has five fields separated by spaces. Each field controls when the job runs.

FieldValuesDescription
Minute0-59Minute of the hour
Hour0-23Hour of the day (24h)
Day of Month1-31Day of the month
Month1-12Month of the year
Day of Week0-60 = Sunday, 6 = Saturday

Special Characters

*Any valueMatches every possible value for that field
,ListSpecify multiple values: 1,3,5
-RangeSpecify a range: 1-5 (Monday through Friday)
/StepSpecify intervals: */5 (every 5 units)

Tips

All times are in the timezone of your server. Most cloud servers use UTC.

When both day-of-month and day-of-week are set (not *), the job runs when either matches — not both. This is a common source of confusion.

Test expressions before deploying. A misconfigured cron job either runs too often (flooding your logs) or never runs at all.

Once your cron expression is right, make sure it keeps running.

Monitor with CronPulse →