Cron every hour: the expression
0 * * * *
A 0 in the minute field fixes the minute and the * in the hour field lets every hour match, so the job runs once an hour, at the top of the hour. Most cron implementations also accept the shortcut @hourly, which means exactly this expression.
This page opens the crontab generator with the expression loaded: it describes it in plain words, checks every field and lists the next runs in the time zone you choose. Read by the tool: "Every hour".
Field by field
| Field | Allowed values | Here |
|---|---|---|
| minute | 0-59 | 0 |
| hour | 0-23 | * |
| day of month | 1-31 | * |
| month | 1-12 | * |
| day of week | 0-7 (0 and 7 = Sunday) | * |
Minute 0, hour * (all 24), day *, month *, weekday *.
The next runs
Counted from Mon, Jan 5, 2026, 08:07:00 (UTC), the first five runs are:
- Mon, Jan 5, 2026, 09:00:00
- Mon, Jan 5, 2026, 10:00:00
- Mon, Jan 5, 2026, 11:00:00
- Mon, Jan 5, 2026, 12:00:00
- Mon, Jan 5, 2026, 13:00:00
In a crontab
crontab -e
0 * * * * /usr/local/bin/rotate-reports.sh
crontab -l # lists what is installedThe same schedule in other systems
| System | Expression |
|---|---|
| Linux cron, Kubernetes CronJob, GitHub Actions (5 fields) | 0 * * * * |
| Quartz and Spring (6 fields, with seconds) | 0 0 * * * ? |
| AWS EventBridge (6 fields, with year) | cron(0 * * * ? *) |
The tool reads the three forms and produces exactly the same runs for them; the page checks that while it is built. To run at another minute, change the first field: 30 * * * * is at :30 of every hour. In daylight saving transitions an hourly job in a local time zone can run twice or be skipped once, which is why servers are best kept in UTC.
What it is used for
- Rotating or compressing logs and cleaning temporary files.
- Hourly snapshots of metrics, balances or counters for a dashboard.
- Refreshing a data export that other teams pick up during the day.
Common mistakes
- Writing * * * * * and thinking "every hour": a * in the minute field means every minute. The 0 is what makes it hourly.
- Running at minute 0 together with every other hourly job on the server: stagger them (minute 7, 13, 41) so that they do not all start together.
How to use the generator
- The expression is already in the box; edit any field, or toggle values in the field editor.
- Choose the style (Linux, with seconds, Quartz or AWS) and the time zone, and see the next 5, 10 or 20 runs.
- Copy the expression into your crontab, your workflow file or your EventBridge rule.
Frequently asked questions
What is the cron expression for every hour?
0 * * * *, or @hourly where it is supported. For every 2 hours use 0 */2 * * *.
What is the difference between 0 * * * * and * * * * *?
The first runs once an hour, at minute 0; the second runs every minute, 60 times an hour. The minute field decides.
Does @hourly work everywhere?
In Vixie cron and most Linux crons, yes. Quartz and AWS EventBridge do not accept it; write the full expression for them, as in the table above.