DevToolCase
Sign in Sign in

Explain a cron expression

Read a cron expression in plain words and see its next runs; build one from a form in the other tab.

Share this result

Encrypted in your browser. The key stays in the link, after “#”: only the people you give it to can read it, not even DevToolCase.

The link works for

Sign in for longer links or links without expiry, and to find them in your account.

Examples:

Runs entirely in your browser: nothing you type is sent or stored.

How to read a cron expression

A cron expression has five fields separated by spaces. The job runs every minute whose time matches all of them.

FieldAllowed values
1. Minute0-59
2. Hour0-23
3. Day of the month1-31
4. Month1-12 or JAN-DEC
5. Day of the week0-6 or SUN-SAT, Sunday being 0 or 7

So 30 8 * * 1-5 reads: minute 30, hour 8, any day of the month, any month, Monday to Friday.

Special characters

CharacterMeaningExample
*every value* * * * * runs every minute
,a list0 9,18 * * * runs at 9:00 and 18:00
-a range0 9 * * 1-5 runs at 9:00, Monday to Friday
/a step*/15 * * * * runs every 15 minutes

Shortcuts such as @daily, @weekly or @hourly are read too: @daily is 0 0 * * *.

Common examples

ExpressionRuns
*/5 * * * *every 5 minutes
0 * * * *every hour, on the hour
0 0 * * *every day at midnight
30 2 * * 0every Sunday at 2:30
0 9 * * 1every Monday at 9:00
0 0 1 * *on the first day of every month, at midnight

The day trap

When both the day of the month and the day of the week are set, cron runs when either matches: 0 0 13 * 5 runs on every 13th and on every Friday, not only on Friday the 13th. The next runs listed above take this rule into account.

Which time zone?

Cron uses the time zone of the machine that runs it, often UTC on servers and in the cloud (GitHub Actions always uses UTC). The next runs are shown in your time zone: check the gap with your server's.

Rather fill in a form? Generate a cron expression.

Add this browser’s favorites to your account?

This browser has 0 favorites that your account does not have:

Either way, this browser keeps its favorites: you find them again after signing out.