Cron Generator
Build a cron expression from fields or presets, with a plain-language description and the next 5 run times.
만들기
Result
weekdays, 09:00
Next run times
…
Build a cron expression from fields or presets, with a plain-language description and the next 5 run times.
weekdays, 09:00
…
Builds and explains cron expressions for repeating schedules such as "every day at 9 am" or "every 5 minutes on weekdays".
Choose the minute, hour, day, month and weekday.
Check the next run times.
Copy the expression.
From left to right: minute (0–59), hour (0–23), day of month (1–31), month (1–12) and day of week (0–7). For day of week, both 0 and 7 mean Sunday. For example, 0 9 * * 1-5 means 9 AM on weekdays.
*/5 means every 5 units (every 5 minutes in the minute field), 1-5 is the range 1 to 5, and 1,15 lists several values separated by commas, such as 1 and 15. This tool interprets only numeric notation and does not support English names such as MON or JAN, or 6-field expressions with seconds.
It is calculated in the time zone of the browser you are using and shows the next 5 runs. If the server's time zone is different, the actual run times differ too, so check the server settings. If you specify both day of month and day of week, it follows cron's rule of running when either one matches.
A standard cron expression has five fields separated by spaces: minute, hour, day of month, month, day of week. * means every value, a comma (1,15) lists values, a hyphen (9-18) is a range and a slash (*/15) is an interval. For the day of week, 0 or 7 is Sunday and 1 is Monday.
For example, */15 9-18 * * 1-5 means every 15 minutes between 9:00 and 18:59 on weekdays (Monday to Friday). In the 18:00 hour it runs at 18:00, 18:15, 18:30 and 18:45, and it does not run after 19:00.
Cron runs on the time zone of the server that executes it. If the server is on UTC and you want a job to run at 9 a.m. Korean time, you must write it as 0 0 * * *, which is 0:00 UTC. Korea is 9 hours ahead of UTC, which is why this difference arises.
Some services run only on UTC (for example scheduled runs in CI services) or use a six-field format that includes seconds. Check the number of fields and the reference time zone in the documentation of the place you use.
In traditional cron, if you specify both the day of month (3rd field) and the day of week (5th field), the job runs when either one matches, not only when both match. For example, 0 9 1 * 1 applies to both 'the 1st of every month at 9:00' and 'every Monday at 9:00'. It can run far more often than intended, so it is best to use only one of them.
This tool explains the expression you build in plain language and previews the next 5 run times, so you can check right away that it does what you intend.
Find the schedule you need and use it as it is, or just change the time, and you can express most recurring jobs.
The expressions below use the five fields in the order minute, hour, day of month, month, day of week. Paste one into this tool to check the next run times right away.
Run every minute
Every 15 minutes
At 30 minutes past every hour
Every day at 3 AM
Weekdays at 9 AM
Weekends at 10 AM
Every 30 minutes during working hours (9–18), weekdays only
Midnight on the 1st of every month
Midnight on the first day of each quarter (Jan, Apr, Jul, Oct 1st)
If you know four symbols — asterisk, comma, hyphen and slash — you can read and write most expressions.
*
,
-
/
The field ranges this tool interprets are minute 0-59, hour 0-23, day of month 1-31, month 1-12 and day of week 0-7. Values outside these ranges are reported as not understood.
Steps are counted only within a field and do not carry over into the next hour, so if the step does not divide 60 or 24 evenly, the gap gets shorter at the boundary.
For example, */7 in the minute field runs at minutes 0, 7, 14, 21, 28, 35, 42, 49 and 56. After 56 comes minute 0 of the next hour rather than minute 63, so it runs again after only 4 minutes.
To keep the interval exactly the same, use a divisor of 60: 1, 2, 3, 4, 5, 6, 10, 12, 15, 20 or 30. For the hour field, divisors of 24 are safe.
The same applies to */3 in the day-of-month field, which runs again at a one-day interval from the 31st to the 1st of the next month. To run exactly every 3 days, check the date difference in your script.
Standard cron has 5 fields, while some frameworks and services use their own formats that add seconds or a year.
This tool only creates and interprets 5 fields. When moving an expression to another format, be sure the field order has not changed.
Linux crontab, Kubernetes CronJob
Spring @Scheduled
Quartz scheduler
AWS EventBridge
Each service's format can change by version, so check the official documentation of the service you use.
These symbols are extensions in Quartz-style and some cloud schedulers, and they cannot be used in standard crontab.
For example, L means the last day of the month, W means the nearest weekday, # means the nth weekday, and ? means that one of day-of-month or day-of-week is left unspecified.
This tool does not interpret these symbols, so if you need the extended syntax, write it yourself from the service's documentation.
Standard cron has no symbol for the last day, so schedule it to run on days 28 to 31 and let the script decide whether it is really the last day.
For example, set 0 23 28-31 * *, and on the first line of the script check whether tomorrow is the 1st, exiting immediately if not. The real work then runs only on the last day.
In a crontab file, a percent sign (%) in a command is interpreted as a line break, so add a backslash before it. This is easy to miss when using commands such as date +%d.
Dates that do not exist are simply skipped, so 0 0 31 * * runs only in months that have a 31st.
If you specify the 30th or 31st for February (0 0 30 2 *), it never runs. This tool tells you so when no run time exists within a year.
A common mistake is to specify the 31st expecting it to run on the last day of each month. Use the last-day method above.
If the server runs in UTC, subtract 9 hours from Korean time. Korea has no daylight saving time, so the calculation is always the same.
If subtracting makes the hour less than 0, add 24 and move the date back by one day. If you specified a day of the week or a day of the month, move that one day earlier as well.
Every day at 9 AM
Every day at 6 PM
Every day at 2 AM
Every Monday at 7 AM
The next run times in this tool are based on the time zone of the device you are using. If it differs from the server's time zone, calculate separately in the server's time zone.
The execution environment is more often the cause than the expression itself. First check the logs to see whether a run was even attempted.
Unlike a login shell, cron runs with minimal environment variables, so it is common for a command that works in the terminal to fail only under cron.
Cron does not care whether the previous run has finished and starts a new one at the scheduled time, so the same job can overlap.
For example, if a job that runs every minute takes 2 minutes, two or three are always running at once, which can process the same data twice or increase server load.
Use a number range or list in the weekday field: Sunday is 0 or 7, and Monday to Saturday are 1 to 6.
This tool interprets only numbers, so English names such as MON and FRI cannot be used. 1-5 means weekdays and 0,6 means weekends.
0 or 7
1
2
3
Read it from the left in the order minute, hour, day of month, month and day of week, and treat an asterisk as no restriction.
For example, 30 8 * * 1 has minute 30, hour 8, any day and month, and Monday as the weekday, so it runs at 8:30 AM every Monday.
0 */2 * * * has minute 0 and an hour step of 2, so it runs on every even hour on the hour, such as 0:00, 2:00 and 4:00. 15 14 1 * * runs at 2:15 PM on the 1st of every month.
If neither is an asterisk, the job runs when either condition matches. The most confusing point is that it works as 'or', not 'and'.
For example, 0 9 13 * 5 runs when it is the 13th or a Friday, not only on Friday the 13th. It runs on every 13th and also on every Friday.
If you specify only one, only that condition applies. If you want only days that are both the 13th and a Friday, check the weekday again in the script.
Both use the standard 5-field format, but details such as time zone and delays differ by service.
GitHub Actions schedules are interpreted in UTC, and the documentation notes that runs may start later than scheduled when load is high. It may not suit jobs that need exact-minute execution.
Kubernetes CronJob also uses 5 fields, and its default time zone follows the place where the controller runs. Some versions can set a time zone, so check the official documentation.
Service-specific rules can change. For important jobs, treat each service's official documentation as the final authority.
Rather than attaching the real job from the start, it is safer to check the expression and run a short test before switching to the real job.
For hard-to-undo jobs such as deletions or payments, first change them so they only write a record in the test run.