Vibe Engines is free, interactive AI engineering & system design — runs in your browser. Pick a learning path
Cron Expression Builder
A cron expression builder and decoder. Type a five-field cron schedule and instantly get a plain-English description plus the next several times it would fire, or start from a common preset. Supports ranges, lists and step values, and explains what each of the five fields means — all computed in your browser.
At 02:30.
Next runs
- Oct 29, 2026, 2:30 AM
- Oct 30, 2026, 2:30 AM
- Oct 31, 2026, 2:30 AM
- Nov 1, 2026, 2:30 AM
- Nov 2, 2026, 2:30 AM
- Nov 3, 2026, 2:30 AM
Cron is a five-field sentence that says when to do something. Each field holds a value, a wildcard or a small pattern, and a job fires in any minute where the clock matches all of them. This builder checks the expression, rewrites it in English and lists the next runs, so you can see the schedule instead of trusting it.
What it computes
30 2 * * *
│ │ │ │ └─ day of week 0–6, 0 = Sunday
│ │ │ └─── month 1–12
│ │ └───── day of month 1–31
│ └─────── hour 0–23
└────────── minute 0–59
*means every value,a-bis a range,a,bis a list, and/nsteps through a range or an asterisk, so*/15is 0, 15, 30, 45.- Each field is expanded into the set of values it allows. Anything outside the field’s range, a malformed step or the wrong number of fields produces an error naming the bad field.
- A minute matches when its minute, hour and month are in their sets and its day passes the day rule. If both day fields are restricted, a day passes when either matches; otherwise both must. As in Vixie-derived daemons such as cronie, a day field counts as unrestricted when it starts with
*, so0 0 */2 * 1runs only on Mondays that fall on an odd-numbered day, not on every odd day plus every Monday. - To list runs, the tool starts at the next whole minute, steps forward one minute at a time and keeps the first six matches found within 366 days. If there are none, it says so.
A worked example
The default is 30 2 * * *. The minute field allows only 30, the hour field only 2, and the three remaining fields are wildcards, so the day rule passes every day. Both time fields are plain numbers, so the description is the short form: At 02:30.
Opened at 10:00 AM on October 22, 2026, the run list shows 2:30 AM on October 23 and the five days after it, formatted in your browser’s locale and time zone. A few more expressions show how the rules play out:
| Expression | Description shown | What actually runs |
|---|---|---|
30 9 * * 1-5 | At 09:30, on Monday through Friday. | Weekdays at 09:30 |
0 9-17/2 * * 1-5 | At minute 0, every 2 hour starting hour 9, on Monday through Friday. | 09:00, 11:00, 13:00, 15:00, 17:00 on weekdays |
0 0 13 * 5 | At 00:00, on the 13th, on Friday. | Midnight on every Friday and on every 13th |
0 12 1 1,4,7,10 * | At 12:00, on the 1st, in Jan, Apr, Jul, Oct. | Noon on the first day of each quarter, so only four runs a year |
The third row is the OR rule in action. Its run list starts with the next Friday rather than the next Friday the 13th, which is the fastest way to catch the mistake.
Assumptions and limits
- Five numeric fields only. Month and weekday names such as
JANorMON,7for Sunday, macros like@daily, and the seconds or year fields some schedulers add are rejected. - Steps need a range or an asterisk. A single value with a step, such as
5/15, matches only that value here, minute 5, so write5-59/15for “every 15 minutes from 5”. - Local time, minute by minute. Runs are listed in your browser’s time zone. On a daylight-saving spring-forward night, 02:30 does not exist and the preview skips it; cron daemons differ in how they handle skipped and repeated hours.
- No extensions. Quartz-style
L,W,#and?are not supported.
How to use the result
- Read the run list, not just the sentence. If the first six runs are not what you expected, the expression is wrong, whatever the description says.
- Avoid 01:00 to 03:00 local for daily jobs on servers that observe daylight saving, or schedule in UTC, so a job is never skipped or doubled.
- Spread load. Thousands of jobs set to
0 0 * * *all start at once. Offset minutes, such as17 3 * * *, to avoid a midnight spike. - Make jobs safe to re-run, because missed or repeated runs happen after restarts and clock changes.
When to use it, and when not
Use it before an expression goes into a crontab, a Kubernetes CronJob or a CI schedule: write it, read the six runs, and fix it until they are the runs you meant. It is just as useful in reverse, to decode a schedule someone else wrote, especially one with steps, lists and both day fields.
It cannot tell you how the scheduler you deploy to will behave. Schedulers that add a seconds field or accept names, Quartz extensions and @daily macros need their own documentation or a dry run. For anything that must run on an exact interval that does not divide an hour or a day, or must catch up after downtime, a cron expression is the wrong tool; use a scheduler with intervals and persistence.
Trade-offs and limits
The tool answers one question, which minutes match. A real cron daemon adds behaviour the preview never shows:
| Not modelled | What real cron does |
|---|---|
| Downtime | Runs missed while the machine was off are not made up. anacron or a systemd timer with Persistent=true catches up. |
| Overlap | A new run starts on schedule even if the previous one is still going. Wrap the job in flock -n to skip instead. |
| Environment | Jobs start with a minimal environment and PATH, not your login shell’s. |
| Resolution | One minute. Nothing in five fields fires every 30 seconds. |
| Rare schedules | The preview searches 366 days ahead. 0 0 29 2 * opened in late October 2026 shows no runs, although it fires on 29 February 2028; 0 0 30 2 * never fires at all. |
The preview is in your browser’s zone, so pin the zone where the job runs and read the runs in that zone. Cronie reads a CRON_TZ=UTC line in the crontab, and a Kubernetes CronJob takes a spec.timeZone field. Without either, the job follows the server’s clock, which is often UTC.
Common mistakes
- A wildcard in the minute field.
* 2 * * *does not mean “at 2 AM”. It runs every minute from 02:00 to 02:59, 60 times. Write0 2 * * *. - A step larger than its field.
*/90in the minute field allows only minute 0, so it runs hourly. Every 90 minutes needs two lines:0 0-21/3 * * *and30 1-22/3 * * *, 16 runs a day between them. - “First Monday” written as two day fields.
0 9 1-7 * 1runs on days 1 to 7 and on every Monday, because of the OR rule. Use0 9 1-7 * *and have the script exit unless it is Monday. - Unescaped percent signs. In a crontab command line,
%means a newline, sodate +%Fbreaks. Write\%. - Testing in your shell. A script that works at the prompt can fail under cron because
PATH, the working directory and environment variables differ. Use absolute paths and log the job’s output.
Check yourself
How many times a day does 0 */6 * * * run, and when?
The hour step counts from 0 across 0–23: hours 0, 6, 12 and 18. Four runs, at 00:00, 06:00, 12:00 and 18:00.
How many times does 0 9 1-7 * 1 run in November 2026, which starts on a Sunday?
Both day fields are restricted, so a day passes if either matches. Days 1 to 7 give seven runs, Monday the 2nd among them. Mondays after the 7th add the 9th, 16th, 23rd and 30th. Total 11, not the single first-Monday run intended.
What does this tool list for 5/15 * * * *, and what did the author probably want?
A single value with a step matches only that value, so the job runs once an hour, at minute 5. Every 15 minutes from 5 is 5-59/15: minutes 5, 20, 35 and 50.
December 2026 starts on a Tuesday. How many times does 15 10 1 * 1 run that month?
The OR rule again: the 1st, plus every Monday, the 7th, 14th, 21st and 28th. Five runs, all at 10:15.
0 0 13 * 5 runs every Friday.How it works
- Decodes a five-field cron expression into plain English.
- Lists the next six run times, searching up to a year ahead, in local time.
- Supports *, ranges (1-5), lists (0,30) and steps (*/15, 9-17/2).
- Presets for every minute, hourly, daily, weekdays, weekly, monthly and every 15 minutes.
Frequently asked questions
What are the five cron fields?
A standard cron expression has five space-separated fields, in order: minute (0–59), hour (0–23), day of month (1–31), month (1–12) and day of week (0–6, where 0 is Sunday). An asterisk means every value for that field. So 30 2 * * * is minute 30, hour 2, every day of every month, which is 02:30 daily. This tool validates each field against those ranges and turns the whole expression into a sentence plus a list of upcoming runs.
What do *, /, - and , mean in cron?
An asterisk matches every value. A hyphen is a range: 1-5 in the day-of-week field means Monday through Friday. A comma is a list: 0,30 in the minute field means on the hour and at half past. A slash adds a step to a range or an asterisk: */15 in the minute field means minutes 0, 15, 30 and 45, and 9-17/2 in the hour field means 9, 11, 13, 15 and 17. Operators combine, as in 0,30 9-17 * * 1-5.
How is day of month combined with day of week?
This is the classic cron gotcha. When both the day-of-month and day-of-week fields are restricted, standard cron treats them as OR, not AND: the job runs if either matches. So 0 0 13 * 5 fires at midnight on the 13th of every month and also on every Friday, not only on Friday the 13th. If you need both conditions at once, schedule on one of them and check the other inside the job.
How do I run a cron job every 15 minutes?
Use */15 * * * *, which fires at minutes 0, 15, 30 and 45 of every hour. To run every 15 minutes only during business hours on weekdays, restrict the other fields: */15 9-17 * * 1-5 runs from 09:00 to 17:45, Monday to Friday. Steps count from the start of the range, so */7 in the minute field runs at 0, 7 and so on up to 56, then again at 0, which leaves a 4-minute gap at the top of each hour.
Does this account for time zones and daylight saving?
The next-run times are computed in your browser’s local time zone. A real cron daemon uses the time zone of the server or the scheduler, often UTC, so the same expression can fire at a different local time. Daylight-saving changes can also skip or repeat a run: 02:30 does not exist on the spring-forward night in much of the US, and this preview simply skips that day. Pin the time zone where the job runs, and prefer UTC for servers.