How to use the Cron Expression Generator
- Type an expression, pick a preset, or edit each field: minute, hour, day of month, month, and day of week.
- Read the plain-English description and the next eight run times to confirm the schedule does what you expect.
- Enter the command to run and copy the full crontab line.
- Add it to the server with crontab -e.
How it works
The tool follows standard Vixie cron, used by most Linux distributions. Each field accepts a single value, * for any value, lists (1,15), ranges (1-5), steps (*/10 or 9-17/2), and month or day names (JAN, MON). @daily, @weekly, @monthly, @yearly, and @hourly are expanded to their five-field equivalents.
When both day of month and day of week are restricted, cron runs when either matches. 0 12 13 * 5 runs at noon on the 13th of every month and on every Friday, not only on Friday the 13th.
Next run times are calculated by stepping through the calendar in your browser's time zone.
┌ 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, 7 = Sunday)
* * * * *Worked example: a weekday report at 9:00
0 9 * * 1-5 means minute 0, hour 9, any day of the month, any month, Monday to Friday. Starting from Wednesday 14 October 2026 at 10:30, the next runs are Thursday 15th, Friday 16th, Monday 19th, and Tuesday 20th at 09:00.
To run every 15 minutes during office hours on weekdays, use */15 9-17 * * 1-5.
| Expression | Meaning |
|---|---|
| */5 * * * * | Every 5 minutes |
| 0 0 * * * | Every day at midnight |
| 0 9 * * 1-5 | Weekdays at 09:00 |
| 0 3 * * 0 | Sundays at 03:00 |
| 30 2 1 * * | 02:30 on the 1st of each month |
| 0 0 29 2 * | Midnight on 29 February (leap years only) |
Limitations
- Run times are shown in your browser's time zone. Most servers run cron in their own time zone, often UTC, so a schedule may fire at a different local time on the server.
- Seconds fields and Quartz-style syntax (L, W, #, ?) used by some Java schedulers are not supported; this is standard five-field cron.
- Around daylight-saving changes, cron implementations differ in whether a skipped or repeated hour runs once, twice, or not at all.
Frequently asked questions
How do I run a cron job every 5 minutes?
Use */5 * * * *. The */5 in the minute field means every fifth minute: 0, 5, 10, and so on.
Why didn't my cron job run at the time I expected?
Most often the server's time zone differs from yours. Check it with the date command on the server, and remember that cron uses the server's local time.
How do I schedule a job on the last day of the month?
Standard cron has no last-day syntax. A common workaround is to run daily on days 28 to 31 and have the command check whether tomorrow is the 1st.
What does 0 0 * * 0 mean?
Midnight every Sunday. Day of week 0 and 7 both mean Sunday.