How to use the cron validator
Type a cron expression, or pick one of the examples, and the page checks the syntax as you type. If it is valid you get a plain-English description, a breakdown of each field, and the next ten times it will run. If it is not valid, the message names the field that is wrong and explains why.
Choose 5 fields for the standard Linux and Unix crontab format, or 6 fields for schedulers that put a seconds field first, such as Spring and many Node.js libraries. Run times can be shown in your local time zone or in UTC.
Cron expression syntax
A standard cron expression has five fields separated by spaces:
┌───────── minute (0–59)
│ ┌─────── hour (0–23)
│ │ ┌───── day of month (1–31)
│ │ │ ┌─── month (1–12 or JAN–DEC)
│ │ │ │ ┌─ day of week (0–7 or SUN–SAT, 0 and 7 are Sunday)
* * * * *
| Symbol | Meaning | Example |
|---|---|---|
* | Every value in the field | * * * * * runs every minute |
, | A list of values | 0 9,17 * * * runs at 09:00 and 17:00 |
- | A range of values | 0 9 * * 1-5 runs at 09:00 Monday to Friday |
/ | A step | */10 * * * * runs every 10 minutes |
@daily etc. | Shortcuts | @hourly, @daily, @weekly, @monthly, @yearly, @reboot |
Common schedule examples
| Expression | Runs |
|---|---|
*/5 * * * * | Every 5 minutes |
0 * * * * | At the start of every hour |
30 2 * * * | Every day at 02:30 |
0 9 * * 1-5 | Weekdays at 09:00 |
*/15 9-17 * * 1-5 | Every 15 minutes between 09:00 and 17:59 on weekdays |
0 0 * * 0 | Every Sunday at midnight |
0 0 1 * * | At midnight on the first day of every month |
0 0 1 1 * | At midnight on 1 January |
0 */6 * * * | Every 6 hours, at 00:00, 06:00, 12:00 and 18:00 |
Day of month and day of week: the rule that surprises people
When you set both the day-of-month and the day-of-week fields to something other than *, standard cron runs the job when either one matches. The expression 0 0 13 * 5 therefore runs on the 13th of every month and on every Friday. It does not mean only Friday the 13th. The validator follows this behaviour and warns you when it applies. Some other schedulers, such as Quartz, combine the two fields differently, so check the documentation of the one you use.
Other things that catch people out
- Steps restart each cycle.
*/45 * * * *runs at minute 0 and minute 45 of every hour, so the gap alternates between 45 and 15 minutes. It is not "every 45 minutes". - Time zones. Cron uses the time zone of the machine or scheduler it runs on. Servers and containers are often set to UTC, which can differ from your local time. Use the time zone selector to compare.
- Daylight saving time. Jobs scheduled in an hour that is skipped or repeated may run late, run twice or not run, depending on the implementation. Scheduling at a time away from 01:00–03:00 local time, or running the server in UTC, avoids the problem.
- The percent sign. In a crontab file, an unescaped
%in the command is treated as a newline. Write\%instead, for example indate +\%F. - Minimal environment. Cron jobs run with a small
PATHand none of your shell profile, so use absolute paths and redirect output, for example>> /var/log/job.log 2>&1.
What this validator does not cover
It checks standard Unix cron and the common six-field variant with seconds. It does not support Quartz or AWS EventBridge extras such as ?, L, W, # or a year field, and it will tell you when it meets one. A value like 5/15 is accepted as "start at 5, then every 15", but some cron versions require the range form 5-59/15, so the validator notes this.
Frequently asked questions
What does * * * * * mean?
It runs every minute of every hour of every day. Each star means "every value" for its field.
How do I run a job every 10 minutes?
Use */10 * * * *. This works well because 10 divides evenly into 60. Steps that do not divide 60, such as 7 or 45, restart at the top of each hour.
Is 0 or 7 Sunday?
Both. Most cron implementations accept 0 and 7 for Sunday, and you can also write SUN. Monday is 1 and Saturday is 6.
Are the next run times accurate?
They are calculated from your device's clock using the rules above, in the time zone you choose. Your scheduler's own time zone setting decides when the job really runs.
Is my expression sent to a server?
No. Parsing and calculation run in your browser.