Cron Expression Generator and Explainer
Build a cron schedule with dropdowns, or paste one you already have and get it in plain English. Pick Unix, Quartz, AWS EventBridge or Airflow, see the next 10 run times in any time zone, and copy a ready-made crontab, Kubernetes, GitHub Actions or Airflow snippet. It runs in your browser.
1. Pick a dialect and enter your expression
Cron dialect2. What it does
3. Build it with dropdowns
Each field has a mode. Changes update the expression above instantly. Day-of-week and month use tap buttons, not tiny list boxes.
4. Share and export
The share link stores your dialect, expression and time zone after the # sign, so it is not sent to any server. Anyone with the link sees the same schedule.
Cron dialects compared
"Cron" is a family, not one standard. The same five-looking fields mean different things in different tools, which is why a schedule copied from one system often fails or fires on the wrong day in another.
| Dialect | Fields (in order) | Day of week | Special characters | Time zone |
|---|---|---|---|---|
| Unix crontab | minute hour day-of-month month day-of-week (5) | 0-7, 0 and 7 are Sunday; SUN-SAT | * , - / | The server's system time zone (often UTC) |
| Quartz / Spring | second minute hour day-of-month month day-of-week [year] (6 or 7; Spring has no year) | Quartz: 1-7, 1 is Sunday. Spring: 0-7, 0 and 7 are Sunday. SUN-SAT in both | * , - / ? L W # | The scheduler or trigger's time zone |
| AWS EventBridge | minute hour day-of-month month day-of-week year (6) | 1-7, 1 is Sunday; SUN-SAT | * , - / ? L W # | UTC for rules; EventBridge Scheduler lets you set a zone |
| Airflow | minute hour day-of-month month day-of-week (5), or a preset such as @daily | 0-6, 0 is Sunday (7 is also accepted) | * , - / and @hourly @daily @weekly @monthly @quarterly @yearly @once @continuous | UTC unless the DAG start date has a time zone |
In Quartz and EventBridge you must put ? in either day-of-month or day-of-week, because only one of the two can be restricted. In Unix cron and Airflow, if both are restricted the job runs when either matches.
Cron expression: frequently asked questions
What does a cron expression look like?
A standard Unix cron expression has five fields separated by spaces: minute, hour, day of month, month, and day of week. For example, 30 9 * * 1-5 means 09:30 on Monday through Friday. A star means every value, a comma lists values, a dash gives a range, and a slash gives a step.
What is the difference between Unix, Quartz and AWS cron?
Unix cron has 5 fields and numbers Sunday as 0 (or 7). Quartz adds a leading seconds field and an optional year, numbers Sunday as 1, and supports L, W, # and ?. AWS EventBridge uses 6 fields (minute, hour, day of month, month, day of week, year), also numbers Sunday as 1, always needs a ? in one of the two day fields, and evaluates rules in UTC.
What does ? mean in a cron expression?
The question mark means no specific value. Quartz and AWS EventBridge allow only one of day-of-month and day-of-week to be restricted, so you put ? in the other one. Unix cron has no ?; use * instead.
What happens when both day-of-month and day-of-week are set?
In standard Unix cron, if both fields are restricted (neither starts with a star), the job runs when either one matches. So 0 0 13 * 5 runs on every 13th and on every Friday, not only on Friday the 13th. Quartz and EventBridge avoid this by requiring ? in one of the two.
How do I run a cron job every 5 minutes?
Use */5 * * * * in Unix cron or Airflow. In Quartz use 0 0/5 * * * ? and in AWS EventBridge use 0/5 * * * ? *. The Every 5 minutes preset above fills the right form for the dialect you picked.
What time zone does cron use?
Classic crontab uses the server's system time zone, which is often UTC. GitHub Actions schedules always use UTC. AWS EventBridge rules use UTC. Kubernetes CronJobs support a timeZone field from Kubernetes 1.27. Airflow uses UTC unless the DAG start date has a time zone. Use the time zone selector above to see your next runs in any zone.
Can cron run every second?
Not in standard 5-field cron, whose smallest unit is one minute. Quartz and Spring add a seconds field, so 0/30 * * * * ? runs every 30 seconds. AWS EventBridge rules also have a one-minute minimum.
How do I write the last day of the month in cron?
Unix cron has no last-day option, so people schedule days 28 to 31 and check the date in the script. Quartz and EventBridge support L in day-of-month. Noon on the last day of each month is 0 0 12 L * ? in Quartz and 0 12 L * ? * in EventBridge.
Does this tool send my cron expression anywhere?
No. Everything runs in your browser. The share link stores your expression in the part of the URL after the # sign, which browsers do not send to servers.
Why does my GitHub Actions cron run late?
GitHub documents that scheduled workflows can be delayed during periods of high load, such as the start of the hour, and the shortest interval is every 5 minutes. Schedules run on the default branch only and in UTC. Avoid the top of the hour if exact timing matters.