Free tools · Cron expression explainer
Cron expression explainer
Paste a crontab schedule. See what it means, when it runs next, and how to find out when it stops.
Common schedules
In plain English
Every 5 minutes
Field by field
- minute
*/5every 5th minute: 0, 5, 10 … 55 - hour
*every hour - day of month
*every day - month
*every month - day of week
*every day of the week
Both day fields are set, so it runs on a day that matches either one, not both.
Next 5 runs in UTC
Cron uses the server's time zone. Most servers run in UTC; check with date on the server.
Know when it stops running
*/5 * * * * /path/to/your-job.sh && curl -fsS -m 10 https://<your heartbeat URL> > /dev/null- Expected every
- 5 minutes
- Grace
- 5 minutes
This job runs less than once a day. 12happy heartbeats cover jobs that run at least daily.
Heartbeat monitors are on Pro ($15 a month, or $12 billed yearly) and Agency. Free covers website, keyword, ping and port checks.
Cron syntax cheat sheet
┌───────── minute (0–59) │ ┌─────── hour (0–23) │ │ ┌───── day of month (1–31) │ │ │ ┌─── month (1–12) │ │ │ │ ┌─ day of week (0–7, 0 and 7 are Sunday) │ │ │ │ │ * * * * * command
*every value,a list-a range/a step (*/5= every 5th)
Common mistakes
- Day of month and day of week together. If both are set (not
*), standard cron runs when either matches, not both.0 0 13 * 5runs on every 13th and every Friday. - The job runs, but fails. Cron only starts the command. Exit codes and errors go to local mail or nowhere. Add
&&before the ping so a failed job doesn't ping. - Environment. Cron runs with a minimal
PATHand no shell profile. Use full paths in the command.
On other platforms
- GitHub Actions (
on: schedule): Same 5-field syntax, in UTC by default. The shortest interval is 5 minutes, and runs can start late under load. GitHub docs - Kubernetes CronJob: Same 5-field syntax. Set the time zone with
.spec.timeZone(stable since v1.27), not withCRON_TZin the schedule. Kubernetes docs - Vercel Cron Jobs: Hobby runs at most once a day, timed within the hour. Pro can run every minute. Vercel docs
Questions
What does */5 mean?
Every 5th value of the field, counted from the start of its range. In the minute field, */5 means "every minute that divides by 5", so runs land on :00, :05, :10 and so on, not 5 minutes after you saved the crontab. It is the same as 0,5,10,…,55.
Is cron in UTC?
Cron uses the server's time zone. Most servers run in UTC; check with date on the server. A server in UTC runs 0 0 * * * at 00:00 UTC, which is 19:00 in New York (EST) and 02:00 in Tel Aviv (IST).
What's the difference between 0 * * * * and * * * * *?
0 * * * * runs at minute 0 of every hour, 24 times a day. * * * * * runs at the start of every minute, 1,440 times a day. If an hourly job runs every minute, the minute field is *: set it to 0.
How do I know if my cron job ran?
Look in the system log (grep CRON /var/log/syslog, or journalctl -u cron). To be told when it doesn't run, add a heartbeat ping after the command: the job calls a URL each time it succeeds, and you get an alert when the call doesn't arrive.