How to use this cron expression generator
This page works in both directions, because real work with cron does too. Sometimes you know the schedule you want — a report at nine every weekday morning — and need the expression for it; that is the cron expression builder direction. Sometimes you inherit a crontab full of lines like 17 3 * * 0 and need to know what you are looking at before you touch anything; that is the reading direction, the "what does this cron expression mean" question. The tool at the top of this page does both with the same machinery, so the two directions check each other.
To build, work down the five rows. Each row is one field, with a dropdown of the patterns people actually use — every minute, on the hour, weekdays, quarterly — and a text box showing the field's current value. Picking a pattern fills the box; typing in the box is how you reach anything the dropdown does not list, such as the list 1,15 or the stepped range 9-17/2. The assembled expression updates as you go, and so do the description and the next 10 run times, so a mistake is visible the moment you make it. To read an existing expression instead, paste it into the big box: the builder rows rearrange themselves to match, and the breakdown table shows what each field was understood to mean, with names converted to numbers, so MON-FRI shows up as the weekday range it is.
Two habits make any cron schedule safer. First, always read the next run times, not just the description: a description can sound right while the calendar disagrees, and ten concrete dates cannot be argued with. Second, use the start-date box to test from a moment that stresses the schedule — the end of a month, a weekend, the 28th of February — because that is where schedules quietly do something other than what their author pictured. When the schedule is right, Copy puts a plain-text report on your clipboard and Download .txt saves it, ready for the ticket the crontab edit belongs to.
The five fields of a cron expression
Cron is old, small and stubbornly unchanged: the format dates to the 1970s Unix scheduler and is specified by the crontab(5) manual page that every Linux system still ships. Each field holds a pattern rather than a single number, which is what makes five short fields expressive enough to describe "every 15 minutes", "the first Monday-ish maintenance window" and "once a year" in the same notation. The fields, their ranges and their allowed names are:
| Position | Field | Allowed values | Names accepted | Example |
|---|---|---|---|---|
| 1 | Minute | 0–59 | — | */15 = minutes 0, 15, 30, 45 |
| 2 | Hour | 0–23 | — | 9 = the 09:00 hour |
| 3 | Day of month | 1–31 | — | 1 = the 1st of the month |
| 4 | Month | 1–12 | JAN–DEC | 1,4,7,10 = quarterly |
| 5 | Day of week | 0–7 (0 and 7 are both Sunday) | SUN–SAT | 1-5 = Monday to Friday |
The order is the single most common source of broken schedules: in a crontab line the minute always leads. That is why 9 0 * * * (nine minutes past midnight) and 0 9 * * * (nine in the morning) are both valid, both plausible-looking, and nine hours apart in effect. The description at the top of this page exists largely to catch exactly that swap: it reads the fields in crontab order and says the time out loud.
Special characters: star, comma, hyphen and slash
Four characters do all the work inside a field. Everything else is numbers and names.
| Character | Name | What it does | Example |
|---|---|---|---|
| * | Star (asterisk) | Matches every allowed value of the field. | * in the hour field = all 24 hours |
| , | Comma | Lists separate values; the field matches any of them. | 1,15 = the 1st and the 15th |
| - | Hyphen | An inclusive range from the first value to the second. | 1-5 = Monday to Friday |
| / | Slash | A step: take every Nth value of the range before it. | */15 = every 15th value; 9-17/2 = every 2nd hour, 9 to 17 |
The slash deserves one more sentence, because it is the character people most often misread. A step is anchored at the start of the range it follows: */15 in the minute field means 0, 15, 30, 45 — not "15 minutes after whenever the job was created". A step after a single number, such as 5/15, runs from that number to the end of the field: 5, 20, 35, 50. And ranges never wrap: 5-1 in the day of week field is an error here, just as most cron daemons reject it. For Friday to Monday, say so with a list: 5,6,0,1.
What does this cron expression mean? Reading the description
The plain-English description is generated by the same parser that validates the expression, so it can never describe a schedule the validator rejected. The minute and hour fields combine first, because together they are the time of day: a single minute and hour become a clock time like 09:00; a stepped minute with a star hour becomes "every 15 minutes"; a star minute with a single hour becomes "every minute of the 02:00 hour" — a schedule people write by accident far more often than on purpose, and seeing it written out is usually enough to catch it.
The day fields combine next, and this is where the description earns its keep, because it states the day rule out loud instead of leaving you to remember it. When one day field is a star, the other decides and the sentence says so plainly — "on day 1 of the month", "Monday–Friday". When both day fields are restricted, the sentence carries the warning with it: the job fires when either matches. Finally the month field, when restricted, is appended as "in January" or "in January, April, July and October". Read the whole sentence as a contract: if any clause of it is not what you intended, the expression is wrong, however tidy it looks.
The breakdown table under the description shows the working: your raw text for each field beside what it was understood to mean, with names expanded and steps listed as the values they produce. If a description ever surprises you, the breakdown is where the surprise is explained — a step that produced different minutes than you pictured, or a 7 that became Sunday.
Next run times, and the day rule that decides them
Run times are calculated the way a cron daemon decides them: start from the given moment, step forward minute by minute, and collect the minutes whose time matches every field. There is no approximation — the list is the schedule applied to the real calendar, in your browser's local time zone, the same wall-clock basis a crontab on your own machine uses. (A server in another time zone fires at its own local times; the dates pattern is the same, the clock reading is shifted.)
One rule inside that stepping deserves its own paragraph, because it is the most misunderstood sentence in all of cron. When both the day of month and the day of week fields are restricted — neither is a star — a job runs when either field matches the day, not only when both do. So 0 9 1 * 1 does not mean "09:00 on a Monday that is also the 1st"; it means 09:00 on the 1st of every month and 09:00 on every Monday. This is the documented behaviour of the standard cron daemon, not a quirk of this page, and the description states it whenever it applies. When one day field is a star, that field steps aside and the other decides alone — which is why weekday schedules put the star in the day of month field.
A checked example of the arithmetic: take 30 2 1 * * — 02:30 on the 1st of each month — and count from 24 November 2026, 00:00. November's run (1 November, 02:30) is already in the past, so the stepping passes over the rest of November without a match and the first run found is 1 December 2026, 02:30, followed by 1 January 2027, 02:30, and so on monthly. That is exactly the first entry this page lists for that expression from that start, and it is the sort of check worth doing by hand once: if your mental stepping and the list agree on a monthly schedule, they will agree on the complicated ones too.
Cron schedule examples
The schedules below cover most of what real crontabs contain. Every one of them can be loaded into the tool with the example chips or by typing it into the expression box, and each description is the one this page generates.
| Expression | Meaning | Typical use |
|---|---|---|
| * * * * * | Every minute | Watchdogs and queue workers (use sparingly) |
| */5 * * * * | Every 5 minutes | Health checks, metrics collection |
| */15 * * * * | Every 15 minutes | Sync jobs, cache warmers |
| 0 * * * * | At minute 0 past every hour | Hourly rollups |
| 0 9 * * 1-5 | At 09:00, Monday–Friday | Weekday morning reports |
| 30 8 * * 1 | At 08:30, Monday | Weekly team digest |
| 0 0 * * * | At 00:00, every day | Daily cleanup at midnight |
| 0 2 * * 0 | At 02:00, Sunday | Weekly maintenance window |
| 30 2 1 * * | At 02:30, on day 1 of the month | Monthly billing run |
| 0 0 1,15 * * | At 00:00, on days 1 and 15 of the month | Twice-monthly statements |
| 0 0 1 1 * | At 00:00, on day 1 of the month, in January | Annual reset, once a year |
| 0 0 29 2 * | At 00:00, on day 29 of the month, in February | Leap-year-only job — fires roughly every 4 years |
Reading a table like this is the fastest way to build intuition for the format: the fields that change between rows carry the schedule's meaning, and the stars are simply the fields that stay out of the way. Notice how few of these restrict more than two fields — each extra restricted field is another chance for the calendar to disagree with the author, and deserves a second look at the run times.
A worked example, checked run by run
Take the weekday report schedule, 0 9 * * 1-5, and check it the way this page does. The parser reads the minute field 0 (a single value), the hour field 9 (a single value), stars for day of month and month, and the range 1-5 in the day of week field, which expands to Monday, Tuesday, Wednesday, Thursday, Friday. The description assembles those pieces into "At 09:00, Monday–Friday" — exactly the schedule the author of that line almost certainly meant.
Now the run times, counted from Tuesday 24 November 2026, 18:41 (the moment this example was checked). Today's 09:00 is already past, so the stepping finds: Wednesday 25 November 2026, 09:00; Thursday 26 November, 09:00; Friday 27 November, 09:00; then Saturday and Sunday produce no match, because 6 and 0 are outside the 1-5 range; then Monday 30 November, 09:00 and Tuesday 1 December, 09:00. Ten runs span twelve calendar days, with the two weekend gaps exactly where the description promised them. That agreement — sentence, breakdown and calendar all telling the same story — is the check to run on every schedule before it goes near a server, and it takes seconds here instead of a missed report on a Monday morning.
The counter-example is just as instructive. Move the range one field left, to 0 9 1-5 * *, and the description changes to "At 09:00, on days 1–5 of the month": the run times bunch into the first five days of each month, then fall silent for three weeks. The two expressions differ by the position of a single token; only the reading tools tell them apart.
Common mistakes and edge cases
Fields in the wrong order. The classic. A schedule written hour-first fires at a valid but unintended time, so nothing logs an error — the job simply runs at 09 minutes past midnight instead of 9 AM. The description is the defence: read the clock time it states.
The either-or day rule. Restricting both day fields to mean "and" is the most common misunderstanding in cron. 0 9 15 * 1 runs on the 15th and on every Monday — typically four or five times as often as its author expected. Leave one day field as a star unless you truly want the union of both.
Dates that do not exist. Cron does not improvise around the calendar. Day 31 never fires in February, April, June, September or November; day 29 in February fires only in leap years. A "monthly on the 31st" schedule silently runs seven times a year, not twelve. If a job must run at month end, the usual pattern is to run it daily and let the job itself check whether tomorrow is the 1st — standard cron cannot say "last day of the month".
Sunday as 0 or 7. Both are accepted, and both are Sunday. Trouble starts when a schedule written for a system that numbers Sunday as 7 is pasted somewhere expecting 1 — that is a different dialect (some schedulers start the week at 1 for Sunday or use 1–7 for Monday–Sunday). In standard cron, 1 is Monday. This page follows the standard, and the breakdown spells the day names out so the mapping is never a guess.
Steps anchored where you did not expect. 2-50/10 in the minute field means 2, 12, 22, 32, 42 — the step counts from the start of the range, not from zero. And */15 always starts from the field's minimum. If your job must run at :07, :22, :37 and :52, the honest spelling is the list 7,22,37,52.
Expecting seconds, or Quartz characters. Standard cron's finest grain is the minute. Characters like L, W, # and ?, and any sixth field for seconds, belong to extended schedulers such as Quartz. They are rejected here with the reason stated, because a crontab would reject or misread them too — silently accepting them would manufacture schedules that never run.
Standard cron, Quartz and the nicknames
This generator deliberately covers standard five-field cron — the format of the Linux and Unix crontab, defined by the crontab(5) manual page and POSIX — and nothing else. That narrowness is a feature: an expression built here can be pasted into a crontab as-is, and an expression pasted here is judged by the same rules the daemon will apply. Two neighbouring dialects are worth naming so they are never confused with the standard. Quartz, the Java scheduler, adds a seconds field at the front, an optional year at the end, and the special characters ?, L, W and #; a Quartz expression is six or seven fields and will not run in a crontab unchanged. systemd timers and cloud schedulers use their own calendar syntax entirely. Neither is wrong — they are different languages that share some vocabulary, and this page speaks only the standard one.
Standard cron itself offers one piece of sugar: the nicknames some daemons accept in place of the five fields. They are worth knowing because you will meet them in real crontabs, and each is exactly equivalent to a five-field expression:
| Nickname | Equivalent expression | Meaning |
|---|---|---|
| @hourly | 0 * * * * | At minute 0 past every hour |
| @daily / @midnight | 0 0 * * * | At 00:00, every day |
| @weekly | 0 0 * * 0 | At 00:00, Sunday |
| @monthly | 0 0 1 * * | At 00:00, on day 1 of the month |
| @yearly / @annually | 0 0 1 1 * | At 00:00, on day 1 of the month, in January |
| @reboot | — | Runs once when the cron daemon starts; not a time at all |
Paste a nickname into the tool and it will tell you it is a nickname rather than guess — translate it with this table and check the five-field version, whose run times you can actually inspect.
Privacy first — and the honest limits
Everything on this page runs in your browser tab. The expression you build or paste is parsed, described and stepped through the calendar by JavaScript on your own machine; nothing is uploaded, transmitted or stored, and closing the tab erases it all. That matters because crontab lines often name internal scripts, servers and job names you would not paste into a stranger's server — here, there is no server involved at all. A downloaded report is a file like any other, so keep it wherever you would keep the crontab itself.
The limits, plainly. This is standard five-field cron only: no seconds field, no year field, no Quartz characters, and nicknames are listed for reference rather than executed. Run times use your browser's local time zone and its clock, and they model the schedule, not your server's daemon — a daemon that is stopped, a machine that is asleep, or a job that overruns will behave as those things behave, not as the calendar says. Daylight-saving transitions are handled the way your browser's clock handles them; cron daemons differ in their spring-forward and fall-back behaviour, so a job scheduled inside the skipped or repeated hour deserves a check against your own daemon's documentation. Finally, the tool validates the schedule, not the command that follows it in a crontab line — paths, permissions and environment variables are the other half of every "cron job did not run" story, and no expression checker can see them.
Sources & References
- crontab(5) — Linux manual page (man7.org) — the reference definition of the five fields, the step and range syntax, the day-of-month / day-of-week rule, and the @nicknames, from the man-pages project.
- Wikipedia — Cron — the history of the cron daemon, the standard format, and an overview of how implementations differ.
- The Open Group (POSIX) — crontab utility — the standardised definition of the crontab command and its time fields.
- Debian — crontab(5) man page — the Vixie cron manual as shipped in Debian, including name support for months and days and the either-or day rule.
- Ubuntu — crontab(5) man page — the same manual in Ubuntu's archive, a handy cross-check of field ranges and special strings.
- Quartz Scheduler — CronTrigger tutorial — the extended Quartz dialect (seconds field, ?, L, W, #) documented by its own project; cited here to mark exactly what standard cron does not include.
- Oracle — Scheduling System Tasks (System Administration Guide) — Oracle's administrator documentation for creating and editing crontab files. Substituted during writing: the Oracle Linux scheduling page originally planned for this list no longer resolves, so Oracle's Solaris cron guide is cited instead.