Use this free cron expression generator to build a schedule without memorizing the syntax. Pick a preset or fill in the five fields, and the tool gives you the finished expression, a plain-English description, and the next five times it will run. If a field is invalid, the tool tells you which one and why. When you are happy with the result, copy it into your crontab, CI pipeline, or job scheduler.
A cron expression is easy to get almost right. Preview the next run times before you deploy it, not after the job misses a night.
How to use the cron expression generator
- Pick a preset: start from a common schedule such as every 5 minutes or weekdays at 9:00.
- Edit the fields: change the minute, hour, day of month, month, or day of week. The result updates as you type.
- Check the preview: read the plain-English description and confirm the next run times match what you expect.
- Copy the expression: paste it into your scheduler.
The five cron fields
| Field | Allowed values | Notes |
|---|---|---|
| Minute | 0-59 | First field in the expression |
| Hour | 0-23 | 24-hour clock, so 0 is midnight |
| Day of month | 1-31 | Days that do not exist in a month are skipped |
| Month | 1-12 | 1 is January and 12 is December |
| Day of week | 0-7 | Both 0 and 7 mean Sunday |
Special characters
- Asterisk (
*): matches every value in the field. - Comma (
,): lists values, such as1,15for the 1st and the 15th. - Hyphen (
-): sets a range, such as1-5for Monday to Friday. - Slash (
/): sets a step, such as*/10for every 10 units.
Common cron schedules
| Schedule | Expression | Meaning |
|---|---|---|
| Every 5 minutes | */5 * * * * | Runs at minutes 0, 5, 10, and so on |
| Every hour | 0 * * * * | Runs at the start of every hour |
| Daily at midnight | 0 0 * * * | Runs once a day at 00:00 |
| Weekdays at 9:00 | 0 9 * * 1-5 | Runs Monday to Friday at 09:00 |
| Monthly | 0 0 1 * * | Runs on the 1st of each month at 00:00 |
Common cron mistakes
- Wrong field count: standard cron uses exactly five fields. Some tools, such as Quartz, add a seconds field.
- Using * in the minute field:
* 9 * * *runs every minute from 09:00 to 09:59, not once at 9. Use0 9 * * *instead. - Day of month and day of week together: when both are set, standard cron runs the job when either one matches.
- Time zone surprises: cron runs in the time zone of the server, which is often UTC.
- Out-of-range values: hours go up to 23 and minutes up to 59. A value like
60or24is invalid.
Whether you are scheduling backups, reports, or cleanup jobs, a quick preview of the next run times catches mistakes before they run in production.
Worked examples
Run a job every 15 minutes on weekdays
Enter */15 for minute, 9-17 for hour, and 1-5 for day of week. The expression is */15 9-17 * * 1-5, which runs every 15 minutes from 09:00 to 17:45, Monday to Friday.
Run a report on the first day of every month
Pick the “Monthly on the 1st” preset, then change the hour to 6. The result is 0 6 1 * *, which runs at 06:00 on the 1st of each month.
Find an invalid field
Enter 75 in the minute field. The tool reports that minute must be between 0 and 59, so you can fix it before it reaches your scheduler.
Frequently asked questions
Is this cron expression generator free to use?
Yes. You can build, validate, preview, and copy cron expressions without creating an account.
Is my data uploaded or stored?
No. Everything runs in your browser. Nothing you enter is sent to a server or saved.
Which time zone do the next run times use?
The preview uses your device’s local time zone. Your server may use a different one, often UTC, so check your scheduler’s time zone setting.
Does it support 6-field or Quartz cron?
No. This tool uses the standard 5-field format. Seconds fields, the Quartz ? character, and special values such as L and W are not supported.
What happens if I set both day of month and day of week?
In standard cron, the job runs when either field matches. The tool follows this behavior and adds a note to the description.
Can I use month and day names like JAN or MON?
Not in this tool. Use numbers instead: 1 to 12 for months and 0 to 7 for days of the week.