Cron Expression Generator

Build a cron schedule from simple choices or paste one to check it: see what it means in plain English and exactly when it will run next.

Build a schedule

Or a macro: @hourly, @daily, @weekly, @monthly, @yearly.

A cron line has no time zone of its own: it follows the clock of the machine that runs it. Linux servers, GitHub Actions and most cloud schedulers use UTC. Daylight-saving changes are included for zones that have them.

How to use it

  1. Build a schedule (every few minutes, hours, days, weeks or months) or tap a common one; the expression updates as you go.
  2. Or type or paste an expression to check it.
  3. Pick the time zone your server uses (UTC for most) and read the next 5 run times.

Cron format

A standard cron expression has five fields: minute (0–59), hour (0–23), day of the month (1–31), month (1–12 or JAN–DEC) and day of the week (0–7 or SUN–SAT, where both 0 and 7 are Sunday).

  • * every value, */15 every 15th, 1-5 a range, 1,15 a list.
  • 0 */2 * * *: every two hours on the hour. 0 0 1 * *: midnight on the 1st of each month.

Example

30 9 * * 1-5 reads “At 09:30 AM, Monday through Friday”. On a UTC server that's 9:30 UTC, which is 3:00 PM in India and 5:30 AM in New York during summer time; choose the zone to see it in that clock.

Descriptions come from the cronstrue library (MIT licence).

Frequently asked questions

Which time zone does a cron job use?

The clock of the machine or service that runs it: a cron line has no time zone of its own. Linux servers, GitHub Actions and most cloud schedulers use UTC. Pick your server's zone to see the real run times; daylight-saving changes are included.

How do I run a job every weekday at 9:30?

Use 30 9 * * 1-5: minute 30, hour 9, any day of the month, any month, Monday (1) to Friday (5). In the builder, choose Every week, set 09:30 and pick Mon to Fri.

What do @daily, @hourly and the other macros mean?

They're shortcuts most cron versions accept: @hourly is 0 * * * *, @daily (or @midnight) is 0 0 * * *, @weekly is 0 0 * * 0, @monthly is 0 0 1 * * and @yearly (or @annually) is 0 0 1 1 *. @reboot runs once when the machine starts.

What happens if I set both a day of the month and a weekday?

Standard cron runs the job when either one matches, so 0 0 13 * 5 runs on the 13th and on every Friday, not only on Friday the 13th.

Does it support seconds or years?

No. This is the standard 5-field format used by crontab, GitHub Actions, Kubernetes and most schedulers. Quartz and Spring use 6 or 7 fields with seconds first, so check your scheduler's format.

More text and developer tools

See all text and developer tools →

Can't find the tool you need? Tell us.