Cron Expression Generator
Build a cron expression from dropdowns, or paste one to see when it runs.
* * * * *
minute(0-59) hour(0-23) day(1-31) month(1-12) weekday(0-6, 0=Sunday)
Enter a standard 5-field cron expression. (minute hour day month weekday)
A cron expression is five fields, minute, hour, day, month and weekday, separated by spaces. Use the Visual Builder to pick values, or Parse Expression to check an existing one and read it as a plain description. Checking and describing happen in the page, and nothing you enter is saved.
Five expressions and what they do
| Expression | Plain meaning | Actual schedule |
|---|---|---|
30 2 * * * | 2:30 every day | Daily at 02:30 |
0 */2 * * * | Every 2 hours at minute 0 | On the hour, every two hours from 00:00 to 22:00 |
*/15 9-18 * * 1-5 | Every 15 minutes between 9 and 18, Monday to Friday | Weekdays from 9:00 to 18:45 every 15 minutes |
0 9 * * MON-FRI | Weekdays at 9 AM | Weekdays at 09:00 |
0 0 1 * 1 | Day 1 and Monday at 0:00 | Midnight on the 1st of each month and every Monday |
The hour range 9-18 includes the whole 18:00 hour, so the last run is 18:45. To stop at exactly 18:00, write 9-17 and add a separate line for 18:00.
Filling both day and weekday
The last row reads like "the 1st, when it is a Monday", but Linux cron runs when either field matches once both are something other than *. That means five or six runs a month. Notation such as L, 15W, 1#1 and ? belongs to Quartz-style schedulers and does not work in a Linux crontab, even though this tool accepts and describes it.
Time zones and six-field expressions
Cron follows the server's time zone. On a UTC server, 0 9 * * * runs at 18:00 in Korea. Spring and Quartz expressions have a leading seconds field, six in all; this tool takes five, so drop the first. Weekdays run 0 to 6, with Sunday as 0 or SUN. An impossible date like 0 0 31 2 * is not caught. To convert log times, use the timestamp converter.
The smallest step in five-field cron is one minute. Missed runs are not replayed, and cron does not check whether the previous run finished, so jobs can overlap. Wrapping the command in flock -n lockfile command prevents that.