failover.io
  1. Home
  2. Free tools
  3. Cron expression tester

Cron expression tester

Paste a 5 field crontab expression to see what it means and the next 10 run times, in your time zone and in UTC.

Meaning
#Local timeUTCIn

Cron syntax: the five fields

┌ minute (0 to 59)
│ ┌ hour (0 to 23)
│ │ ┌ day of month (1 to 31)
│ │ │ ┌ month (1 to 12 or JAN to DEC)
│ │ │ │ ┌ day of week (0 to 6 or SUN to SAT, 7 is also Sunday)
* * * * * command

The tester understands * (every value), steps like */15, ranges like 1-5 and 1-10/2, lists like 1,15,30 and mixes like 0-20/5,45. Month and weekday names work in any case. When both day of month and day of week are set, the job runs when either one matches, as in Vixie cron and cronie.

It doesn't accept @daily, L, W, # or a sixth field for seconds, because those differ between cron versions.

Common cron expressions

The chips above the tester load the most used ones. Each interval also has its own page with the details and the mistakes to avoid: every minute, every 5 minutes, every 15 minutes, every 30 minutes, every hour and every 6 hours. Daily, weekday, weekly and monthly schedules are on the cron schedule examples page.

Why a cron job runs at the wrong time

Usually it's the time zone. Cron uses the server's time zone, so 0 3 * * * on a UTC server runs at 22:00 the day before in New York. That's why the tester shows each run in your time zone and in UTC side by side. Daylight saving time can also skip or repeat runs set between 01:00 and 03:00, depending on the cron version.

The other common surprise is a wildcard in the minute field: * 2 * * * runs every minute from 02:00 to 02:59, sixty times, when you meant 0 2 * * *.

When the job stops running

Most cron incidents have nothing to do with the expression. A server is rebuilt without its crontab, a deploy overwrites it, the disk fills up or the script starts exiting with 1 and nobody reads the mail. Cron tells no one. A heartbeat catches all of it: the job pings a URL after each successful run, and you get an alert when a ping is late. See how to monitor cron jobs, or running a PHP script with cron for PHP.

Frequently asked questions

How do I test a cron expression?

Paste it into the tester above. It explains the expression and lists the next 10 runs in your time zone and in UTC.

Which time zone does cron use?

The server's time zone. Check it with timedatectl or date. GitHub Actions schedules run in UTC unless the workflow sets a timezone.

What does */5 mean in cron?

Every fifth value starting at the lowest. In the minute field, */5 runs at :00, :05, :10 and so on.

Does the tester support @daily or seconds?

No. It follows the five standard fields that work in every crontab. Use 0 0 * * * for daily.