Cron expressions look tiny, which makes subtle scheduling bugs easy to ship: a misplaced wildcard can turn a nightly job into a 60-times-per-hour loop, and mixing day-of-month with day-of-week rarely does what people expect. Keep this reference handy and verify upcoming run timestamps before deploying with the Cron Expression Generator.
The five standard cron fields
Standard Unix crontab — used by Linux cron, Kubernetes CronJob, GitHub Actions, and most cloud schedulers — takes five space-separated 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; 0 = Sunday)
│ │ │ │ │
* * * * *
Operators and shortcuts
| Syntax | Meaning | Example |
|---|---|---|
* | Every value in that field | * * * * * (every minute) |
, | List of specific values | 0 9,17 * * * (09:00 and 17:00) |
- | Inclusive range | 0 9 * * 1-5 (Monday through Friday at 09:00) |
/ | Step interval | */15 * * * * (minutes 0, 15, 30, 45) |
@hourly | Shortcut for 0 * * * * | Top of every hour |
@daily | Shortcut for 0 0 * * * | Midnight every day |
@weekly | Shortcut for 0 0 * * 0 | Midnight every Sunday |
@monthly | Shortcut for 0 0 1 * * | Midnight on the 1st of each month |
@yearly | Shortcut for 0 0 1 1 * | Midnight on January 1st |
Twelve copy-paste schedules
| Schedule | Expression | Plain English |
|---|---|---|
| Every 5 minutes | */5 * * * * | At minutes 0, 5, 10, …, 55 |
| Every 15 minutes | */15 * * * * | At minutes 0, 15, 30, 45 |
| Every hour on the half-hour | 30 * * * * | At :30 past every hour |
| Every 6 hours | 0 */6 * * * | At 00:00, 06:00, 12:00, 18:00 |
| Daily at midnight | 0 0 * * * | Every day at 00:00 |
| Daily at 02:30 | 30 2 * * * | Off-peak backup window |
| Weekdays at 09:00 | 0 9 * * 1-5 | Monday–Friday at 09:00 |
| Weekends at 10:00 | 0 10 * * 0,6 | Saturday and Sunday at 10:00 |
| Mon, Wed, Fri at 08:30 | 30 8 * * 1,3,5 | Three mornings per week |
| First day of every month | 0 0 1 * * | 1st of the month at 00:00 |
| Quarterly (Jan/Apr/Jul/Oct) | 0 0 1 1,4,7,10 * | 1st of each quarter at 00:00 |
| Business hours every 10 min | */10 9-17 * * 1-5 | Every 10 min from 09:00–17:50 Mon–Fri |
Four cron traps that break production jobs
1. Day-of-month AND day-of-week is actually OR
Setting both field 3 and field 5 does not mean "only when both match". In Vixie cron, 0 9 13 * 5 runs on the 13th of every month AND every Friday — not just Friday the 13th. If you truly need an intersection, schedule the broader rule and guard the date inside your script.
2. Forgetting the minute field (* 2 * * *)
Writing * 2 * * * when you meant "once a day at 02:00" runs the job 60 times — once every minute from 02:00 through 02:59. Always pin the minute (0 2 * * *).
3. UTC vs local time and Daylight Saving Time
GitHub Actions, Kubernetes CronJob (unless timeZone is set), and most serverless schedulers evaluate cron in UTC. If a scheduler runs in a local time zone with Daylight Saving Time, jobs scheduled between 02:00 and 02:59 can be skipped during spring-forward or executed twice during fall-back. Cross-check UTC offsets with the Epoch Converter.
4. 5-field Unix cron vs 6-field Quartz/AWS cron
Standard Unix cron has 5 fields starting with minutes. Quartz, Spring, and some cloud platforms prepend a seconds field (0 */5 * * * ?) or append a year field, and use ? to leave day-of-month or day-of-week unspecified. Check your runner's documentation before pasting a 6-field expression into a 5-field config.
Validate before you commit
Paste any crontab string into the Cron Expression Generator to read its plain-English meaning, catch invalid ranges immediately, and inspect the exact next run dates in your browser — no account and no server round trip. Pick Unix, Spring, Quartz or AWS EventBridge to check 6- and 7-field expressions by their own rules.