Cron expression and run times

Explain cron schedules and preview upcoming runs in a chosen time zone with local presets.

  • Runs locally
  • Free

Use the tool

Your files are processed in your browser and are not uploaded to a server.

About this tool

Parse cron expressions: explain the schedule in plain language and preview the next 20 or 50 runs in a chosen IANA time zone. Supports five-field Unix and six-field seconds formats, with templates to start from.

Typical uses

  • Check that a scheduled job’s expression is right
  • See when a job runs in different time zones
  • Write cron rules for backups or reports

How to use

  1. Choose five-field Unix or six-field seconds mode, enter an expression or use a template, and set an IANA zone.

  2. Set an offset start time and calculate the next 20 or 50 occurrences. Inspect explanations and time-zone values, then copy or export.

Good to know

Expressions: 256 characters; worker timeout: 5 seconds. Start is exclusive with at most millisecond precision. Supports numbers, month/day names, wildcards, lists, ranges, steps and common macros, but not Quartz or hashed H fields. Day-of-month and weekday use OR when neither starts with *, otherwise AND. Scheduler DST behavior can differ. This previews schedules without creating jobs. Presets include expressions and zones, not start times.

What it accepts and rejects: 13 expressions, actual results

Every row below was computed by the tool’s own evaluation function in UTC with the start 2026-11-21T00:00:00Z (exclusive). On success you see the normalized expression (macros expanded) followed by the first three runs; on failure you see the sentence the page shows. “Expression mode” sets the field count: “Unix · 5 fields” needs exactly five fields and “With seconds · 6 fields” exactly six. The tool never guesses what an extra or missing field means.

ExpressionExpression modeResultNotes
10-50/20 * * * *Unix · 5 fields10-50/20 * * * * → 2026-11-21 00:10 (+00:00) · 2026-11-21 00:30 (+00:00) · 2026-11-21 00:50 (+00:00)A range with a step: every 20 minutes starting at 10, ending at 50.
0 0 * * 7Unix · 5 fields0 0 * * 7 → 2026-11-22 00:00 (+00:00) · 2026-11-29 00:00 (+00:00) · 2026-12-06 00:00 (+00:00)Both 7 and 0 mean Sunday; the first run is Sunday 22 November.
0 0 1 jan-mar *Unix · 5 fields0 0 1 jan-mar * → 2027-01-01 00:00 (+00:00) · 2027-02-01 00:00 (+00:00) · 2027-03-01 00:00 (+00:00)Month and weekday names are three-letter English abbreviations, in any case.
@weeklyUnix · 5 fields0 0 * * 0 → 2026-11-22 00:00 (+00:00) · 2026-11-29 00:00 (+00:00) · 2026-12-06 00:00 (+00:00)@weekly expands to 0 0 * * 0, Sundays at 00:00.
@hourlyWith seconds · 6 fields0 0 * * * * → 2026-11-21 01:00 (+00:00) · 2026-11-21 02:00 (+00:00) · 2026-11-21 03:00 (+00:00)In seconds mode a macro gets a leading 0 for the seconds field.
0 0 * * FRI-MONUnix · 5 fields“Invalid expression. Check field ranges, lists and steps.”A range that wraps past Saturday is rejected. Write FRI-SAT,SUN-MON or 0,1,5,6 instead.
0 0 L * *Unix · 5 fields“Supports numbers, month/weekday names, *, comma, hyphen and slash; no Quartz ? L W #, year or hashed H fields.”L (last day) is a Quartz extension.
0 0 * * 5#3Unix · 5 fields“Supports numbers, month/weekday names, *, comma, hyphen and slash; no Quartz ? L W #, year or hashed H fields.”The “third Friday” # syntax is not supported either.
0 0 1 1 * 2027Unix · 5 fields“Field count does not match the mode: 5 for Unix, 6 with seconds.”A sixth field is treated as one too many, not as a year.
@rebootUnix · 5 fields“Field count does not match the mode: 5 for Unix, 6 with seconds.”@reboot is not a time and cannot be previewed.
0 9 * * MON-FRIWith seconds · 6 fields“Field count does not match the mode: 5 for Unix, 6 with seconds.”Seconds mode is missing the seconds field. Switching with the mode dropdown adds or removes a leading 0 for you.
0 0 31 2 *Unix · 5 fields“Invalid expression. Check field ranges, lists and steps.”February 31 is rejected while parsing, so you get “Invalid expression”, not “No occurrence”.
0 0 31 4,6 *Unix · 5 fields“No occurrence was found in the search range, or the expression reached its search limit. Check the date combination.”April and June have no 31st: the syntax is valid but nothing is ever found.

