SiteBox

Cron Expression Generator & Explainer

Free Online Crontab Generator & Schedule Explainer

Build a 5-field cron schedule with the dropdown builder, or paste any crontab expression to get a plain-English explanation and the next five run times.

How to Use the Cron Expression Generator

1. Build or Paste a Schedule

Use the five dropdowns to pick the minute, hour, day of month, month and day of week — including wildcards (*) and step values (*/N). Or paste an existing cron expression into the explainer tab.

2. Read the Plain-English Explanation

Each field is translated into a human-readable phrase, so you can verify the schedule at a glance.

3. Copy the Next Run Times

The tool calculates the next five execution times in your local timezone. Copy the expression straight into crontab, cron job schedulers, or CI pipelines.

What is a Cron Expression?

A cron expression is a string of five fields — minute (0–59), hour (0–23), day of month (1–31), month (1–12) and day of week (0–6, where 0 or 7 is Sunday) — that tells a scheduler when to run a job.

The standard crontab syntax supports the wildcard * (every value), step values such as */5 (every 5 units), lists like 1,15,30, and ranges like 9-17.

For example, */5 * * * * runs every five minutes, 0 0 * * * runs daily at midnight, and 0 9 * * 1-5 runs at 9:00 AM every weekday. This tool is useful for developers configuring Linux cron jobs, GitHub Actions schedules, AWS CloudWatch events, and most cron-compatible schedulers.

Ten Schedules People Actually Use

Copy any of these into the Explain tab to see the plain-English reading and the next five run times on your own clock.

ExpressionRunsTypical job
*/15 * * * *Every 15 minutesPolling an inbox or queue
0 * * * *At minute 0 of every hourHourly metrics rollup
30 2 * * *02:30 every dayNightly database backup
0 9 * * 1-509:00 Monday to FridayMorning report email
0 18 * * 518:00 every FridayWeekly timesheet reminder
0 0 1 * *Midnight on the 1st of each monthMonthly invoices
0 6 1 1,4,7,10 *06:00 on the first day of each quarterQuarterly export
0 */6 * * *00:00, 06:00, 12:00, 18:00Cache refresh
0 8-18 * * 1-5On the hour, 08:00–18:00, weekdaysBusiness-hours health check
0 3 * * 003:00 every SundayLog rotation and cleanup

Reading the Five Fields

Standard cron, the format used by crontab on Linux and macOS, Kubernetes CronJobs and GitHub Actions schedule, has exactly five fields separated by spaces:

┌ minute (0-59)
│ ┌ hour (0-23)
│ │ ┌ day of month (1-31)
│ │ │ ┌ month (1-12)
│ │ │ │ ┌ day of week (0-7, 0 and 7 are Sunday)
* * * * *

Each field accepts four kinds of values: * for every value, a list such as 1,15, a range such as 9-17, and a step such as */10 (every tenth value starting from the lowest). A step on a range also works: 0-30/10 means minutes 0, 10, 20 and 30.

The Day-of-Month / Day-of-Week Trap

This rule surprises almost everyone once. When both day fields are restricted, cron runs when either one matches, not when both do. So

0 9 13 * 5

does not mean "Friday the 13th". It means 09:00 on the 13th of every month and 09:00 every Friday. The run-time preview on this page follows the same rule, so paste the expression in and look at the dates before you deploy it. If you need "the first Monday of the month", standard cron cannot express it; schedule 0 9 1-7 * * and have the script exit unless the day is Monday.

Other Mistakes That Ship to Production

  • A star in the minute field. * 2 * * * runs sixty times, every minute from 02:00 to 02:59. You almost certainly wanted 0 2 * * *.
  • Time zones. crontab uses the server's time zone; GitHub Actions and many cloud schedulers use UTC. The next-run times here are shown in your browser's time zone, so convert if the server lives elsewhere. Our Time Zone Converter helps.
  • Daylight saving time. In zones with DST, a job at 02:30 may be skipped on the night clocks spring forward and, on some systems, run twice when they fall back. Schedule critical jobs outside 01:00–03:00 local time, or run the server in UTC.
  • Six or seven fields. Quartz (Java) and Spring cron expressions add a seconds field at the start and sometimes a year at the end. This tool validates the standard five-field form only.
  • Special characters from other dialects. L, W, # and ? are Quartz extensions and won't work in crontab.

How This Tool Computes Run Times

Everything runs in your browser. The expression is split into five fields, each field is expanded into the set of values it allows, and the tool then steps forward minute by minute from now, checking each minute against all five sets (with the either-day rule above) until it has found five matches. That brute-force approach is slow for a server but perfectly fast for five results, and it means the preview reflects exactly what the fields say rather than an approximation.

For checking the time between two runs, or how long a job window is, the Work Hours Calculator can be handy. More utilities are in developer tools.

Frequently Asked Questions

How do I run a cron job every 5 minutes?

Use */5 * * * *. The */5 in the minute field matches minutes 0, 5, 10 and so on up to 55.

What does 0 0 * * 0 mean?

Midnight every Sunday. Both 0 and 7 represent Sunday in the day-of-week field.

Why does my job with both a date and a weekday run too often?

When day of month and day of week are both restricted, cron runs when either one matches. Restrict only one of them and check the other inside your script.

Which time zone do the next run times use?

They are shown in your browser's local time zone. Your server or scheduler may use a different one, often UTC.

Does this support Quartz or seconds fields?

No. It supports the standard five-field cron format used by crontab, Kubernetes and GitHub Actions.