How to use the Cron Expression Builder
- 1Type a cron expression or pick a preset such as every 15 minutes.
- 2Edit individual fields; the expression and description update together.
- 3Check the next 10 run times in your local time zone.
- 4Copy the expression into crontab, a CI scheduler or your app.
What is a cron expression builder?
A cron expression builder helps you write and understand the five-part schedules used by cron, the time-based job scheduler on Linux and macOS, and by many cloud schedulers. This tool lets you type an expression or edit each field separately, explains the schedule in plain English, and lists the next 10 times it will run in your time zone.
For example, */15 9-17 * * 1-5 means "every 15 minutes, between 09:00 AM and 05:59 PM, Monday through Friday".
What do the five cron fields mean?
A standard cron expression has five fields separated by spaces:
┌───────── minute (0–59)
│ ┌─────── hour (0–23)
│ │ ┌───── day of month (1–31)
│ │ │ ┌─── month (1–12 or JAN–DEC)
│ │ │ │ ┌─ day of week (0–6, Sunday = 0, or SUN–SAT; 7 also means Sunday)
│ │ │ │ │
* * * * *
Each field accepts these forms:
| Syntax | Meaning | Example | Result |
|---|---|---|---|
* | Every value | * in hour | Every hour |
5 | A single value | 5 in minute | At minute 5 |
1,15 | A list | 1,15 in day of month | On the 1st and 15th |
9-17 | A range | 9-17 in hour | 9 AM to 5 PM |
*/15 | A step | */15 in minute | 0, 15, 30, 45 |
10-40/10 | Stepped range | in minute | 10, 20, 30, 40 |
Shortcuts like @daily, @hourly, @weekly, @monthly and @yearly are also accepted. The format is described in the crontab(5) manual.
How are the next run times calculated?
The plain-English description comes from the open-source cronstrue library (MIT). The next run times are calculated by ATechCraft's own tested code. It starts one minute after the current time and steps forward: if the month doesn't match, it jumps to the next month; if the day doesn't match, the next day; then the hour; then the minute. This is much faster than checking every minute one by one.
One rule trips up many people. When both day of month and day of week are restricted, standard (Vixie) cron runs the job when either matches, not only when both do. So 0 0 1 * 5 runs at midnight on the 1st of every month and on every Friday. This tool follows that rule.
Worked example
Expression: 30 9 * * 1 (minute 30, hour 9, any day of month, any month, Monday).
Description: "At 09:30 AM, only on Monday".
If today is Tuesday 1 December 2026, the next runs are Monday 7 December 09:30, Monday 14 December 09:30, Monday 21 December 09:30, and so on.
Now try 0 0 1 * 5. Starting from 1 December 2026 at 10:07, the first run is Friday 4 December, not 1 January, because of the "either day field" rule.
Tips
- Know your scheduler's time zone. Classic cron uses the server's time zone. GitHub Actions and many cloud schedulers use UTC. Pakistan is UTC+5, so 9 AM in Karachi is
0 4 * * *in UTC. Check conversions with the Unix Timestamp Converter. - Avoid running everything at minute 0. Many jobs start at the top of the hour; pick minute 7 or 23 to spread the load.
- Days 29–31 don't exist in every month. A job on
0 0 31 * *runs only seven times a year. - Log the output. In crontab, redirect output to a file so failures are visible.
- Validating patterns in a config file? The Regex Tester helps, and the JSON Formatter tidies JSON-based scheduler configs.
Limitations
- Only the standard 5-field format is supported. Quartz (Java) and some libraries use 6 or 7 fields with seconds and years, and special characters like
L,Wand#, which this tool doesn't accept. - Next run times are shown in your device's time zone and handle daylight-saving changes the way your browser does. Your server may behave differently during the skipped or repeated hour.
- The tool doesn't run jobs; it only builds and explains schedules.
Frequently asked questions
What do the five fields mean?
Minute (0–59), hour (0–23), day of month (1–31), month (1–12) and day of week (0–6, Sunday = 0). An asterisk means every value.
What happens when day of month and day of week are both set?
In standard Vixie cron the job runs when either field matches, not only when both match. The next-run list follows this rule.
Which time zone does cron use?
The server’s time zone, unless the scheduler lets you set one. GitHub Actions schedules use UTC.
Does it support seconds?
No. This tool uses the standard 5-field format. Quartz and some libraries add a seconds field.
Last updated: . Written and tested by Abdul Moid Khan, ATechCraft. Read how we build and test tools.