Expressions are limited to 256 characters. The tool only previews: “Calculate occurrences” never creates or runs a job, and local presets store just the expression, time zone, mode and count.

Day of month plus day of week: the OR rule and the leading-* exception

POSIX says that when both the day-of-month and day-of-week fields are restricted, a day matching either one runs the job. Many people write 0 9 1-7 * MON to mean “the first Monday of the month” and get “every day from the 1st to the 7th, plus every Monday”. The cronie manual defines “restricted” as not containing the * character, so a field starting with *, such as */1 or */2, combines with AND. The tool follows that rule. First eight run dates in Asia/Shanghai from the same start:

ExpressionDay ruleFirst 8 runs (dates)Notes
0 9 1,15 * MONOR2026-11-23 · 2026-11-30 · 2026-12-01 · 2026-12-07 · 2026-12-14 · 2026-12-15 · 2026-12-21 · 2026-12-28The 1st and 15th, plus every Monday.
0 9 1-7 * MONOR2026-11-23 · 2026-11-30 · 2026-12-01 · 2026-12-02 · 2026-12-03 · 2026-12-04 · 2026-12-05 · 2026-12-06Every day from 1 to 7 December and every Monday — not “first Monday”.
0 9 */1 * MONAND2026-11-23 · 2026-11-30 · 2026-12-07 · 2026-12-14 · 2026-12-21 · 2026-12-28 · 2027-01-04 · 2027-01-11The day field starts with *, so only Mondays remain.
0 9 */2 * MONAND2026-11-23 · 2026-12-07 · 2026-12-21 · 2027-01-11 · 2027-01-25 · 2027-02-01 · 2027-02-15 · 2027-03-01Only Mondays that fall on an odd date: */2 means the 1st, 3rd, 5th … 31st.

The description above the results states which rule was used; 0 9 1,15 * MON reads “At 09:00; day filter: day-of-month [1,15] OR day-of-week [MON].” A five-field cron cannot express “first Monday” directly. The usual workaround is to trigger with 0 9 1-7 * * and have the script exit unless today is Monday.

Daylight-saving days: skipped and repeated local times

Runs are calculated in the IANA zone entered in “Schedule time zone”, and daylight saving is handled by cron-parser. Each row uses a fixed start; the results are the local times and offsets the tool shows.

