Cron Job Generator
Generate cron expressions visually with human-readable descriptions, next run times, and presets. Supports standard 5-field cron syntax.
About
A misconfigured cron expression can silently skip critical backups, flood a server with requests every second instead of every hour, or trigger billing jobs on wrong dates. The standard 5-field cron syntax (minute hour day-of-month month day-of-week) is compact but error-prone. Field ranges differ: minutes span 0 - 59, hours 0 - 23, days 1 - 31, months 1 - 12, weekdays 0 - 6 (Sunday = 0). This tool constructs valid expressions through a visual interface and immediately shows the next 10 execution timestamps so you can verify behavior before deployment.
Note: this generator follows POSIX crontab semantics. When both day-of-month and day-of-week are specified (not *), the job runs if either field matches - a common source of confusion. Non-standard extensions like @reboot or seconds fields are outside scope. Execution times are calculated in your local timezone and assume the host clock is synchronized.
Formulas
A standard cron expression consists of 5 space-separated fields:
Each field accepts the following notation:
Where field ranges are: minute = 0 - 59, hour = 0 - 23, day-of-month = 1 - 31, month = 1 - 12, day-of-week = 0 - 6 (Sunday = 0). POSIX specifies that when both day-of-month and day-of-week are restricted (not *), the job fires when either condition is met (logical β¨).
Reference Data
| Expression | Description | Use Case |
|---|---|---|
| * * * * * | Every minute | Health checks, queue polling |
| */5 * * * * | Every 5 minutes | Metrics collection |
| 0 * * * * | Every hour at minute 0 | Hourly cache flush |
| 0 */2 * * * | Every 2 hours | Data sync |
| 0 0 * * * | Daily at midnight | Log rotation, backups |
| 0 6 * * * | Daily at 06:00 | Morning report emails |
| 30 4 * * * | Daily at 04:30 | Off-peak DB maintenance |
| 0 0 * * 0 | Every Sunday at midnight | Weekly digest |
| 0 0 * * 1-5 | Weekdays at midnight | Business-day processing |
| 0 0 1 * * | 1st of every month at midnight | Monthly invoicing |
| 0 0 1 1 * | January 1st at midnight | Annual license renewal |
| 0 0 15 * * | 15th of every month | Mid-month payroll |
| 0 9-17 * * 1-5 | Hourly 09:00-17:00, Mon - Fri | Business-hours monitoring |
| */15 * * * * | Every 15 minutes | API polling |
| 0 0 1,15 * * | 1st and 15th of month | Bi-monthly billing |
| 0 22 * * 5 | Every Friday at 22:00 | Weekend deploy trigger |
| 5 4 * * 0 | Sunday at 04:05 | Weekly full backup |
| 0 0 * * 6,0 | Weekends at midnight | Weekend batch jobs |
| 0 */6 * * * | Every 6 hours | Certificate checks |
| 0 0 L * * | Last day of month (non-standard) | End-of-month reports |