β±οΈ Cron Expression Generator
Visually build and parse Cron job schedule expressions with real-time next execution preview
π Quick Presets
π§ Custom Cron Expression
π Next Execution Times
π Cron Syntax Reference
| Field | Range | Special Chars |
|---|---|---|
| Minute | 0-59 | , - * / |
| Hour | 0-23 | , - * / |
| Day | 1-31 | , - * ? / L W |
| Month | 1-12 | , - * / |
| Weekday | 0-7 | , - * ? / L # |
* Any ? No specific - Range , List / Step L Last W Weekday # Nth weekday
β FAQ
What is a Cron expression?
A Cron expression is a time-based string used in Unix/Linux to schedule recurring tasks. It consists of 5 fields (minute hour day month weekday) and is widely used in Linux crontab, Kubernetes CronJob, Spring Boot @Scheduled, and more.
What's the difference between 0 0 * * * and @daily?
0 0 * * * is equivalent to @daily β both run at midnight every day. @daily is a shorthand available in some Cron implementations; the standard 5-field expression has better compatibility.
How to use Cron expressions in Kubernetes?
Use the generated expression in your CronJob's spec.schedule field. Kubernetes also supports 6-field format (with seconds) β prefix with 0, e.g. 0 0 0 * * *.
What's the difference between ? and *?
* matches any value, while ? means "no specific value" (only for day and weekday fields). When both day and weekday need matching, one must use ?.