Build a crontab expression with dropdowns, or paste one to see it explained in plain English with the next five run times
| Field | Raw | Meaning |
|---|
Each of the six fields gets a type selector — every, specific, range or step — and the expression is assembled for you, so nothing ends up in the wrong position
Inherited a crontab full of expressions you do not recognise? Paste one in and it is translated into plain English with every field explained
The next five fire times are resolved from the current moment, with weekday and countdown. An empty list means the schedule never fires at all
Linux crontab uses five fields, Quartz and Spring use six. Switch the count and the seconds field appears or disappears — no second tool needed
Out-of-range values, wrong field count and malformed syntax all report which field is wrong instead of quietly computing a wrong schedule
Parsing and run-time resolution happen entirely in your browser. No expression is uploaded anywhere, and the tool works offline
Use 5 fields for a Linux crontab or a Docker cron container, 6 fields for Quartz or Spring's @Scheduled. Getting this wrong shifts the whole expression by one position, which is the most common beginner mistake.
Leave a field unrestricted with the "every" option, or switch to specific for a single value, range for a span such as 9-18, and step for a fixed interval such as every 5.
Every five minutes, weekdays at 9 am, the 1st of each month — the preset chips fill all six fields at once, and adjusting one is faster than starting from an empty form.
The next-five-runs list is the real acceptance test. If the dates look wrong your reading of the expression is wrong; if the list is empty the schedule can never fire, so do not ship it.
Run a database dump at 3 am and confirm with the preview that it lands at 3 am rather than 3 pm
Fetch an API every five minutes with */5 * * * *, not 5 * * * * which silently fires once an hour
Restrict a 9 am report to Monday through Friday with 1-5 in the weekday field, so nobody is paged on a weekend
Paste each unfamiliar line into the parser to find out what it actually does before changing anything
If the next-run list is empty, the date combination does not exist — a 31st of February, for instance
Run the OR rule between day-of-month and day-of-week as a live example; it sticks far better than reading the docs
Cron's five fields, left to right, are minute (0-59), hour (0-23), day of month (1-31), month (1-12) and day of week (0-6, where 0 and 7 are both Sunday). The order deliberately puts the finest granularity first, so the leftmost field changes most often. The classic beginner error is swapping month and day, because the fourth field is the month and the third is the day — the opposite of how dates are usually written. The six-field variant prepends a seconds field (0-59), which most Linux crontabs do not support; it belongs to the Quartz family.
Four building blocks combine into every expression. An asterisk * matches every value in the field. A comma , lists values, so 1,15 means the 1st and the 15th. A hyphen - spans a contiguous range, so 9-18 means 9 am through 6 pm. A slash / sets a step, so */5 means every 5 units starting from the minimum. A step can carry an explicit start, so 5/15 starts at 5 and repeats every 15. These compose: 1-30/2 is every odd day up to 30, and 1,15-20 is the 1st plus the 15th through the 20th.
This is cron's most counter-intuitive rule: when both the day-of-month and day-of-week fields are restricted (neither is *), they are combined with OR, not AND. So 0 0 1 * 1 runs at midnight on the 1st of every month and on every Monday, which can be five or six times a month. If you genuinely need "the 1st, but only when it is a Monday", cron cannot express it; leave the weekday as * and test the date inside the script. The safe habit is to restrict exactly one of the two fields and leave the other as *.
Cron does not validate calendar dates. Writing 0 0 31 2 * only checks that 31 is within 1-31, accepts it, and then waits forever for a February 31st that never arrives — the job silently never runs. The same happens with 0 0 30 2 *. Conversely 0 0 29 2 * is valid but only fires in leap years. The signature of this problem is a schedule that looks correct with nothing in the logs; the first diagnostic step is always to check whether the next-run list is empty.
Cron uses the server's system time zone. The same 0 9 * * * fires at 5 pm Beijing time on a UTC host and at 9 am only on an Asia/Shanghai host. Containers are the usual source of trouble: nearly every base image defaults to UTC, so a schedule that tested fine locally shifts by the offset once deployed. Set the TZ environment variable and install tzdata in the image, or use CRON_TZ at the top of the crontab file. On daylight-saving transition days, jobs scheduled between 2 am and 3 am may be skipped or run twice.
| Field | Required | Allowed values | Special characters |
|---|---|---|---|
| Second (6-field only) | Yes | 0-59 | * , - / |
| Minute | Yes | 0-59 | * , - / |
| Hour | Yes | 0-23 | * , - / |
| Day of month | Yes | 1-31 | * , - / ? |
| Month | Yes | 1-12 or JAN-DEC | * , - / |
| Day of week | Yes | 0-7 or SUN-SAT (0 and 7 are Sunday) | * , - / ? |