Toolstia / Cron expression explainer
Cron expression explainer
A cron schedule packs a whole timetable into five short fields, and a single misplaced star can mean a job runs every minute instead of once a day. This page translates an expression into a plain-English sentence and lists the next five times it will fire, so you can check it before you save it to a server.
It is for developers, administrators and anyone who maintains scheduled backups, reports, cache clears or WordPress cron tasks. Seven presets get you started, errors are reported in words, and the run list is calculated in your own device time zone. Use it as a second opinion before relying on a schedule that matters.
Fields: minute (0-59), hour (0-23), day of month (1-31), month (1-12 or JAN-DEC), day of week (0-6 or SUN-SAT, with 0 and 7 both Sunday).
How it works
- Type a cron expression or tap a preset.
- Read the plain English description.
- Check the next run times.
The five fields
From left to right: minute, hour, day of month, month and day of week. A star means every value, 1-5 is a range, 1,15 is a list, and */10 means every tenth value.
Day of month and day of week
When you set both fields to something other than a star, standard cron runs the job when either one matches. So `0 12 13 * 5` runs at noon on the 13th of every month and also on every Friday.
Time zone
The next runs are shown in the time zone of your device. A server running cron may use a different time zone, usually UTC, so check which one yours uses.
Variations between systems
This follows the common five-field cron used on Linux. Some systems add a seconds field or special words like @daily, and these are not covered here.
Reading an expression from left to right
Take 0 9 * * 1-5. Minute 0, hour 9, any day of the month, any month, and days of the week 1 to 5, which is Monday to Friday. The explainer describes it as a weekday schedule at 09:00, and the run list shows the next five weekdays at 9:00, skipping weekends.
The expression */15 * * * * means every 15 minutes, so the next runs are on the quarter hours. Steps count from the start of the range, so */15 gives 0, 15, 30 and 45, not 15 minutes after you saved it.
The day-of-month and weekday rule in action
When both the day-of-month and day-of-week fields are restricted, the job runs if either one matches. The expression 0 12 13 * 5 is not Friday the 13th. It runs at noon on every Friday and also on every 13th. Starting from 14 November 2026 the next five runs are Fridays 20 and 27 November, then 4 and 11 December, and then Sunday 13 December.
If you really want Friday the 13th only, cron alone cannot express it. Schedule the job for every Friday and have the script check the date.
Dates that never happen
The expression 30 2 31 * * asks for the 31st, so it fires only in months that have 31 days. From mid November 2026 the first runs are 31 December, 31 January and 31 March, with February and April skipped. An expression such as 0 0 30 2 * names a day that never exists, and the tool reports that nothing runs in the next five years.
A step in the day-of-month field also restarts each month. The expression 0 0 */2 * * runs on odd-numbered days, so on the 31st and again on the 1st, one day apart.
Time zones and daylight saving
The next-run list uses the clock on the device you are using. A server often runs in UTC or in its own zone, so a job set for 09:00 may fire at a very different local time. Compare the server setting with the time shown here before concluding that a schedule is wrong.
Around the clock changes for daylight saving, implementations differ on whether a job in the skipped or repeated hour runs once, twice or not at all. If an exact time matters, run the job in UTC.
Syntax this tool accepts and rejects
It accepts exactly five fields, with lists, ranges, steps and the month and weekday names. Both 0 and 7 mean Sunday. It rejects six-field expressions with seconds, shortcuts like @daily, and extensions such as L for last day or 5#2 for the second Friday. A value out of range, like 60 in the minute field, produces an error message.
Some platforms use these extensions, so a schedule that is valid there may be refused here. In that case, translate it to a plain five-field form for checking.
Questions
What does */5 mean?
Every fifth value of that field, such as every 5 minutes when used in the minute field.
Is 0 and 7 both Sunday?
Yes, in the day-of-week field.
Why does it say it never runs?
The date may not exist, for example the 31st of February.
Can I use month and day names?
Yes, such as JAN and MON-FRI.
Why do I get an error for an expression with six fields?
This tool covers the standard five-field format. Quartz-style schedules with a seconds field are not supported.
How do I run something every two hours?
Use 0 */2 * * *, which runs at minute zero of hours 0, 2, 4 and so on.
What is the difference between 0 0 * * 0 and 0 0 * * 7?
None. Both mean Sunday at midnight.
Why is the description shown in 24-hour time?
The wording uses 24-hour times so that 09:00 and 21:00 are unambiguous.
Does it check whether my command is correct?
No. It only interprets the five time fields, not the command that follows them in a crontab line.