⏰ Cron Expression Generator
Build cron expressions visually with a form-based editor. Set minute, hour, day, month, and weekday fields. Preview next run times. Free online cron expression generator.
0–59
0–23
1–31
1–12
0–7
* * * * *
Every minute
How to Use
1
Choose a preset or configure
Pick a common schedule preset (every minute, hourly, daily, weekly, monthly) or configure each field individually.
2
Read the live description
The cron expression and its plain-English description update instantly as you change any field.
3
Copy and deploy
Click Copy Expression to copy the cron string to your clipboard for use in crontab, cloud schedulers, or CI/CD.
Frequently Asked Questions
What is a cron expression?
A cron expression is a string used to define schedules for automated tasks (cron jobs). It has 5 fields: minute (0-59), hour (0-23), day of month (1-31), month (1-12), and day of week (0-7). For example, "0 9 * * 1" means "every Monday at 9:00 AM".
What does * (asterisk) mean in a cron expression?
* means "every" for that field. "* * * * *" means "every minute of every hour of every day". You can use */n for intervals — "*/15 * * * *" means "every 15 minutes".
What is the difference between day of month and day of week?
Day of month (field 3) schedules tasks on specific dates like the 1st or 15th. Day of week (field 5) schedules on specific days like Monday or Friday. Using both fields in the same expression means "on this date OR this weekday" (OR, not AND).
How do I run a cron job every 5 minutes?
Use "*/5 * * * *" — the */5 in the minute field means "every 5 minutes". Similarly, "*/30 * * * *" runs every 30 minutes, and "0 */2 * * *" runs every 2 hours at the top of the hour.
Can I test if my cron expression is correct?
Yes — this generator shows a human-readable description of your cron expression in real-time, so you can immediately see if your schedule matches your intention before adding it to your server.
完整指南:可视化Cron表达式生成器
有什么用?
通过可视化界面创建Cron表达式,无需记忆语法。选择频率和时间安排后,工具自动生成正确的表达式,消除了记忆5个字段和特殊字符的需要。
如何使用
- 选择频率:每分钟、小时、天、周、月。
- 配置详细设置:哪个分钟、哪个小时、哪些天。
- 复制表达式并在Cron可视化工具中验证。
专业技巧
- 在任务调度系统中使用UTC时区,避免夏令时问题。
- 避免整点(:00)——许多系统在该时间点负载峰值。
- 对关键任务添加监控(dead man's switch)。