Copynix

Cron Expression Builder, Validator and Explainer Online

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

Runs every minute

Common Presets

Format: minute hour day-of-month month day-of-week. Supports *, */n, ranges (a-b), and lists (a,b,c).

Frequently Asked Questions

What is a cron expression?

A cron expression is a string of 5 fields (minute, hour, day, month, weekday) that defines when a scheduled task should run. For example, '0 9 * * 1' runs every Monday at 9:00 AM.

What does '*' mean in a cron expression?

'*' means 'every' for that field. '* * * * *' runs every minute. '0 * * * *' runs at minute 0 of every hour.

What does '*/5' mean in cron?

'*/5' means 'every 5 units.' In the minute field, '*/5' runs at minutes 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55.

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

Day-of-month (field 3) is 1-31. Day-of-week (field 5) is 0-7 where both 0 and 7 mean Sunday. When both are non-'*', many implementations run the job if EITHER condition is met.

Can I run a cron job multiple times per hour?

Yes. Use '*/15 * * * *' to run every 15 minutes, or '0,30 * * * *' to run at minutes 0 and 30 of every hour. The minimum interval in standard cron is 1 minute β€” for sub-minute scheduling, use application-level scheduling instead.

What is the difference between cron and crontab?

Cron is the daemon (background service) that reads and executes scheduled tasks. Crontab (cron table) is the file or command that stores your scheduled tasks. You edit the crontab with 'crontab -e', and the cron daemon reads it to run jobs.

Do cloud schedulers like AWS EventBridge use the same cron syntax?

Similar but not identical. AWS EventBridge cron uses 6 fields (adds a Seconds or Year field) and uses ? instead of * when both day-of-month and day-of-week are specified. GitHub Actions uses the standard 5-field cron. Always check the platform-specific documentation.

Cron expressions are the standard syntax for scheduling recurring tasks on Linux/Unix systems, Kubernetes, CI/CD pipelines, and cloud schedulers (AWS EventBridge, GitHub Actions). This tool builds and validates expressions with instant human-readable descriptions.

How to use

  1. 1

    Start from a preset or blank

    Select a common preset (every minute, every hour, daily, weekly, monthly) as a starting point, or clear the field and build from scratch.

  2. 2

    Edit individual fields

    The five fields represent minute (0-59), hour (0-23), day of month (1-31), month (1-12), and day of week (0-7, where 0 and 7 are Sunday). Modify each field independently.

  3. 3

    Read the plain-language description

    The tool translates your expression into a plain English description (e.g. '0 9 * * 1' β†’ 'At 09:00 AM, only on Monday'). Use this to verify your expression matches your intent.

  4. 4

    Use special syntax for complex schedules

    Use */n for 'every n units' (*/5 = every 5 minutes), ranges (9-17 for business hours), and comma-separated lists (1,15 for the 1st and 15th of the month).

Use cases

  • Schedule background jobs

    Set up database backups, report generation, cache clearing, and other maintenance tasks using cron. Build the expression here and test it before adding it to your crontab or cloud scheduler.

  • Configure CI/CD pipelines

    GitHub Actions, GitLab CI, and other CI systems use cron syntax for scheduled runs. Build your schedule expression here to ensure nightly builds, weekly dependency updates, or monthly audits run at the right time.

  • Set up monitoring and alerts

    Scheduled health checks, uptime monitors, and alert escalations often use cron expressions. Verify that your expression runs at the frequency you intend β€” not too often (resource waste) or too rarely (missed issues).

Related Tools

Timestamp

Unix timestamp converter

Text Diff

Compare two texts

JSON

Format & minify JSON

Regex

Test regex with highlighting

Cron is a Unix job scheduler that runs commands at defined time intervals, specified by a five-field expression: minute, hour, day-of-month, month, and day-of-week (some implementations add a sixth field for seconds). A cron expression like 0 9 * * 1-5 means 'at 09:00, Monday through Friday'; */15 * * * * means 'every 15 minutes'. Cron is used in Linux crontabs, Kubernetes CronJobs, GitHub Actions schedules, AWS EventBridge, and most CI/CD pipelines.

Cron syntax is compact but dense β€” reading an unfamiliar expression requires knowing the field order and the meaning of special characters (*, /, -, ?). This tool parses any cron expression and renders a plain-English description of when it runs, along with the next several scheduled execution times so you can verify the expression behaves as intended before deploying a scheduled job.