Cron Expression Generator
Build a five-field cron schedule, read it back in plain English and see the next five times it will run.
How to build a cron expression
- Pick a starting point from Start from a common schedule, such as "Every day at 02:30" or "Every Monday at 09:00". This fills in all five fields for you.
- Adjust any of the five boxes: the minute from 0 to 59, the hour from 0 to 23, the day of the month from 1 to 31, the month from 1 to 12 and the weekday from 0 to 6, where 0 means Sunday. Use
*for "every". - Read the plain-English description underneath to confirm the schedule means what you intended.
- Check the list of the next five run times. Choose whether they are shown in your browser's time zone or in UTC, which is what many servers use.
- Copy the finished expression from the Cron expression box. You can also type or paste an existing expression there to have it explained.
Worked example
A business wants a stock-sync job to run every quarter of an hour during office hours on weekdays. Choosing the first preset gives the expression */15 9-17 * * 1-5. The description reads "Every 15 minutes, between 09:00 and 17:59, on Monday to Friday." Notice the end time: an hour range of 9-17 includes the whole of the 17:00 hour, so the last run of the day is at 17:45, not 17:00.
We checked the run-time list from midday UTC on Saturday 5 December 2026. Because Saturday and Sunday are excluded, the first five runs were Monday 7 December 2026 at 09:00, 09:15, 09:30, 09:45 and 10:00. A second check with 0 2 1 * * produced "At 02:00, on day 1 of the month.", with the next runs on 1 January 2027 and 1 February 2027 at 02:00.
How it works
Each of the five fields accepts a single number, a list separated by commas (1,15), a range with a hyphen (9-17), a step with a slash (*/15 or 0-30/10), or * for every value. Month and weekday names such as JAN or MON are understood too, and 7 is accepted as Sunday. The tool expands every field into the exact set of values it allows, writes a description from them and then steps forward through the calendar to find matching times. It follows the standard rule that, when both day of the month and day of the week are restricted, a job runs when either one matches.
Tips
- Check which time zone your server uses. Many run on UTC, which is one hour behind UK clocks during British Summer Time.
- Avoid scheduling important jobs between 01:00 and 02:00 local time, because clock changes can make them run twice or not at all.
- Spread heavy tasks across odd minutes, such as 7 or 23, rather than on the hour when many other jobs start.
- Add a comment above each line in your crontab explaining what the job does and who owns it.
- Test a new job with a schedule a few minutes ahead before setting its real timing.
Frequently asked questions
Does this support seconds or years?
No. It uses the classic five-field format of Linux crontab, cPanel and hPanel. Some systems, such as Quartz, add extra fields.
How do I run a job on the last day of the month?
Standard cron has no "last day" symbol. A common approach is to run on days 28–31 and have the script check whether tomorrow is the 1st.
Where do I paste the expression?
In your hosting control panel's cron jobs page, or at the start of a line in your crontab, followed by the command to run.
Why did my job not run at the time shown?
The most common reasons are a server set to a different time zone, a command path that only works in your own login shell, or the cron service being paused. Check your host's cron log or have the job write a line to a file.
Is anything sent to a server?
No. The expression is built and explained in your browser.