Cron Expression Generator and Validator: Next Run Times

Check five-field crontab syntax, expand every field, read the schedule in plain English and see exactly when it will run next.

Free · Instant · Private
Quick answer: A standard crontab line has five fields: minute hour day-of-month month day-of-week. For example */5 * * * * runs every five minutes, and 0 9 * * 1-5 runs at 09:00 every weekday. The calculator below expands each field, explains the schedule and lists the next five run times in your local time zone.
Validate and explain a cron expression
Five fields only. Asterisks, ranges, lists, steps and three-letter names are supported.
Validation
-

Field breakdown

Every field is expanded into the concrete values the cron daemon will match.

FieldRaw inputAllowed rangeExpanded valuesMeaning

Next five run times

Calculated in your browser's local time zone. A real cron daemon uses its host's time zone.

RunLocal dateLocal timeWeekday
Build an expression field by field
Choose a value for each field and copy a ready-to-use five-field expression.
Built expression
* * * * *

What a Cron Expression Contains

A cron expression is a compact way to describe a repeating schedule. The classic crontab format used by POSIX systems and Vixie cron has exactly five whitespace-separated fields. Each field is a set of permitted values; a job runs when the current minute satisfies every field at once, with one important exception for day-of-month and day-of-week described below.

PositionFieldAllowed valuesNames acceptedExample
1Minute0 to 59None*/5 = every fifth minute
2Hour0 to 23None9-17 = 09:00 to 17:00
3Day of month1 to 31None1,15 = the 1st and 15th
4Month1 to 12JAN to DECJAN,MAR = January and March
5Day of week0 to 7SUN to SAT1-5 = Monday to Friday

Both 0 and 7 mean Sunday in the day-of-week field. This tool normalises 7 to 0 so that a range such as 0-7 expands to the seven weekdays without a duplicate.

Field Ranges and Allowed Syntax

SyntaxMeaningExampleExpanded result
*Every value in the field's range* in hour0, 1, 2, ... 23
,A list of values1,15 in day of month1, 15
-An inclusive range9-17 in hour9, 10, ... 17
/A step applied to a range or a star*/15 in minute0, 15, 30, 45
a-b/nEvery nth value inside a range1-10/3 in day of month1, 4, 7, 10
a/nEvery nth value starting at a5/10 in minute5, 15, 25, 35, 45, 55
NamesThree-letter English names, case-insensitiveMON-FRI1, 2, 3, 4, 5

A step value must be a positive integer. Step 0, negative steps, empty list items, reversed ranges and out-of-range values are all rejected with a message naming the offending field. A field is considered restricted unless it is exactly a single asterisk, so */2 counts as restricted.

Worked Examples

ExpressionPlain English meaningMinutes per day
* * * * *Every minute of every day1,440
*/5 * * * *Every five minutes288
0 * * * *At the top of every hour24
0 9 * * 1-5At 09:00 Monday to Friday1 on matching days
30 2 * * 0At 02:30 every Sunday1 on matching days
0 0 1 * *At midnight on the first of every month1 on matching days
0 0 1 JAN *At midnight on 1 January1 per year
0 9-17 * * 1-5Every hour from 09:00 to 17:00 on weekdays9 on matching days

Worked Example: Every Weekday at 09:00

  1. Field 1 is 0, so only minute 0 of an hour is eligible.
  2. Field 2 is 9, so only hour 09 is eligible.
  3. Field 3 is *, so every day of the month is eligible and the field is not restricted.
  4. Field 4 is *, so all twelve months are eligible.
  5. Field 5 is 1-5, which expands to 1, 2, 3, 4, 5 for Monday through Friday. Because day-of-month is not restricted, the two day fields combine with AND and the job runs only on weekdays.

Starting from Thursday 1 January 2026, the next runs are Thursday 1 January at 09:00, Friday 2 January at 09:00, then Monday 5 January at 09:00. The weekend is skipped.

The Day-of-Month and Day-of-Week OR Rule

Classic cron has a surprising rule: if both the day-of-month and day-of-week fields are restricted, a date is a match when either field matches. For example 0 0 1 * MON runs at midnight on the first of every month and on every Monday, not only on Mondays that fall on the first. If either field is an asterisk, the two combine with AND instead.

Quartz Scheduler and some Spring implementations use different semantics and also add a seconds field. This calculator deliberately implements the five-field POSIX and Vixie cron behaviour, and rejects six-field expressions so that a Quartz string can never be silently misread.