ExpressionTime zoneResultNotes
30 2 * * *Europe/Berlin2027-03-26 02:30 (+01:00) · 2027-03-27 02:30 (+01:00) · 2027-03-28 03:30 (+02:00) · 2027-03-29 02:30 (+02:00)On 28 March 2027 Berlin jumps from 02:00 to 03:00. The 02:30 job moves to 03:30 instead of being lost.
*/30 * * * *Europe/Berlin2027-03-28 01:30 (+01:00) · 2027-03-28 03:00 (+02:00) · 2027-03-28 03:30 (+02:00)A job every 30 minutes is not moved: the missing 02:00 and 02:30 are skipped, so 01:30 is followed by 03:00.
0,30 2 * * *Europe/Berlin2026-10-25 02:00 (+02:00) · 2026-10-25 02:30 (+02:00) · 2026-10-26 02:00 (+01:00)On 25 October 2026 Berlin goes back from 03:00 to 02:00, so 02:00–02:59 happens twice. A job with a fixed hour runs only in the first pass (+02:00).
*/30 * * * *Europe/Berlin2026-10-25 02:30 (+02:00) · 2026-10-25 02:00 (+01:00) · 2026-10-25 02:30 (+01:00) · 2026-10-25 03:00 (+01:00)With * in the hour field the job runs in both passes of the repeated hour (+02:00 and +01:00).
0 0 * * *America/Havana2027-03-12 00:00 (-05:00) · 2027-03-13 00:00 (-05:00) · 2027-03-15 00:00 (-04:00)Havana changes at midnight, so 14 March 2027 has no 00:00. Here the run is skipped rather than moved as in Berlin.
0 9 * * *America/New_York2027-03-12 09:00 (-05:00) · 2027-03-13 09:00 (-05:00) · 2027-03-14 09:00 (-04:00) · 2027-03-15 09:00 (-04:00)The local time stays 09:00 while UTC changes from 14:00 to 13:00 — visible to anything downstream that stores UTC.
Schedulers differ

The cronie manual says non-existent times never match and repeated times make matching jobs run twice. That differs from the 02:30 → 03:30 move and the single run in the repeated hour above. For jobs where this matters, run the scheduler in UTC or avoid local 01:00–03:00.

Start time, search horizon, exports and messages

“Start time (exclusive, offset required)” needs a Z or ±HH:MM offset, and that instant itself is never listed. With 0 9 * * * in UTC:

Start enteredFirst run
2026-11-21T09:00“Enter a valid start with Z or ±HH:MM, at most millisecond precision, and year 0001–9998.”
2026-11-21 09:00Z2026-11-22 09:00 (+00:00)
2026-11-21T09:00:00+08:002026-11-21 09:00 (+00:00)
2026-11-21T09:00:00Z2026-11-22 09:00 (+00:00)

A space may separate date and time. 09:00+08:00 is 01:00 UTC, so 09:00 UTC on the same day still counts. The search reaches 200 years past the start. Asking 0 0 29 2 * for 50 runs finds only 48 (the last on 2224-02-29T00:00:00Z, horizon 2226-11-21T00:00:00Z) and the page says the list is short. Writing 0 0 29 2 1 turns it into “29 February or any Monday in February” under the OR rule, and 50 runs arrive quickly.

“Occurrence count” is 20 or 50, and “Start from now” fills in the current instant in UTC. “Download CSV” has a UTF-8 BOM and the columns index, UTC ISO, the zone name and Unix seconds. “Download TXT” adds the expression, start, zone and description above a tab-separated table. Calculation runs in a background worker and stops after 5 seconds.

MessageUsual cause
Field count does not match the mode: 5 for Unix, 6 with seconds.Mode and field count disagree, or a sixth year field or @reboot was used.
Supports numbers, month/weekday names, *, comma, hyphen and slash; no Quartz ? L W #, year or hashed H fields.Quartz or Jenkins syntax such as ?, L, W, # or H.
Invalid expression. Check field ranges, lists and steps.A value out of range (0 24 * * *), a */0 step, a reversed range, or an impossible date such as 31 February.
No occurrence was found in the search range, or the expression reached its search limit. Check the date combination.A valid combination that never happens, such as the 31st of April and June.
Enter a valid start with Z or ±HH:MM, at most millisecond precision, and year 0001–9998.The start has no offset, or more than millisecond precision.
Check the expression, IANA time zone and occurrence count.The time zone is not a valid IANA name.
Calculation exceeded 5 seconds and was stopped. Simplify the expression or change the start time.The background calculation ran past 5 seconds; adjust the expression or use a closer start time.

Sources

Frequently asked questions

Is Quartz syntax supported?

No Quartz or hashed H fields. Numbers, month and weekday names, wildcards, lists, ranges, steps and common macros are supported.

How are day-of-month and weekday combined?

With OR when neither starts with *, otherwise AND — matching common Unix cron behavior.

Does it create jobs?

No. It only previews the schedule.