Select quick pick or customize fields
See human-readable description
Add to your crontab
A cron expression is a string of five or six fields separated by spaces that represents a schedule for automated tasks. Cron is a time-based job scheduler in Unix-like operating systems. Users schedule jobs (commands or scripts) to run periodically at fixed times, dates, or intervals using cron expressions in crontab files.
Each field in a cron expression specifies when a task should execute: minute, hour, day of month, month, and day of week. Some systems support a sixth field for seconds. Cron expressions use special characters like asterisks (*), commas (,), hyphens (-), and slashes (/) to define complex schedules.
* * * * * │ │ │ │ │ │ │ │ │ └─ Day of week (0-6, Sunday=0 or 7) │ │ │ └─── Month (1-12) │ │ └───── Day of month (1-31) │ └─────── Hour (0-23) └───────── Minute (0-59)
Start with a quick pick template for common schedules like "Every Hour", "Daily at Midnight", or "Weekdays at 9 AM". These templates provide instant cron expressions for typical use cases. Click any quick pick to populate the expression and see the description.
Modify individual fields (minute, hour, day, month, weekday) to create custom schedules. Use asterisks (*) for "any value", numbers for specific values, ranges (1-5), lists (1,3,5), or step values (*/15). The description updates in real-time as you type.
Check the "Next 5 Run Times" section to verify your schedule executes when expected. This preview helps catch mistakes before deploying to production. Ensure the times match your intended schedule.
Click "Copy Expression" to copy the cron expression to your clipboard. Add it to your crontab file using `crontab -e` on Linux/Unix systems. The expression is ready to use in any cron-compatible system.
Schedule daily or weekly backups of databases, files, and configurations. Use expressions like "0 2 * * *" for daily backups at 2 AM or "0 2 * * 0" for weekly backups on Sunday at 2 AM. Automated backups ensure data safety without manual intervention.
Clean up old log files regularly to save disk space. Schedule cleanup tasks with expressions like "0 0 * * *" for daily cleanup at midnight. Rotate logs weekly or monthly to maintain system performance and comply with retention policies.
Synchronize data between systems, databases, or cloud services on a schedule. Use expressions like "*/30 * * * *" for every 30 minutes or "0 */4 * * *" for every 4 hours. Regular sync keeps data consistent across systems.
Generate and email reports automatically. Schedule daily reports with "0 8 * * 1-5" (weekdays at 8 AM) or monthly reports with "0 9 1 * *" (1st of month at 9 AM). Automated reports save time and ensure stakeholders receive timely information.
Run health checks, monitor system resources, and check service availability periodically. Use expressions like "*/5 * * * *" for every 5 minutes or "*/15 * * * *" for every 15 minutes. Regular monitoring detects issues before they impact users.
* * * * *
Runs every minute of every hour, every day. Useful for high-frequency monitoring or testing.
0 * * * *
Runs at minute 0 of every hour (1:00, 2:00, 3:00, etc.). Common for hourly data processing.
0 0 * * *
Runs at 00:00 (midnight) every day. Perfect for daily backups, reports, or cleanup tasks.
0 9 * * 1-5
Runs at 9:00 AM Monday through Friday. Ideal for business-hours tasks like sending daily reports.
*/15 * * * *
Runs every 15 minutes (00, 15, 30, 45). Good for frequent monitoring or data sync.
0 0 1 * *
Runs at midnight on the 1st day of every month. Used for monthly reports or billing tasks.
0 0 * * 0
Runs at midnight every Sunday. Perfect for weekly backups or maintenance tasks.
0 */6 * * *
Runs at 00:00, 06:00, 12:00, and 18:00 every day. Useful for periodic data updates.
0 8,20 * * *
Runs at 8:00 AM and 8:00 PM every day. Good for morning and evening tasks.
*/30 9-17 * * 1-5
Runs every 30 minutes from 9 AM to 5 PM on weekdays. Perfect for business-hours monitoring.
Explore our other DevOps and system administration tools:
Get $200 free DigitalOcean credit or sponsor us on GitHub!