Cron Expression Generator & Validator
Build a cron expression from presets, read it in plain English, and validate any 5-field expression — the validator tells you which field is wrong and why, not just “invalid”.
The 5 fields
| # | Field | Allowed values | Special characters |
|---|---|---|---|
| 1 | minute | 0–59 | * , - / |
| 2 | hour | 0–23 | * , - / |
| 3 | day-of-month | 1–31 | * , - / ? |
| 4 | month | 1–12 (jan–dec) | * , - / |
| 5 | day-of-week | 0–7 (0 and 7 = Sunday, mon–sun) | * , - / |
Common cron expression examples
| Expression | Meaning |
|---|---|
*/5 * * * * | Every 5 minutes |
*/10 * * * * | Every 10 minutes |
*/15 * * * * | Every 15 minutes |
*/30 * * * * | Every 30 minutes |
0 * * * * | Every hour, on the hour |
15 * * * * | Every hour at minute 15 |
0 */2 * * * | Every 2 hours |
0 */6 * * * | Every 6 hours |
0 0 * * * | Every day at midnight |
0 9 * * * | Every day at 9:00 AM |
0 18 * * * | Every day at 6:00 PM |
0 9 * * 1-5 | Weekdays (Mon–Fri) at 9:00 AM |
0 9 * * 1 | Every Monday at 9:00 AM |
0 12 * * 0 | Every Sunday at noon |
0 0 1 * * | First day of every month |
0 0 15 * * | 15th of every month |
0 0 */7 * * | Every 7 days (from day 1) |
0 0 1 1 * | January 1st every year |
0 0 1 * * | Monthly at midnight |
30 8 1,15 * * | 8:30 AM on the 1st and 15th |
0 6,18 * * * | 6:00 AM and 6:00 PM daily |
0 9-17 * * * | Every hour from 9 AM to 5 PM |
*/20 * * * * | Every 20 minutes |
0 0 * * 5 | Every Friday at midnight |
0 23 * * 0 | Every Sunday at 11:00 PM |
0 0 1 3,6,9,12 * | First day of Mar/Jun/Sep/Dec |
5 4 * * * | Every day at 4:05 AM |
0 8 * * 1-5 | Weekdays at 8:00 AM |
0 0 * * 1,3,5 | Mon, Wed, Fri at midnight |
0 10 25 12 * | December 25th at 10:00 AM |
FAQ
What does */5 * * * * mean?
It means “run every 5 minutes”. */5 in the minute field expands to 0, 5, 10, … 55 — every fifth minute of every hour, every day.
How do I make a cron run every N minutes?
Put */N in the first field and * in the other four. For example */10 * * * * runs every 10 minutes, */30 * * * * every half hour. N must divide evenly into 60 for a perfectly regular schedule (e.g. */25 resets at the top of each hour).
Why does my cron job run at the wrong time?
Cron runs in the server’s timezone, not yours. The next-run preview above uses your browser’s local timezone — if your server runs in UTC, add the difference. Many hosting panels let you set the crontab timezone per job.
My crontab says the expression is invalid but it looks fine
The validator above pinpoints the exact field: most rejections are a value out of range (minute 60, month 13), a zero step (*/0), a reversed range (10-5), or a 6-field expression with a seconds/year field, which classic cron does not support.
What’s the difference between day-of-month and day-of-week restrictions?
If you restrict both field 3 and field 5, standard cron fires when either matches (a union, not an intersection). 0 0 13 * fri runs on the 13th and every Friday. If this surprises you, restrict only one of the two fields.