Cron Expression Generator
Create a standard five-field cron schedule, validate its ranges and copy the expression.
How cron expressions work
A standard cron expression contains minute, hour, day of month, month and day of week—in that order. An asterisk means “every value”; a slash defines an interval; commas define a list; and a hyphen defines a range.
Important compatibility note
This generator uses traditional five-field syntax. Some systems add a seconds or year field, and Cloudflare Cron Triggers interpret schedules in UTC. Confirm the format and timezone required by your platform before deploying.
Examples
0 9 * * 1-5 runs at 09:00 Monday through Friday.
*/15 * * * * runs every 15 minutes.
0 0 1 * * runs at midnight on the first day of each
month.
When to use the Cron Expression Generator
Use it when writing a crontab line or a scheduled job in CI or Kubernetes and you want to be sure the five fields mean what you think.
Examples
0 2 * * *runs every day at 02:00, a common time for backups.*/15 9-17 * * 1-5runs every 15 minutes during weekday office hours.
Common mistakes
- Forgetting that cron uses the server's time zone, not yours.
- Setting both day-of-month and day-of-week and expecting them to combine with AND; cron treats them as OR.
Created by Muhammad Irfan Aslam, Senior Systems & Cloud Engineer.
Case study: 3 years of ongoing Linux and AWS support →Tutorial on LearnWithIrfan: Cron jobs on Ubuntu →