Cron Expression Builder
Build cron expressions, parse existing ones and see the next run times.
0 * * * *Every hour
| Field | Allowed Values | Special Characters |
|---|---|---|
| Minute | 0-59 | * , - / |
| Hour | 0-23 | * , - / |
| Day of Month | 1-31 | * , - / |
| Month | 1-12 | * , - / |
| Day of Week | 0-7 (0 and 7 = Sun) | * , - / |
*Any value
* * * * * = Every minute
,Value list separator
1,15 * * * * = At minute 1 and 15
-Range of values
1-5 * * * * = Minutes 1 through 5
/Step values
*/15 * * * * = Every 15 minutes
Cron is the time-based job scheduler in Unix and Linux. A cron expression is a string of five fields that says when a task runs. The format comes from the cron daemon in Unix Version 7, released in 1979.
Cron syntax also schedules GitHub Actions workflows, Kubernetes CronJobs, Google Cloud Scheduler jobs and many other CI/CD and cloud tasks. AWS CloudWatch Events uses a 6-field variant of the same syntax.
Task scheduling
Schedule recurring jobs on Linux or Unix servers with crontab
CI/CD pipelines
Schedule builds and deployments in GitHub Actions, GitLab CI and similar tools
Backup automation
Run database and file backups on a fixed schedule
Server maintenance
Schedule log rotation, cache clearing and health checks
What is a cron expression?
A cron expression is five space-separated fields that define a schedule: minute (0 to 59), hour (0 to 23), day of month (1 to 31), month (1 to 12) and day of week (0 to 7, where 0 and 7 are both Sunday). Unix and Linux systems use cron to run recurring tasks.
What do the special characters in cron mean?
An asterisk (*) matches every value in that field. A comma separates multiple values, as in 1,3,5. A hyphen defines a range, so 1-5 in the day-of-week field means Monday through Friday. A slash sets a step, so */15 means every 15 units.
How do I schedule a cron job to run every 5 minutes?
Use */5 * * * *. The */5 in the minute field means every 5 minutes, and the asterisks in the other fields mean every hour, every day of the month, every month and every day of the week.
What is the difference between day of month and day of week in cron?
Day of month (field 3) sets the calendar dates the job runs on, from 1 to 31. Day of week (field 5) sets the weekdays, from 0 to 7, where 0 and 7 are both Sunday. If you set both to specific values instead of *, most cron implementations run the job when either one matches.
Can I use this cron builder for GitHub Actions or Kubernetes?
Yes. The tool produces standard 5-field cron syntax, which works with Linux and Unix crontab, GitHub Actions scheduled workflows, Kubernetes CronJobs, Google Cloud Scheduler and most other schedulers. AWS CloudWatch Events uses a 6-field variant, so check its format before pasting.
Private by default
The tool builds and parses expressions in your browser and sends nothing to a server.
Related tools
JSON Formatter
Format JSON online in your browser. Paste or upload JSON to tidy it with 2 or 4 space indents, find syntax errors, minify it or browse it as a collapsible tree.
JavaScript to JSON
Convert JavaScript object literals to valid JSON
JSON Merge
Merge two JSON objects online with a deep or shallow strategy and choose how arrays combine. Useful for config files and API responses. Free, no signup.