# Cron Expression Parser & Generator

> Explain any cron expression in plain words, see its next runs in your time zone and build new ones field by field. Unix crontab, Quartz and AWS EventBridge.

- Page: https://notadevblog.com/en/tools/developer/cron/
- German version: https://notadevblog.com/de/tools/developer/cron.md
- Category: Developer

## At a glance

- **Processing:** Locally in your browser, also offline once the page has been opened. Input never leaves your device.
- **Dialects:** Unix crontab (5 fields), Quartz (seconds, year, L, W, #), AWS EventBridge
- **Next runs:** Up to 50 in any IANA time zone; skipped and repeated runs at DST changes are flagged

## For agents

WebMCP: the page registers these functions via document.modelContext in browsers that support it.
ES module: https://notadevblog.com/core/cron.js
Every function returns { "ok": true, ... } or { "ok": false, "error": { "code", "message" } }.

### cron_parse

Parse a cron expression, describe it in English or German and compute the next runs in an IANA time zone (default UTC). Dialects: unix (5 fields, Vixie cron: day-of-month and day-of-week are ORed unless one starts with *; 0 and 7 = Sunday; @daily and other shortcuts), quartz (6-7 fields with seconds and optional year; 1 = Sunday; ? required in one day field; L, W, #), aws (EventBridge cron(...) with 6 fields and year). "auto" picks aws for cron(...), unix for 5 fields, quartz for 6-7. next holds ISO 8601 times with offset, searched up to 5 years ahead. Runs at local times that do not exist (DST gap) are skipped, local times that occur twice are listed twice; both appear in notes. fields.dayOfWeek is always 0-6 with 0 = Sunday, whatever the dialect.

Parameters:
- expression (string, required): For example "30 9 * * 1-5" or "cron(0 12 ? * MON-FRI *)".
- dialect (string: auto | unix | quartz | aws, default "auto")
- timeZone (string, default "UTC"): IANA zone like Europe/Berlin, or a city name.
- from (string): Start of the search (exclusive), ISO 8601. Without an offset it is a local time in timeZone. Default: now.
- count (integer, default 5, 0..50)
- locale (string: en | de, default "en"): Language of description.

Example input: `{"expression":"30 9 * * 1-5","timeZone":"Europe/Berlin","count":5}`

Deep link (options in the query, user data after #): https://notadevblog.com/en/tools/developer/cron/?timeZone=Europe/Berlin&count=5&fn=cron_parse#expression=30+9+*+*+1-5

### cron_build

Assemble a cron expression from single fields and describe it. Each field takes cron syntax ("*/15", "1-5", "MON-FRI", "L", "FRI#3"), a number or a list of numbers. Missing fields become "*"; Quartz seconds default to 0. For quartz and aws the "?" in day-of-month or day-of-week is filled in. dayOfWeek uses the dialect numbering (unix 0-7 with 0 and 7 = Sunday, quartz/aws 1-7 with 1 = Sunday); names work everywhere.

Parameters:
- dialect (string: unix | quartz | aws, default "unix")
- second (string or integer or array): Quartz only, default 0.
- minute (string or integer or array): 0-59
- hour (string or integer or array): 0-23
- dayOfMonth (string or integer or array): 1-31; quartz/aws also L, L-n, LW, nW
- month (string or integer or array): 1-12 or JAN-DEC
- dayOfWeek (string or integer or array): SUN-SAT or numbers; quartz/aws also nL and n#k
- year (string or integer or array): Quartz (optional) and AWS
- locale (string: en | de, default "en")

Example input: `{"minute":0,"hour":9,"dayOfWeek":"MON-FRI","dialect":"unix"}`

Deep link (options in the query, user data after #): https://notadevblog.com/en/tools/developer/cron/?dialect=unix&fn=cron_build#minute=0&hour=9&dayOfWeek=MON-FRI

## How to use

1. **Paste an expression:** Type or paste a cron expression. The dialect is detected from the number of fields; cron(...) means AWS.
2. **Check the next runs:** Pick the time zone your scheduler uses. The list shows when the job will really run, including what happens at the DST change.
3. **Edit single fields:** Change minute, hour, day or month in the fields below the expression; the expression and the description follow.

## About this tool

Cron schedules jobs by matching the clock against a pattern, once per minute (or per second in Quartz). It runs backups, reports and deployments on servers, in CI pipelines and in the cloud.

The parser is written for this site and has no dependencies. Next runs are searched up to five years ahead, so a job on 29 February still finds its date.

## Frequently asked questions

### What do the five fields mean?

Minute, hour, day of month, month and day of week, in that order. * means every value, */15 every 15th, 1-5 a range and 1,15 a list.

### Why does “0 0 13 * 5” run on every Friday?

In unix cron, day of month and day of week are combined with OR when both are restricted. The job runs on every 13th and on every Friday, not only on Friday the 13th.

### What happens when the clocks change?

This tool follows the clock: a local time that is skipped in spring has no run, a time that occurs twice in autumn is listed twice. Vixie cron and cronie instead run skipped jobs right after the change and do not repeat jobs at fixed times.

### How do Quartz and AWS differ from crontab?

Quartz adds a seconds field in front and an optional year at the end, AWS has a year but no seconds. Both count weekdays from 1 = Sunday and need a ? in day of month or day of week.

### Which time zone does cron use?

Crontab runs in the server’s local time zone unless CRON_TZ or TZ is set. AWS EventBridge rules use UTC. Pick the same zone here to see matching times.
