How-to guide
How to Read a Cron Expression: Fields, Examples, Traps
A cron expression is five space-separated fields — minute, hour, day of month, month, day of week — that tell a scheduler exactly when to run a job. Read it left to right: 30 8 * * 1-5 means 08:30, Monday to Friday. Hellagape's free Cron Expression Parser breaks any expression into its fields and previews the next run times, so you can check a schedule before it goes live instead of guessing.
Direct answer: split the expression into five fields (minute 0–59, hour 0–23, day of month 1–31, month 1–12, day of week 0–7 where 0 and 7 are Sunday), decode each field's operator (
*every,,list,-range,/step), then paste it into the parser and read the next run times it lists. If the next runs match your intent, the expression is right.
The five fields
| Position | Field | Range | Example |
|---|---|---|---|
| 1 | Minute | 0–59 | 30 = at half past |
| 2 | Hour | 0–23 (24-hour clock) | 8 = 08:00 hour |
| 3 | Day of month | 1–31 | 15 = the 15th |
| 4 | Month | 1–12 (or JAN–DEC in many dialects) | 6 = June |
| 5 | Day of week | 0–7 (0 and 7 = Sunday, or SUN–SAT) | 1-5 = Mon–Fri |
Inside each field, four operators do all the work: * means every value; , lists values (0,30 = :00 and :30); - is an inclusive range (9-17 = 09:00 through 17:00); / steps through a range (*/15 in the minute field = :00, :15, :30, :45).
How to read any expression in the parser
- Open the Cron Expression Parser. It loads with a sample expression,
*/15 9-17 * * 1-5, already filled in. - Replace the Cron expression field with yours — five fields, single spaces, nothing else.
- Set UPCOMING to how many future runs you want to preview (default 5).
- Read the RESULT breakdown, which restates each field (minute, hour, day, month, weekday) so you can spot a field in the wrong position.
- Read the NEXT RUN TIMES list and compare it against your intent: right days? right hours? right spacing? The example list shows times in UTC (e.g. 2026-12-07 09:00 UTC) — convert to your scheduler's timezone before trusting them.
- If a run time surprises you, change one field at a time and re-check. One-field edits are how you find which field is lying.
Worked examples (maths checked)
Example 1 — the parser's default: */15 9-17 * * 1-5. Minute */15 = :00, :15, :30, :45 (4 per hour). Hour 9-17 = 9 hours. Weekday 1-5 = Monday–Friday. Runs per weekday = 4 × 9 = 36. First run of the day 09:00, last 17:45.
Example 2 — every 5 minutes: */5 * * * *. Minutes 0, 5, 10 … 55 = 12 per hour × 24 hours = 288 runs/day. The plain * * * * * (every minute) is 1,440/day — the classic accidental flood.
Example 3 — weekday mornings: 30 8 * * 1-5. Minute 30, hour 8, any day-of-month, any month, Mon–Fri → 08:30 every weekday, 5 runs/week. Swap 1-5 for 1 and it becomes Mondays only.
Example 4 — twice a day: 0 6,18 * * *. Minute 0, hours 6 and 18 → 06:00 and 18:00 daily, 2 runs/day. The comma list is how you name exact hours instead of a range.
The traps that break jobs
The day-of-month / day-of-week OR rule. When both day fields are restricted (neither is *), standard cron runs the job when either field matches — not both. 0 9 13 * 5 does not mean "Friday the 13th at 09:00"; it means 09:00 on the 13th and every Friday. This is the single most common cron bug.
Steps restart at the field boundary. */7 in the minute field fires at 0, 7, 14, 21, 28, 35, 42, 49, 56 — then restarts at 0 next hour, leaving a 4-minute gap. It is not "every 7 minutes" forever. Steps that divide the field evenly (5, 10, 15, 20, 30) behave the way people expect.
Timezones. Cron runs in the scheduler's timezone (server local time, UTC on many cloud schedulers). The parser's example next-runs are shown in UTC. A 0 9 * * * job you meant for 09:00 local fires at 09:00 UTC if the platform says so — always confirm which clock your scheduler uses.
Dialects differ. Linux cron uses five fields. Quartz/Spring add seconds (and often a year) and require ? in one day field; AWS EventBridge uses its own rules. An expression that parses in one dialect may be invalid — or mean something else — in another. Validate in the dialect you will actually deploy.
The % character (crontab lines). In a crontab, everything after the fifth field is the command, and an unescaped % becomes a newline with the rest sent as input. It breaks commands silently. Escape it as \% in crontab entries.
Tips
- Prefer explicit minutes (
0,30) over*in the minute field unless you truly want every minute. - Test with the parser's next-run list across a weekend and a month boundary — most schedule bugs hide there.
- Write the intent in a comment next to the expression ("08:30 Mon–Fri, UTC") so the next reader can verify it in seconds.
- Related hellagape tools: the Timestamp Converter for checking epoch times your jobs log, and the Regex Tester for the patterns your scheduled scripts grep with.
Most-asked questions
What do the five cron fields mean? Minute (0–59), hour (0–23), day of month (1–31), month (1–12), day of week (0–7, where 0 and 7 both mean Sunday) — always in that order, separated by spaces.
What does */5 * * * * mean? Every 5 minutes, around the clock: minutes 0, 5, 10 … 55 of every hour, 288 runs per day.
How do I run a job every weekday at 9am? 0 9 * * 1-5 — minute 0, hour 9, any day-of-month and month, Monday to Friday. Confirm your scheduler's timezone; the expression alone does not carry one.
Why does my job run on days I didn't pick? Usually the OR rule: if both day-of-month and day-of-week are restricted, cron fires when either matches. Leave one of them as * unless you want the union.
Is */7 every 7 minutes? No. Steps restart each hour: 0, 7, 14 … 56, then back to 0 — a short gap at the boundary. Use a step that divides 60 (5, 10, 15, 20, 30) for even spacing.
What is the difference between cron and Quartz expressions? Quartz adds a seconds field first (six or seven fields total) and uses ? for "no specific value" in a day field. Standard Linux cron has five fields and no ?. Check which dialect your platform expects.
How can I check a cron expression before deploying it? Paste it into the Cron Expression Parser, set how many upcoming runs to preview, and read the field breakdown plus next run times. If the listed times (shown in UTC in the example) match your intent after timezone conversion, deploy it.
Does the parser run my job? No. It only explains the expression and previews run times. Scheduling still happens in your crontab, CI system or cloud scheduler.
Try it now
Cron Expression Parser
Explain a cron schedule in plain English and preview the next run times.
Keep reading