Cron expression builder
Build or paste Quartz (seconds, optional year) or Unix five-field cron expressions, read them in plain words and list the next run times.
Loading…
Runs in this page in your browser; nothing is uploaded.
About this tool
Build, check and explain cron expressions for scheduled jobs. Use it to write a Quartz or Spring schedule with seconds, to understand a crontab line you found on a server, or to confirm when a job will next run before you deploy it.
Quartz / Spring mode takes 6 or 7 fields (seconds first, optional year) and supports ?, L, W and #; Unix crontab mode takes exactly 5 fields and macros such as @daily. Each field is explained in words, and the next 5 to 50 run times are listed in your browser’s time zone. Everything runs in your browser and nothing is uploaded.
How to use it
- Choose “Quartz / Spring (seconds)” or “Unix crontab (5 fields)”.
- Type or paste an expression into “Expression”, pick one from “Presets”, or edit the fields one by one, from “Seconds” to “Year (optional)”.
- Check the table that explains each field. If something is wrong, the error names the field.
- Set “Runs after” and “How many” (5, 10, 20 or 50) to list the next run times, then select “Copy” to copy the expression.
Common questions
Why does it say ? is needed in day of month or day of week?
In Quartz mode exactly one of the two day fields must be ?. To run at 09:00 on weekdays, write 0 0 9 ? * MON-FRI; to run at midnight on the 1st of each month, write 0 0 0 1 * ?.
How are weekdays numbered?
In Quartz mode 1 is Sunday and 7 is Saturday; in crontab mode 0 and 7 are both Sunday. Names such as SUN, MON-FRI and JAN-DEC work in either mode and avoid mix-ups.
What do L, W and # mean?
In day of month, L is the last day, L-3 three days before it, 15W the weekday nearest the 15th and LW the last weekday. In day of week (Quartz numbering), 6L is the last Friday and 6#3 the third Friday of the month, and a lone L means Saturday.
In crontab, what if both day of month and day of week are set?
The job runs when either one matches. For example, 0 9 1 * 1 runs at 09:00 on the 1st of every month and on every Monday.
Which time zone are the run times in?
Your browser’s time zone. A time skipped by a daylight-saving change is left out, and if nothing matches before 2100 the page says “No run before 2100.”
Related tools
Alarm and countdown
Count down from a set time or ring at a clock time with built-in tones while this page stays open.
Calendar with Chinese lunar dates
Month calendar from 1901 to 2099 with lunar dates, solar terms, traditional and public festivals, and stems and branches.
Date calculator
Add or subtract days, weeks, months or years from a date, and count the days, weeks and working days between two dates.
Leap years and leap months
Check whether a year is a leap year, list the leap years in a range, and see each year’s Chinese leap month and the length of its solar and lunar years.
Chinese double hours
The twelve double hours with clock times, traditional names, zodiac animals and night watches, the current double hour, and old units of time.
Stopwatch
Time to the hundredth of a second with laps; the fastest and slowest laps are marked.