1. Home
  2. Generators & Encoders
  3. Cron Expression Explainer

Cron Expression Explainer

Explain a five-field cron expression in plain words and list the next times it will run, so you can check a schedule before you ship it.

What it is for?
Runs in your browser Free, no sign-up
Five fields: minute, hour, day of month, month, day of week.

What it is for?

A cron expression is the schedule line used by crontab, the Laravel scheduler, Kubernetes CronJobs and most CI systems. It is easy to write one that runs at the wrong time and only notice a week later. Type the expression here to read it back in plain words and see the next five times it would run.

Five fields, and the weekday rule

The fields are minute, hour, day of month, month and day of week. Names such as JAN or MON are accepted, and 7 means Sunday just as 0 does. When both the day of month and the day of week are restricted, a run happens if either one matches. That is the usual cron rule, not a requirement that both match. Seconds are not part of this five-field form.

Examples

  • */15 9-18 * * 1-5: every 15 minutes from 09:00 to 18:59, Monday to Friday.
  • 0 3 * * *: every night at 03:00.
  • 0 9 1 * MON: at 09:00 on the first of the month and on every Monday, not only on a Monday that falls on the first.
  • 0 0 31 2 *: never, because February has no 31st. The tool says there is no run in the next year.

Things to watch

The next run times are shown in the time zone of your device. The server that runs the job may use another zone, often UTC, so a job set for 03:00 can run at 06:00 in Istanbul. Shortcuts such as @daily and extras such as L, W or # from Quartz are not supported here; write the five fields out instead.

The expression is parsed in this tab and is not sent to our server.