Cron Expression Generator
Build and validate cron expressions visually with a plain-English schedule description.
How to use Cron Expression Generator
Frequently Asked Questions
What is the difference between 5-field and 6-field cron expressions?
Standard Unix/Linux cron uses 5 fields: minute, hour, day-of-month, month, day-of-week. Some systems add a 6th field — either seconds (Jenkins, Quartz Scheduler, AWS EventBridge, Spring) at the beginning, or year at the end. The generator supports both. Check your platform's documentation to confirm whether it expects 5 or 6 fields, as an incorrect field count will cause a parse error.
How do I write a cron expression that runs every 15 minutes?
Use */15 in the minute field: */15 * * * * . The / operator means "every N units." So */15 in minutes means every 15 minutes starting from minute 0 — runs at :00, :15, :30, :45. Similarly, */2 in the hour field means every 2 hours. The asterisk alone means "every possible value" for that field.
What does the L character mean in a cron expression?
L stands for "last" and is supported in some cron implementations (Quartz, Spring, not standard Unix cron). In the day-of-month field, L means the last day of the month. In the day-of-week field, 5L means the last Friday of the month. Standard Unix cron does not support L — check whether your scheduler (Jenkins, AWS, Kubernetes CronJob) supports extended syntax before using it.
How do I schedule a job to run on weekdays only?
Use 1-5 or MON-FRI in the day-of-week field (field 5). For example, to run at 9:00 AM on weekdays: 0 9 * * 1-5. The 0 is minute, 9 is hour, * means every day of month, * means every month, and 1-5 means Monday through Friday. The tool's visual controls let you select weekdays with checkboxes so you do not need to remember the numbers.
Why did my cron job not run at the expected time?
Common causes: the cron daemon uses UTC time while you designed the schedule in your local timezone — convert your intended time to UTC before writing the expression. The expression itself is correct but your scheduler requires a restart after adding new jobs. Day-of-month and day-of-week fields interact unexpectedly — when both are set to non-wildcard values, most systems run the job when EITHER condition matches, not both.
Recommended
Related Tools
Countdown Timer
Set a custom countdown timer with audio alert, multiple timers, and optional full-screen mode.
Date Calculator
Calculate the difference between two dates, or add and subtract days, weeks, and months from any date.
Unix Timestamp Converter
Convert Unix timestamps to human-readable dates and vice versa. Supports milliseconds, seconds, and multiple time zones.