Cron Expression Examples

Ready-to-use cron expressions for common scheduling needs. Click any expression to try it in the builder or validator.

Basic Intervals

ExpressionDescriptionActions
* * * * *Every minuteBuildValidate
*/5 * * * *Every 5 minutesBuildValidate
*/10 * * * *Every 10 minutesBuildValidate
*/15 * * * *Every 15 minutesBuildValidate
*/30 * * * *Every 30 minutesBuildValidate
0 * * * *Every hour at :00BuildValidate
0 */2 * * *Every 2 hoursBuildValidate
0 */6 * * *Every 6 hoursBuildValidate

Daily Schedules

ExpressionDescriptionActions
0 0 * * *Every day at midnightBuildValidate
0 6 * * *Every day at 6:00 AMBuildValidate
0 12 * * *Every day at noonBuildValidate
0 18 * * *Every day at 6:00 PMBuildValidate
0 9,18 * * *Twice a day (9:00 AM and 6:00 PM)BuildValidate

Business Schedules

ExpressionDescriptionActions
0 9 * * 1-5Weekdays at 9:00 AMBuildValidate
0 17 * * 1-5Weekdays at 5:00 PMBuildValidate
*/30 9-17 * * 1-5Every 30 min during business hours (Mon-Fri)BuildValidate
0 9-17 * * 1-5Every hour during business hours (Mon-Fri)BuildValidate

Weekly Schedules

ExpressionDescriptionActions
0 0 * * 0Every Sunday at midnightBuildValidate
0 0 * * 1Every Monday at midnightBuildValidate
0 0 * * 5Every Friday at midnightBuildValidate
0 0 * * 6,0Weekends at midnightBuildValidate

Monthly & Yearly

ExpressionDescriptionActions
0 0 1 * *First day of every month at midnightBuildValidate
0 0 15 * *15th of every month at midnightBuildValidate
0 0 1 1 *January 1st at midnight (yearly)BuildValidate
0 0 1 */3 *Every quarter (1st day)BuildValidate

DevOps & Maintenance

ExpressionDescriptionActions
0 2 * * *Daily at 2:00 AM (database backup)BuildValidate
*/5 * * * *Health check every 5 minutesBuildValidate
0 3 * * 0Weekly maintenance (Sunday 3:00 AM)BuildValidate
0 0 1 * *Monthly log rotationBuildValidate

Frequently Asked Questions

What does */5 * * * * mean in cron?

The expression */5 * * * * means "every 5 minutes". The /5 is a step value applied to the minute field. The schedule fires at minutes 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, and 55 of every hour.

How do I run a cron job every hour?

Use 0 * * * * to run a cron job at the start of every hour (at minute 0). This means the job will execute at 00:00, 01:00, 02:00, and so on.

How do I schedule a cron job for weekdays only?

Use 1-5 in the day-of-week field (the 5th field). For example, 0 9 * * 1-5 runs the job at 09:00 Monday through Friday. In Unix cron, 1 = Monday and 5 = Friday.

How do I run a cron job on the first day of every month?

Use 0 0 1 * * to run at midnight on the 1st of every month. You can change the hour and minute fields to schedule it at a different time on the 1st.

What is the difference between * and */1 in cron?

There is no difference. Both * and */1 match every possible value for that field. */1 explicitly states a step of 1, which is the same as matching everything.