CRON Expression Generator
Build and decode CRON schedule expressions visually
Every minute
Schedule Builder
Next 5 Executions
About This Tool
Build and decode five-field cron expressions with a visual schedule builder, presets, a plain-English description, and a preview of the next five run times.
Build cron schedules without memorizing the syntax
Cron is the time-based job scheduler found on Linux and other Unix-like systems, and its five-field expression format is also used by CI pipelines, cloud schedulers, and many job-queue libraries. The format is compact but easy to get wrong: one misplaced asterisk and a nightly backup runs every minute. This generator lets you assemble an expression field by field, describes it in plain English, and lists the next five times it would fire so you can sanity-check the schedule before deploying it.
How to use it
- Start from a Preset such as "Every 15 Minutes" or "Every Weekday at 9 AM", or paste an existing expression into Paste Expression and click Decode.
- Adjust each row of the Schedule Builder: Minute, Hour, Day (Month), Month, and Day (Week). Each row has four modes: Every (
*), Specific (one value), Range (from-to), and Step (*/n). - Read the generated expression and description at the top, and check the Next 5 Executions list. Times are shown in your browser's local time zone.
- Click Copy and paste the expression into your crontab or scheduler config.
The five fields
| Position | Field | Allowed values |
|---|---|---|
| 1 | Minute | 0-59 |
| 2 | Hour | 0-23 |
| 3 | Day of month | 1-31 |
| 4 | Month | 1-12 |
| 5 | Day of week | 0-6 (0 is Sunday) |
Special characters combine values within a field:
*means every value.* * * * *runs every minute.a-bis a range.0 9 * * 1-5runs at 9:00 on Monday through Friday.*/nis a step.*/15 * * * *runs at minutes 0, 15, 30, and 45 of every hour.a,b,cis a list.0 8,12,18 * * *runs three times a day. Most cron implementations also accept month and weekday names likeJANorMON.
Worked examples
0 0 * * *: every day at midnight.30 2 * * 0: every Sunday at 2:30 AM, a common slot for weekly maintenance.0 0 1 * *: at midnight on the first day of each month, handy for monthly reports.0 */6 * * *: every six hours, on the hour.
Pitfalls to watch for
- Forgetting the minute.
* 9 * * *runs sixty times between 9:00 and 9:59. You almost always want0 9 * * *. - Time zones. Cron uses the server's time zone, which is often UTC, while the preview here uses your local time. Use the time zone converter to translate between them, and remember daylight saving changes can skip or repeat runs scheduled around 1 to 3 AM.
- Day of month and day of week together. In standard cron, if both fields are restricted the job runs when either matches, so
0 0 13 * 5fires on every 13th and on every Friday. The preview here only lists times when both match, so avoid restricting both fields unless you have checked your scheduler's rules. - Six-field variants. Some systems such as Quartz and certain cloud schedulers add a seconds field or a year field. This tool produces the classic five-field format.
- Scripts that fail silently. Cron runs with a minimal environment. Use absolute paths, make sure the script is executable (the chmod calculator helps), and redirect output to a log file.
The visual builder handles one value, one range, or one step per field. Lists and combined forms such as 1-30/5 are valid cron, but decoding them here will simplify the field, so keep such expressions for hand editing.
FAQ
How do I edit my crontab?
Run crontab -e and add a line with the expression followed by the command, for example 0 3 * * * /usr/local/bin/backup.sh. Use crontab -l to list your entries.
Can cron run a job every 30 seconds?
Not directly. The smallest unit is one minute. Workarounds include two entries where one sleeps 30 seconds first, or a scheduler that supports seconds.
Is 7 a valid day of week?
Many implementations accept both 0 and 7 for Sunday, but 0 is the portable choice and the one this tool uses.