What is a cron expression?
A cron expression schedules tasks on Linux servers, CI pipelines and cloud functions. It has five fields separated by spaces:
- minute (0–59)
- hour (0–23)
- day of month (1–31)
- month (1–12, or JAN–DEC)
- weekday (0–7, or SUN–SAT; both 0 and 7 mean Sunday)
Supported syntax
*– every value (e.g.*in the hour field = every hour)*/n– every n units (e.g.*/15= every 15 minutes)a-b– a range (e.g.9-17= 9am through 5pm)a,b,c– a list (e.g.1,15,30= minutes 1, 15 and 30)a-b/n– step inside a range (e.g.0-30/10= 0, 10, 20, 30)
Common examples
0 2 * * *– run at 2:00 AM every day (classic nightly backup)*/5 * * * *– run every 5 minutes (monitoring)30 9 * * 1-5– run at 9:30 AM on weekdays (morning report)0 0 1 * *– run at midnight on the first of every month (billing)0 22 * * 6,0– run at 10 PM on Saturday and Sunday
If both the day-of-month and weekday fields are restricted (non-*), cron runs when either matches — this OR behavior confuses many developers, so test your schedule with this parser before deploying.
Where it breaks down
The expression is split into five fields, each parsed by parseField() — wildcard, range, step and list forms — and assembled by parse(). domOk() applies the rule that day-of-month and day-of-week are alternatives rather than a conjunction, which surprises most people the first time. describe() renders the structure in words, sorted() keeps the output order stable, and showErr() points at the offending field instead of failing silently.
Formats, sizes and other limits
Standard five-field syntax only: no seconds, no @yearly-style macros, no L, W or # extensions. The page explains an expression but does not compute when it will next run — that projection belongs to the cron generator. Field semantics are read in your browser's timezone, while the job will run in the server's.
Privacy: no data leaves this tab
The expression is parsed as text; the page cannot reach any scheduler and makes no network call, so nothing about your jobs is exposed.
Frequently asked questions
Does it support @daily?
No. Write 0 0 * * *, which is equivalent and readable by every cron implementation.
Can day-of-month and day-of-week both be set?
Yes, but they are OR-ed: the job runs when either matches. That is standard cron behaviour and the usual source of surprise.
Can it show the next run time?
Not here. Use the cron generator, which projects the next several executions on a real calendar.