Understand cron expressions instantly. See human-readable explanations, next 10 run times, and visual field breakdowns.
| Symbol | Meaning | Example |
|---|---|---|
| * | Any value (wildcard) | * in hour = every hour |
| , | List of values | 1,15 in day = 1st and 15th |
| - | Range of values | 1-5 in DOW = Monday to Friday |
| / | Step values | */10 in minute = every 10 min |
| 0-59 | Minute | 30 = at minute 30 |
| 0-23 | Hour | 14 = 2:00 PM |
| 1-31 | Day of month | 1 = first day |
| 1-12 | Month | 6 = June |
| 0-7 | Day of week (0 & 7 = Sun) | 1 = Monday |
Cron is a time-based job scheduler in Unix-like systems. A cron expression consists of 5 fields that define when a task should run:
┌───────────── minute (0-59) │ ┌───────────── hour (0-23) │ │ ┌───────────── day of month (1-31) │ │ │ ┌───────────── month (1-12) │ │ │ │ ┌───────────── day of week (0-7, Sun=0 or 7) │ │ │ │ │ * * * * *
* * * * * — Every minute0 * * * * — Every hour (at minute 0)0 0 * * * — Every day at midnight0 9 * * 1-5 — Every weekday at 9 AM*/5 * * * * — Every 5 minutes0 0 1 * * — First day of every month0 0 * * 0 — Every Sunday at midnightAsterisk (*) matches every value. Comma (,) separates list items (e.g., 1,3,5). Hyphen (-) defines ranges (e.g., 1-5). Slash (/) defines intervals (e.g., */10 = every 10th).
On Linux/macOS, use crontab -e to edit your cron jobs and crontab -l to list them. Each line in the crontab file is a cron expression followed by the command to run.
Cron expressions are used beyond Unix crontab — they're supported in GitHub Actions (schedule trigger), AWS CloudWatch Events, Kubernetes CronJobs, CI/CD pipelines, and most task schedulers. The syntax is the same 5-field format.
More free tools