Crontab 验证器

验证 cron 表达式并预览下次执行时间。

*/15
Minute 0–59
*
Hour 0–23
*
Day 1–31
*
Month 1–12
*
Weekday 0–7

表达式有效

minute: */15, hour: every hour

未来 8 次执行时间

12026-04-25 16:30 Sat下次
22026-04-25 16:45 Sat
32026-04-25 17:00 Sat
42026-04-25 17:15 Sat
52026-04-25 17:30 Sat
62026-04-25 17:45 Sat
72026-04-25 18:00 Sat
82026-04-25 18:15 Sat

What Is the Crontab Validator?

The crontab validator is a free online tool that checks whether a cron expression is syntactically valid and shows you the next scheduled execution times. Paste any 5-field cron expression and the tool instantly validates it, displays a human-readable description, and lists the next 8 times the job would run based on the current time.

Cron is the standard Unix job scheduler. Cron expressions are used in Linux crontabs, CI/CD pipelines (GitHub Actions, GitLab CI), cloud schedulers (AWS EventBridge, Google Cloud Scheduler), and application frameworks. A single misplaced character can cause a job to run at the wrong time or not at all — this validator helps you catch those errors before deploying.

How to Use the Crontab Validator

  1. Type or paste a 5-field cron expression into the input field.
  2. Or click one of the preset buttons to load a common schedule.
  3. The field breakdown shows each value with its allowed range highlighted.
  4. A green banner confirms the expression is valid; red shows the error.
  5. The next 8 scheduled run times are listed below, calculated from the current time.

Features

  • Validates all 5 cron fields: minute, hour, day-of-month, month, day-of-week
  • Supports ranges (1-5), lists (1,3,5), steps (*/15), and name aliases (MON, JAN)
  • Human-readable schedule description
  • Next 8 execution times calculated from current local time
  • Visual field breakdown with allowed ranges
  • 6 common preset schedules
  • Runs entirely in your browser — no data sent to servers

FAQ

What is a cron expression?

A cron expression is a string of five fields separated by spaces that defines a schedule for recurring tasks. The fields represent minute (0–59), hour (0–23), day of month (1–31), month (1–12), and day of week (0–7, where both 0 and 7 represent Sunday).

What does */15 mean in a cron expression?

*/15 means "every 15 units". In the minute field, */15 means the task runs at minutes 0, 15, 30, and 45 of every hour. The * means "all values" and /15 is the step.

Can I use month and weekday names in cron?

Yes. You can use three-letter abbreviations for months (JAN–DEC) and weekdays (SUN–SAT) in place of numbers. For example, "0 9 * * MON" runs every Monday at 9:00 AM.

What is the difference between day-of-month and day-of-week?

Day-of-month (field 3) specifies which calendar day to run (1–31). Day-of-week (field 5) specifies which day of the week (0=Sunday through 6=Saturday, 7 also equals Sunday). When both are set to non-wildcard values, the task runs when either condition is true.