How Next Run Times Are Calculated

  1. The expression is parsed into five sorted sets of allowed integer values.
  2. Starting at the beginning of the chosen start day, each of the following 2,922 days (eight years) is tested for month, day-of-month and day-of-week eligibility.
  3. For each eligible day, the allowed hours and minutes are combined in ascending order and turned into local timestamps.
  4. Any timestamp at or before the chosen start time is skipped.
  5. The first five remaining timestamps are displayed and can be copied as CSV.

An eight-year window is enough to reach even a 29 February schedule across a century boundary. During a daylight-saving spring-forward, a local wall-clock time that does not exist is normalised by the browser to the next real instant; during a fall-back, repeated wall-clock hours produce two distinct instants. That is a limitation of representing cron in local time, not of the parser.

Common Presets Reference Table

ScheduleExpressionTypical use
Every minute* * * * *Health checks and smoke tests
Every 5 minutes*/5 * * * *Metric collection
Every 15 minutes*/15 * * * *Cache warm-up
Hourly0 * * * *Log rotation
Daily at midnight0 0 * * *Nightly reports
Weekdays at 09:000 9 * * 1-5Business-hour jobs
First of the month0 0 1 * *Monthly billing
Sunday at 03:000 3 * * 0Weekly backups

Time Zones and Daylight Saving

Cron reads the clock of the machine it runs on. A schedule written for 09:00 in one time zone will fire at a different instant when the host is moved or its time zone changes. Many teams pin servers to UTC to avoid daylight-saving surprises, then convert the desired local time once. This tool shows run times in your browser's local time zone and says so explicitly, so you can compare the result with the intended server clock.

Common Mistakes

  • Using six or seven fields. Quartz, Spring and some hosted schedulers add seconds or a year field. Standard crontab has five.
  • Writing */0 or a negative step. A step must be a positive integer; zero makes the expansion undefined.
  • Assuming day-of-month and day-of-week combine with AND. When both are restricted they combine with OR in classic cron.
  • Forgetting that minute 0 means the top of the hour. 0 9 * * * runs once at 09:00, while * 9 * * * runs sixty times during that hour.
  • Using 7 for Sunday and then expecting eight weekdays. Both 0 and 7 are Sunday; the week has seven distinct values.
  • Scheduling the 31st of every month. Months with only 30 days simply skip that run.
  • Ignoring the server time zone. Daylight-saving transitions can skip or duplicate a wall-clock hour.

Key Takeaways

  • A standard cron expression has exactly five fields: minute, hour, day of month, month, day of week.
  • Asterisks, lists, ranges and steps expand into concrete sets of integers that a daemon matches against the clock.
  • When both day fields are restricted, classic cron uses OR; otherwise it uses AND.
  • Next run times depend on the host time zone, so always confirm it before deploying a schedule.
  • Validate the expression and inspect the next five runs before adding it to a production crontab.

Authoritative References

The five-field format, field ranges and the day-of-month versus day-of-week matching rule follow the crontab definition in IEEE Std 1003.1 (POSIX) and the crontab(5) manual page distributed with Vixie cron. Both are cited here as plain text references rather than outbound links. Quartz Scheduler and Spring use a different, extended format and are intentionally out of scope.

Last updated: December 3, 2026 · All parsing and scheduling calculations are performed locally in your browser. No data is uploaded or stored.

Cron Expression Generator FAQ

What are the five fields in a cron expression?

A standard crontab expression has five fields in this order: minute (0 to 59), hour (0 to 23), day of month (1 to 31), month (1 to 12), and day of week (0 to 7, where both 0 and 7 mean Sunday).

What does */5 mean in a cron expression?

The slash introduces a step value. In the minute field, */5 means every fifth minute starting at minute 0, so the job runs at 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50 and 55.

How do I run a job every weekday at 9 am?

Use 0 9 * * 1-5. Minute 0 and hour 9 fix the time, and 1-5 selects Monday through Friday.

Why does a day-of-month and day-of-week rule run more often than expected?

In classic cron, when both the day of month and the day of week fields are restricted, a date matches when either field matches. Use an asterisk in one of them to get AND behaviour.

Does this tool support six-field cron expressions?

No. This tool validates the five-field POSIX crontab format. Six-field Quartz and Spring expressions add a seconds field and use different semantics, so they are rejected.

Can I use month and weekday names?

Yes. Three letter English month names JAN to DEC and weekday names SUN to SAT are accepted case-insensitively anywhere a number is allowed, including lists and ranges.

Are the next run times in UTC or local time?

Next run times are calculated and displayed in your browser local time zone. A real cron daemon uses the time zone of its host, so confirm the server time zone before deploying.

Is my cron expression sent anywhere?

No. Parsing, validation and next run calculations all run locally in your browser. The page makes no network requests and stores nothing.