Online Cron Expression Generator & Validator | FlyJson
Create and validate Cron expressions online. Set time fields or paste an expression to preview the next 10 runs. Use field guides and examples to debug tasks.
Next 10 run times
Cron expression diagram
* * * * * * * ┬ ┬ ┬ ┬ ┬ ┬ ┬ │ │ │ │ │ │ └─ Year (optional) │ │ │ │ │ └─ Day of week (0–7, 1L–7L, 0 and 7 are Sunday) │ │ │ │ └─ Month (1–12, JAN–DEC) │ │ │ └─ Day of month (1–31, L) │ │ └─ Hour (0–23) │ └─ Minute (0–59) └─ Second (0–59, omitted in traditional Unix / Linux Cron)
Separate fields with spaces. The five-field Unix format omits seconds and year. This editor generates six or seven fields. Both 0 and 7 represent Sunday.
| Second | Minute | Hour | Day of month | Month | Day of week | Year |
|---|---|---|---|---|---|---|
0–59 | 0–59 | 0–23 | 1–31 | 1–12 / JAN–DEC | 0–7 / SUN–SAT | 1970–2099 |
Special characters
| Symbol | Meaning | Example |
|---|---|---|
* | Matches every value | * |
, | Lists multiple values | 1,3,5 |
- | Sets a range | MON-FRI |
/ | Sets an interval | */5 |
? | Leaves the day unspecified | 0 0 9 ? * MON |
L | Matches the last day or the last specified weekday | 0 0 9 L * ? |
W | Matches the weekday nearest to a given date | 0 0 9 15W * ? |
# | Matches the nth weekday of each month | 0 0 9 ? * FRI#3 |
Common Cron examples
0/2 * * * * ?Every 2 seconds0 0/2 * * * ?Every 2 minutes0 0 2 1 * ?At 02:00 on the first day of each month0 15 10 ? * MON-FRIAt 10:15 on weekdays0 0 10,14,16 * * ?At 10:00, 14:00, and 16:00 daily0 0/30 9-17 * * ?Every 30 minutes from 09:00 through 17:30 daily0 0 12 ? * WEDAt noon on Wednesdays0 0 12 * * ?At noon every day0 0/5 14,18 * * ?Every 5 minutes during the 14:00 and 18:00 hours0 10,44 14 ? 3 WEDAt 14:10 and 14:44 on Wednesdays in March0 15 10 15 * ?At 10:15 on the 15th of each month0 15 10 ? * FRI#3At 10:15 on the third Friday of each month
How to use
- Configure the tabs to build a schedule, or paste an existing Cron expression.
- Select Run expression to see upcoming times in your local time zone.
- Before using the expression for backups, reports, or other jobs, check your scheduler’s syntax and time zone.
Frequently asked questions
How many fields does a Cron expression have?
This tool accepts five standard fields, six fields with seconds, or seven fields with seconds and a year.
What does a question mark mean in a day field?
A standalone ? leaves the day of the month or week unspecified. Other schedulers may interpret it differently.
Which time zone is used for the preview?
Run times are calculated and displayed in your browser’s local time zone. Check the time zone used by your scheduler before deployment.
Why are there fewer than 10 run times?
A schedule restricted to certain years may have only a few remaining matches, or none at all.
Is my expression uploaded?
Expression generation, validation, and run-time calculation all happen in your browser.