You know exactly what you want: the sync every 15 minutes during office hours, the invoice run on the 1st, the report every Monday at nine. What you can't quite remember is which of the five stars is the weekday, and whether the scheduler you're pasting into reads them the same way the last one did.
This page answers both. It covers the syntax once, gives you a searchable library of the expressions teams actually use, and then spends real time on the part most cheat sheets skip: the same line behaves differently in Linux crontab, Quartz, AWS, GitHub Actions, Vercel and Kubernetes. If you only want the dense reference grid, the CronTool cheat sheet is that. If you'd rather not write cron at all, the natural-language cron generator turns "every weekday at 9:30 in Berlin" into an expression.
Five fields, read left to right
A standard cron expression is five fields separated by spaces. Read it left to right, from the smallest unit to the largest, with the day of week tacked on at the end.
┌───────── minute (0-59)
│ ┌─────── hour (0-23)
│ │ ┌───── day of month (1-31)
│ │ │ ┌─── month (1-12 or JAN-DEC)
│ │ │ │ ┌─ day of week (0-6, Sunday is 0; crontab also takes 7)
│ │ │ │ │
* * * * *A * means "any value", so * * * * * runs every minute of every day. Each field you fill in narrows that down: 30 9 * * 1-5 is minute 30, hour 9, any day of the month, any month, Monday to Friday. Edit the one below and watch the field meanings and the next runs change.
Try it: edit the expression
30
minute
minute 30
9
hour
hour 9
*
day of month
every day of month
*
month
every month
1-5
weekday
weekday Mon through Fri
Next 5 runs in America/New_York
The special characters, and which ones travel
Four characters are universal. The rest are extensions, and the scheduler you paste into decides whether they mean anything.
| Symbol | Meaning | Example | Works in |
|---|---|---|---|
* | Any value | * * * * * every minute | Everywhere |
, | List | 0,30 * * * * on :00 and :30 | Everywhere |
- | Range | 0 9-17 * * * hourly, 09:00 to 17:00 | Everywhere |
/ | Step | */15 * * * * every 15 minutes | Everywhere (AWS writes 0/15) |
? | No specific value | 0 12 ? * MON noon on Mondays | Required in Quartz and AWS |
L | Last | 0 0 L * * last day of the month | Crontap, Quartz, AWS |
# | Nth weekday of the month | 0 9 * * MON#1 first Monday | Crontap, Quartz, AWS |
W | Nearest weekday | 0 9 15W * * weekday nearest the 15th | Quartz, AWS |
@ | Shorthand macros | @daily is 0 0 * * * | Linux crontab, Kubernetes, Crontap |
My rule: if the expression has to survive a move between platforms, stick to the first four. Reach for L and # when the scheduler you're on supports them, because the alternative (run daily and check the date in code) is more moving parts than the problem deserves.
Find the expression you need
Search by what you want to happen ("backup", "weekday", "quarterly") or by the expression itself. Copy a row, or press the arrows to send it to the translator further down and see how it reads in your scheduler.
Find an expression
40 of 40 patterns
- * * * * *Every minute
- */2 * * * *Every 2 minutes
- */5 * * * *Every 5 minutes
- */10 * * * *Every 10 minutes
- */15 * * * *Every 15 minutes
- */30 * * * *Every 30 minutes
- 0,30 * * * *On the hour and half past
- 5-59/15 * * * *Every 15 minutes, offset by 5
- 0 * * * *Every hour, on the hour
- 30 * * * *Every hour at half past
- 0 */2 * * *Every 2 hours
- 0 */3 * * *Every 3 hours
- 0 */4 * * *Every 4 hours
- 0 */6 * * *Every 6 hours
- 0 */12 * * *Every 12 hours
- 0 0 * * *Every day at midnight
- 0 2 * * *Every day at 02:00
- 0 6 * * *Every day at 06:00
- 30 9 * * *Every day at 09:30
- 0 18 * * *Every day at 18:00
- 0 0,12 * * *Midnight and noon
- 0 8,20 * * *08:00 and 20:00
- 0 9-17 * * 1-5Hourly, 09:00 to 17:00, weekdays
- */15 9-17 * * 1-5Every 15 min in business hours
- 30 8 * * 1-5Weekdays at 08:30
- 0 9,13 * * 1-5Weekdays at 09:00 and 13:00
- 0 22-23,0-5 * * *Hourly overnight, 22:00 to 05:00
- 0 9 * * 1Mondays at 09:00
- 0 17 * * 5Fridays at 17:00
- 0 12 * * 1,3,5Mon, Wed and Fri at noon
- 0 10 * * 6,0Weekends at 10:00
- 0 0 * * 0Sundays at midnight
- 0 9 * * 2,4Tue and Thu at 09:00
- 0 0 1 * *1st of the month at midnight
- 0 9 1 * *1st of the month at 09:00
- 0 0 15 * *15th of the month at midnight
- 0 0 1,15 * *1st and 15th at midnight
- 0 0 1 */3 *Quarterly, 1st of Jan, Apr, Jul, Oct
- 0 0 1 1 *Once a year, 1 January
- 0 0 28-31 * *28th to 31st (last-day check in code)
The sections below explain the families in the library and the traps in each one.
Minute-level patterns: cron counts from the top of the hour
| Expression | Runs | Typical use |
|---|---|---|
* * * * * | Every minute | Health checks, dev testing |
*/2 * * * * | Every 2 minutes | Polling a job's status |
*/5 * * * * | Every 5 minutes | Data sync, polling an API |
*/15 * * * * | Every 15 minutes | Status checks, light syncs |
*/30 * * * * | Every 30 minutes | Medium-frequency syncs |
0,30 * * * * | On the hour and at half past | Twice hourly, on the dot |
*/5 means "every minute divisible by 5", counted from minute 0 of each hour. It's wall-clock time, not "five minutes after I created this", which is why two schedules created at different moments still fire together.
The step only behaves when it divides 60 evenly. */7 fires at :00, :07 and so on up to :56, then again at :00, so one gap per hour is 4 minutes instead of 7. If you need a true 7-minute rhythm, cron is the wrong tool; pick 5 or 10 and move on. The every 5 minutes recipe has the copy-paste version for each platform.
Hourly patterns: step form, and stay off :00
| Expression | Runs | Typical use |
|---|---|---|
0 * * * * | Every hour on the hour | Cache refresh, digests |
7 * * * * | Every hour at :07 | Same, without the :00 crowd |
0 */2 * * * | Every 2 hours | Moderate-frequency tasks |
0 */4 * * * | Every 4 hours (6 a day) | Periodic summaries |
0 */6 * * * | Every 6 hours (4 a day) | Reconciliation, cleanups |
0 */12 * * * | Every 12 hours | Twice-daily jobs |
I'd write 0 */4 * * * over 0 0,4,8,12,16,20 * * *. They fire at exactly the same times, but the step form tells the next reader the intent at a glance. The same divide-evenly rule applies: 0 */5 * * * runs at 00, 05, 10, 15 and 20, then waits four hours for midnight.
Here's the opinionated bit: if the exact minute doesn't matter, don't use :00. Everyone else's hourly job fires at the top of the hour too, so that's when APIs rate-limit and shared runners queue. GitHub's docs say outright that scheduled workflows can be delayed during high load, and that high load includes the start of every hour (more in the GitHub Actions cron drift post). Minute 7 costs nothing.
Daily patterns: the time is in the scheduler's timezone
| Expression | Runs | Typical use |
|---|---|---|
0 0 * * * | Midnight every day | Nightly batch, rollups |
0 2 * * * | 02:00 every day | Backups, quiet-hour work |
30 9 * * * | 09:30 every day | Standup reminder |
0 18 * * * | 18:00 every day | End-of-day report |
0 0,12 * * * | Midnight and noon | Twice daily |
The hour field has no timezone attached. If the scheduler runs in UTC and your team is in New York, 0 9 * * * fires at 04:00 or 05:00 local time depending on the season. The timezone section below covers who defaults to what.
One more reason to keep important jobs away from 01:00-02:59 in a local timezone: that's where daylight saving lives. On the spring night, 02:00 to 02:59 doesn't exist in the US or central Europe (01:00 to 01:59 in London), and in autumn an hour repeats. Linux crontab skips jobs in the missing hour and runs jobs in a repeated hour twice. 03:30 sidesteps both.
Business hours and weekdays
| Expression | Runs |
|---|---|
0 9-17 * * 1-5 | Every hour from 09:00 to 17:00, Mon-Fri |
*/15 9-16 * * 1-5 | Every 15 minutes, 09:00 to 16:45, Mon-Fri |
30 8 * * 1-5 | 08:30 on weekdays |
0 9,13 * * 1-5 | 09:00 and 13:00 on weekdays |
0 17 * * 5 | 17:00 on Fridays |
Ranges are inclusive, and that bites with steps. */15 9-17 * * 1-5 doesn't stop at 17:00: hour 17 is in range, so it also runs at 17:15, 17:30 and 17:45. If the last run should be 17:00, use */15 9-16 * * 1-5 plus a separate 0 17 * * 1-5, or accept the 16:45 finish.
1-5 is Monday to Friday and 6,0 is the weekend. Linux crontab also accepts 7 for Sunday, but Kubernetes and Vercel document the field as 0-6, so 0 is the portable choice. The every weekday recipe has the per-platform versions.
Weekly patterns
| Expression | Runs | Typical use |
|---|---|---|
0 9 * * 1 | 09:00 every Monday | Weekly kickoff report |
0 17 * * 5 | 17:00 every Friday | Weekly wrap-up |
0 12 * * 1,3,5 | Noon Mon, Wed and Fri | Three times a week |
0 10 * * 6,0 | 10:00 on weekends | Weekend-only task |
0 0 * * 0 | Sunday midnight | Start-of-week reset |
Names like MON and FRI read better, and most schedulers accept them. Vercel Cron Jobs and Vercel Schedules don't (numbers only), and Quartz and AWS number the week from Sunday as 1, so 1-5 there means Sunday to Thursday. If you write names for Quartz and AWS, you can't get that off-by-one wrong.
Monthly patterns, and the last-day problem
| Expression | Runs | Typical use |
|---|---|---|
0 0 1 * * | Midnight on the 1st | Monthly billing run |
0 9 1 * * | 09:00 on the 1st | Monthly report email |
0 0 1,15 * * | Midnight on the 1st and 15th | Twice-monthly payout |
0 0 1 */3 * | 1st of Jan, Apr, Jul and Oct | Quarterly job |
0 0 1 1 * | Midnight on 1 January | Annual reset |
Five plain fields can't say "the last day of the month" or "the first Monday". Where the scheduler supports it, L and # do it directly: 0 0 L * * and 0 9 * * MON#1 both work in Crontap, Quartz and AWS (with their extra fields). Everywhere else, run on 28-31 and let the job exit unless tomorrow is the 1st. The last day of the month recipe and the first day of the month recipe have the date-check lines.
Common real-world patterns
These are the expressions people reach for most. Steal them.
| What you want | Expression |
|---|---|
| Health check every minute | * * * * * |
| Poll an external API every 5 minutes | */5 * * * * |
| Sync every 15 minutes in business hours, weekdays | */15 9-16 * * 1-5 |
| Warm the cache every 2 hours | 0 */2 * * * |
| Nightly backup at 03:30 | 30 3 * * * |
| Daily digest at 08:30 on weekdays | 30 8 * * 1-5 |
| Weekly report on Monday at 09:00 | 0 9 * * 1 |
| Monthly invoices on the 1st at midnight | 0 0 1 * * |
| Quarterly reset on the 1st of Jan, Apr, Jul and Oct | 0 0 1 */3 * |
Same expression, different scheduler
Cron is a family of dialects that agree on the basics and disagree on the edges. Here's how the schedulers you're most likely to paste into differ, from each vendor's docs as of November 2026: crontab(5), Quartz, EventBridge Scheduler, GitHub Actions, Vercel Cron Jobs and Kubernetes.
| Scheduler | Fields | Sunday | Names | L # W | Shortest run |
|---|---|---|---|---|---|
| Crontap | 5, plus @daily macros | 0 or 7 | Yes | L and # | 1 hour free, 1 minute paid |
| Linux crontab | 5 | 0 or 7 | Yes | No | 1 minute |
| Quartz / Spring | 6-7, seconds first | 1 | Yes | Yes | 1 second |
| AWS EventBridge | 6 in cron(), year last | 1 | Yes | Yes | 1 minute |
| GitHub Actions | 5 | 0 | Yes | No | 5 minutes |
| Vercel Cron Jobs (legacy) | 5 | 0 | No | No | 1/day Hobby, 1 minute Pro |
| Vercel Schedules (beta) | 5 | 0 | No | No | 15 min Hobby, 1 minute Pro |
| Kubernetes CronJob | 5, plus @hourly macros | 0 | Yes | No | 1 minute |
Type or pick an expression and you get the version each one expects, with the gotchas that apply. Rows from the library above land here when you press their arrows.
One schedule, seven schedulers
Rules as documented, Nov 2026
Linux crontab
SameSystem timezone, or CRON_TZ= on cronie
Quartz / Spring
RewrittenSet on the trigger in code
- Seconds come first, and one day field must be ?.
- Weekday numbers start at SUN=1, one higher than crontab.
AWS EventBridge
RewrittenUTC, or ScheduleExpressionTimezone on Scheduler
- Six fields: a year comes last, and one day field must be ?.
GitHub Actions
SameUTC, or a timezone: key on the entry
- Expect delays at the top of the hour; default branch only.
Vercel Cron Jobs (legacy)
SameAlways UTC
Vercel Schedules (beta)
SameAny IANA timezone, per schedule
- Each run starts inside a jitter window: 15 min on Hobby, 1 min by default on Pro.
Kubernetes CronJob
Same.spec.timeZone (stable since v1.27)
Crontap
SameAny IANA timezone, per schedule
The three differences that cause most real incidents:
- Sunday is not always 0. Quartz and AWS count from Sunday as 1, so
1-5copied from crontab runs Sunday to Thursday there. Writing names avoids the shift. - Both day fields set. Crontab and GitHub Actions OR them, Quartz and AWS demand
?in one, and Vercel won't deploy the expression. The same line can run five extra days a month, or fail to save. - Extra fields. A Quartz expression starts with seconds and an AWS one ends with a year, so a six-field string means nothing until you know where it came from. Paste a Quartz line into AWS and every field shifts by one.
If you're moving a whole set of jobs, the cron migrator converts Vercel, GitHub Actions, EventBridge and crontab configs between each other. The Quartz and AWS expression tools on CronTool go deeper on those two dialects.
Getting timezones right
A cron expression has no timezone. It means "this pattern, on whatever clock the scheduler runs", and the defaults differ (as of November 2026):
- Linux crontab uses the system timezone, or
CRON_TZ=at the top of the table on cronie. - GitHub Actions runs in UTC unless you add
timezone:with an IANA name next to thecron:entry. - AWS EventBridge Scheduler evaluates in UTC unless you set
ScheduleExpressionTimezone. - Kubernetes uses the controller manager's local zone unless the CronJob sets
.spec.timeZone, stable since v1.27.CRON_TZ=inside the schedule is rejected. - Vercel Cron Jobs (legacy) are always UTC. Vercel Schedules, in public beta as of November 2026, takes an IANA timezone per schedule and follows daylight saving (UTC if you leave it out). The Vercel cron limits post shows what a UTC-only entry does to a 07:00 report.
- Containers follow the image: Alpine stays on UTC until you install
tzdataand setTZ. The Docker cron jobs guide covers the Debian, Alpine and supercronic setups.
Daylight saving is where a fixed UTC entry hurts. 0 14 * * 1-5 is 09:00 in New York in winter and 10:00 in summer, so either the handler computes offsets or someone edits the schedule twice a year. A scheduler that stores an IANA zone per job follows the change for you. If your users span regions, give each region its own schedule with the same expression and its own zone.
Five-field vs six-field cron (seconds)
Some systems add a field, and they don't agree on where:
- Quartz (Java, Spring's
@Scheduled) puts seconds first and allows an optional year at the end:0 0 9 ? * MON-FRIis 09:00 on weekdays. - AWS EventBridge puts a year last inside
cron():cron(0 9 ? * MON-FRI *). - node-cron and similar libraries accept an optional leading seconds field, so check the library's docs before assuming.
*/30 * * * * * # every 30 seconds in a seconds-first library
0/30 * * * * ? # the same in QuartzCrontap's parser accepts a leading seconds field too, but no schedule runs more than once a minute, and the same goes for most hosted schedulers. If you need sub-minute precision, you want a queue or a long-running worker, not cron.
Debugging cron expressions
Before you trust an expression, look at its next few runs. The free cron debugger on CronTool takes an expression and a timezone and shows a plain-English reading plus the upcoming runs, so a schedule that over-fires or never fires shows up before a real job does. To compare several schedules side by side, use the multiple cron jobs view.
When the expression is right and the job still doesn't run, the problem is usually the environment: PATH, permissions, the timezone, or a daemon that isn't running. The cron job not running checklist walks through those in order.
Gotchas we've hit the hard way
- Both day fields set means OR.
0 0 1 * 1is "the 1st, or any Monday" in crontab. See the first-Monday trap above. - Sunday is 0, 7 or 1 depending on the scheduler. Use 0 in five-field cron, and names in Quartz and AWS.
%in a crontab command is a newline unless you escape it as\%, sodate +%Fsilently breaks. This is a crontab command quirk, not an expression one, which is why it's so hard to spot.@rebootis a crontab hook, not a schedule.@dailyand@hourlywork in crontab, Kubernetes and Crontap; GitHub Actions and Vercel want the five fields.- Scheduled GitHub workflows switch themselves off. In a public repository with no activity for 60 days, GitHub disables them.
- Runs can overlap. If a job sometimes takes longer than its interval, two copies run at once unless the scheduler or the job prevents it. Make the job idempotent, or take a lock at the start.
When cron isn't the answer
- Sub-minute precision. Use a queue or a long-running loop.
- Event-driven work. Use a webhook or a pub/sub trigger.
- Workflows with dependencies. Use a workflow engine (Airflow, Temporal, Inngest, Trigger.dev).
- Durable, multi-hour retries. Hosted schedulers like Crontap retry failed calls with exponential backoff, but a real queue is better when retry state must survive restarts or span many hours.
For everything else (polling, nightly batches, weekly reports, hourly health checks, recurring webhooks), cron is still the right answer after 50 years.
Running these schedules
If you already have a machine with crontab, paste the line and you're done. The Linux cron guide covers crontab -e, logs and permissions.
If the job is an HTTP endpoint, a hosted scheduler saves you the machine. Crontap takes any expression above (L and MON#1 included) with an IANA timezone per schedule, lets you press Perform test before saving, and retries 5xx responses, timeouts and network errors with exponential backoff by default. When the attempts run out, it alerts you by email on every plan, or in Slack, Discord or Telegram on paid plans. The free plan covers 2 schedules, monitors or heartbeats combined, running hourly or slower; paid plans start at $2.99/mo and run every minute.
Prefer a guided setup? There are walkthroughs for Zapier, n8n and Make.com, and the use cases index has a page per job type.
Related on Crontap
- Cron recipes: copy-paste pages for one interval at a time, with the per-platform variants.
- What is a cron job in Linux: fields,
crontab -e, logs and permissions. - Vercel cron jobs limit and how to beat it: when a platform's built-in cron caps out.
- GitHub Actions cron drift: why scheduled workflows run late, and what to do about it.
- Docker cron jobs: the four patterns: these expressions in a container, a Compose service, Kubernetes or Swarm.
FAQ
Cron syntax questions
- What is the cron expression for every 5 minutes?
- */5 * * * *. The */5 in the minute field means every fifth minute counted from the top of the hour, so it fires at :00, :05, :10 and so on, not five minutes after you saved the schedule. GitHub Actions accepts it, since 5 minutes is its documented minimum; Vercel Cron Jobs only allow it on Pro.
- What does * * * * * mean in cron?
- Every minute of every hour of every day. The five fields are minute, hour, day of month, month and day of week, and * means any value, so nothing narrows it down.
- How do I write a cron job for weekdays only?
- Put 1-5 in the last field: 0 9 * * 1-5 runs at 09:00 Monday to Friday. Linux crontab, GitHub Actions and Kubernetes also accept MON-FRI, but Vercel Cron Jobs and Vercel Schedules only take numbers. Quartz and AWS count Sunday as 1, so in those two write MON-FRI rather than shifting the numbers by hand.
- Why does my cron job run on the 1st and on every Monday?
- Because classic cron ORs the two day fields. When both day of month and day of week are restricted, as in 0 9 1 * 1, the job runs when either one matches. Quartz and AWS refuse the combination (one of the two must be ?), and Vercel Cron Jobs and Vercel Schedules reject it outright. For the first Monday, use 0 9 * * MON#1 where # is supported (Crontap, Quartz, AWS) or check the date inside the job.
- Is Sunday 0 or 7 in cron?
- In Linux crontab, both. Kubernetes and Vercel document day of week as 0-6, so 0 is the portable choice. Quartz and AWS EventBridge count 1-7 starting from Sunday, which makes Sunday 1 and Monday 2 there.
- What is the difference between five-field and six-field cron?
- Standard cron has five fields, minute through day of week. Quartz adds seconds at the front (and an optional year at the end), so 0 0 9 ? * MON-FRI is 09:00 on weekdays. AWS EventBridge also has six fields, but its extra one is a year at the end, inside cron(...). A six-field string is ambiguous until you know which scheduler reads it.
- How do I run a cron job on the last day of the month?
- Standard five-field cron has no last-day token. Use L in the day-of-month field where it is supported: 0 0 L * * in Crontap, with seconds and ? in Quartz, and inside cron(...) on AWS. In plain crontab, GitHub Actions, Vercel or Kubernetes, run on the 28th to the 31st and exit early unless tomorrow is the 1st.
- What timezone does a cron expression use?
- Whatever the scheduler runs in, because the expression itself has no timezone. As of November 2026, Linux crontab uses the system zone (or CRON_TZ on cronie), GitHub Actions and EventBridge Scheduler default to UTC with an optional IANA zone, Kubernetes reads .spec.timeZone, Vercel Cron Jobs (legacy) are always UTC, and Vercel Schedules (public beta) takes an IANA timezone per schedule. Crontap stores an IANA timezone on each schedule and follows daylight saving changes.
- Can cron run every 30 seconds?
- Not in five-field cron, whose smallest unit is the minute. Quartz can (0/30 * * * * ?), and so can libraries that accept a seconds field. Hosted schedulers, Crontap included, stop at once a minute. If you really need sub-minute work, a queue or a long-running worker is the better tool.
