Cron expression builder and explainer with next run times
A cron expression is five space-separated fields (minute, hour, day of month, month, day of week) that describe a schedule; each field accepts numbers, ranges (1-5), lists (1,15), steps (*/10) or * for any. For example, 0 9 * * 1-5 means 09:00 every weekday. This builder translates an expression into plain English, lists the next ten run times in your time zone, and lets you compose a schedule from dropdowns.
Your files never leave your device. Processing happens in your browser. How that works.
How it works
- Type a cron expression, or pick a preset such as every 5 minutes.
- Read the plain-English description and the next run times.
- Adjust fields with the builder controls and copy the expression.
Runs as JavaScript inside this tab. Turn off your connection after the page loads and it still works.
Cron syntax reference
The five fields
┌───────── minute (0–59)
│ ┌─────── hour (0–23)
│ │ ┌───── day of month (1–31)
│ │ │ ┌─── month (1–12 or JAN–DEC)
│ │ │ │ ┌─ day of week (0–7 or SUN–SAT; 0 and 7 are Sunday)
│ │ │ │ │
* * * * * command
| Symbol | Meaning | Example |
|---|---|---|
* |
Any value | * * * * * every minute |
, |
List | 0 9,17 * * * at 09:00 and 17:00 |
- |
Range | 0 9 * * 1-5 weekdays at 09:00 |
/ |
Step | */15 * * * * every 15 minutes; 0 0 */2 * * every other day |
L |
Last (Quartz, some crons) | 0 0 L * * last day of month; 0 0 * * 5L last Friday |
W |
Nearest weekday (Quartz) | 0 0 15W * * weekday nearest the 15th |
# |
Nth weekday (Quartz) | 0 0 * * 1#2 second Monday |
? |
No specific value (Quartz) | Used in one of day-of-month / day-of-week |
Aliases
| Alias | Equivalent |
|---|---|
@yearly, @annually |
0 0 1 1 * |
@monthly |
0 0 1 * * |
@weekly |
0 0 * * 0 |
@daily, @midnight |
0 0 * * * |
@hourly |
0 * * * * |
@reboot |
Once at startup (crontab only; not a schedule) |
Day-of-month and day-of-week together
In standard (Vixie) cron, if both fields are restricted the job runs when either matches. 0 0 13 * 5 runs on the 13th of every month and every Friday, not only Friday the 13th. Quartz avoids the ambiguity by requiring ? in one of the two.
Six and seven fields
Quartz (Java), Spring, and some cloud schedulers put a seconds field first: 0 */5 * * * * is every 5 minutes at second 0. Quartz also allows an optional year field at the end. This tool accepts 5 or 6 fields.
Common expressions
| Schedule | Expression |
|---|---|
| Every minute | * * * * * |
| Every 5 minutes | */5 * * * * |
| Every hour, on the hour | 0 * * * * |
| Every day at 02:30 | 30 2 * * * |
| Weekdays at 09:00 | 0 9 * * 1-5 |
| Every Sunday at midnight | 0 0 * * 0 |
| First of the month at 06:00 | 0 6 1 * * |
| Every quarter | 0 0 1 1,4,7,10 * |
| Twice a day (08:00, 20:00) | 0 8,20 * * * |
| Every 90 minutes | Not expressible in one line; use 0 0,3,6,9,12,15,18,21 * * * plus 30 1,4,7,10,13,16,19,22 * * * |
Time zones and DST
cron runs in the system’s time zone. During a daylight-saving jump, a job scheduled in the skipped hour is missed and one in the repeated hour may run twice. Schedule critical jobs in UTC or outside 01:00–03:00 local time. Kubernetes CronJobs support timeZone:; GitHub Actions schedules are always UTC.
crontab basics
crontab -e # edit your crontab
crontab -l # list it
*/10 * * * * /usr/local/bin/backup.sh >> /var/log/backup.log 2>&1
Use absolute paths (cron has a minimal PATH), redirect output, and set MAILTO="" to stop cron emailing you.
Worked examples
0 9 * * 1-5 → “At 09:00, Monday through Friday.” About 5 runs per week; the next-runs list skips Saturday and Sunday.
*/15 * * * * → “Every 15 minutes.” 96 runs per day at :00, :15, :30 and :45.
0 0 1 */3 * → “At 00:00, on day 1 of the month, every 3 months.” Note this is January, April, July, October (steps start from the first allowed value), which happens to be quarterly.
30 2 * * 0 → “At 02:30, only on Sunday.” In regions with daylight saving, the last Sunday in March may skip this run if clocks jump from 02:00 to 03:00.
0 0 13 * 5 → “At 00:00, on day 13 of the month and on Friday.” Both day fields are set, so this fires on every Friday and every 13th, which is rarely what was intended.
Six fields: 0 */5 * * * * → With a leading seconds field, this is every 5 minutes at second 0, as Quartz or Spring would read it.
Building a schedule
Pick Every 6 hours in the Hour column and 0 in the Minute column: the expression becomes 0 */6 * * *, running at 00:00, 06:00, 12:00 and 18:00.
Frequently asked questions
What does */5 mean?
Every 5 units, starting at 0. In the minute field, */5 runs at :00, :05, :10 and so on.
Is Sunday 0 or 7?
Both. Standard cron accepts 0 and 7 for Sunday. Some systems also accept SUN.
Why does my job run twice a day?
Usually because both day-of-month and day-of-week are set: standard cron runs when either matches, not both.
Does it support seconds or the year field?
Six-field expressions with a leading seconds field (used by Quartz and Spring) are accepted. The Quartz year field and ? wildcard are also recognised.
What time zone are the next runs in?
Your browser’s local time zone by default; switch to UTC if your server runs in UTC.
Cron builder · last updated · changelog · part of Canned Tuna