Cron Expression Parser

Parse and explain cron expressions. See next 10 scheduled run times instantly.

*
MIN
Minute
0–59
*
HRS
Hour
0–23
*
DOM
Day
1–31
*
MON
Month
1–12
*
DOW
Weekday
0–6

Quick Examples

What Is a Cron Expression?

A cron expression is a string of five (or six) fields separated by spaces that specifies a schedule for a recurring task. Cron is the time-based job scheduler in Unix-like operating systems. It is used to schedule scripts, backups, data processing jobs, notifications, and any other automated task that needs to run on a schedule.

Cron Field Reference

PositionFieldAllowed ValuesSpecial Characters
1Minute0 – 59* , - /
2Hour0 – 23* , - /
3Day of Month1 – 31* , - / ? L W
4Month1 – 12* , - / (Jan–Dec)
5Day of Week0 – 6* , - / ? L # (0,7=Sun)

Special Characters

CharacterMeaningExampleDescription
*Any value* in minuteMatch every minute
,Value list1,15,30At minutes 1, 15, and 30
-Range9-17Every hour from 9 to 17
/Step*/5Every 5 units (every 5 minutes)
?No specific? in domUsed in dom or dow when the other is specified
LLastL in domLast day of the month or last weekday
WWeekday15WNearest weekday to the 15th
#Nth weekday5#33rd Friday of the month

Common Cron Patterns

ExpressionDescription
* * * * *Every minute
*/5 * * * *Every 5 minutes
*/15 * * * *Every 15 minutes
0 * * * *Every hour at minute 0
0 9 * * *Every day at 9:00 AM
0 9 * * 1-5Every weekday at 9:00 AM
0 9,17 * * 1-5At 9 AM and 5 PM on weekdays
0 0 * * 0Every Sunday at midnight
0 0 1 * *First day of every month at midnight
0 0 1 1 *January 1st at midnight every year
*/15 9-17 * * 1-5Every 15 min during business hours on weekdays
0 0 * * 1Every Monday at midnight
30 6 * * 1,3,56:30 AM on Monday, Wednesday, Friday
0 12 15 * *Noon on the 15th of every month
0 2 * * *Every day at 2:00 AM

@Alias Shortcuts

AliasEquivalentDescription
@yearly / @annually0 0 1 1 *Run once a year on Jan 1st at midnight
@monthly0 0 1 * *Run once a month on the 1st at midnight
@weekly0 0 * * 0Run once a week on Sunday at midnight
@daily / @midnight0 0 * * *Run once a day at midnight
@hourly0 * * * *Run once an hour at the beginning of the hour

Common Mistakes

  • Day-of-week is 0-indexed (0 = Sunday). Many people assume 1 = Monday, but in standard cron, 0 and 7 both mean Sunday, and 1–6 are Monday through Saturday.
  • Month is 1-indexed (1 = January). Unlike day-of-week, months start at 1. Some systems also accept Jan, Feb, ... abbreviations.
  • DOM and DOW interact with OR logic. If you specify both a day-of-month and a day-of-week restriction, most cron implementations fire if EITHER condition is true, not only when both are true.
  • Minute granularity. Standard cron has a minimum resolution of 1 minute. For sub-minute scheduling, use a different scheduler.
  • Timezone.Cron runs in the server's local timezone by default. If your server is in UTC but you expect local times, set the timezone explicitly (e.g., in systemd timers or Kubernetes CronJobs).

Frequently Asked Questions

The / character means 'step'. */5 in the minute field means 'every 5 minutes' — i.e., at minutes 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55. You can use it in any field: */2 in the hour field means every 2 hours.

Standard cron has a minimum resolution of 1 minute. To run every 30 seconds, you need two entries: '* * * * * /path/to/script' and '* * * * * sleep 30; /path/to/script'. Alternatively, use systemd timers or a dedicated scheduler that supports sub-minute intervals.

Both 0 and 7 represent Sunday in most cron implementations. This is a historical quirk. Using 0 is more portable; some systems may not accept 7.

Standard 5-field cron does not support 'last day of month' directly. Some extended implementations (like Quartz Scheduler) support L in the day-of-month field. A workaround is to run on day 28-31 and check inside the script whether it is the last day.

? means 'no specific value' and is used in day-of-month or day-of-week to avoid conflict when you specify one but not the other. It is supported by Quartz Scheduler and some cloud platforms but not in standard Unix cron.

Related Tools