Quick Definition

A cron expression is a five-field string that tells a scheduler when to run a job. The fields are minute, hour, day of month, month, and day of week, in that order, separated by spaces. An asterisk means every value, a slash sets a step interval, a hyphen sets a range, and a comma separates a list. For example, 30 2 * * 1-5 means 2:30 AM on weekdays.

*/15 * * * * 0 9-17/2 * * 1-5 30 3 1 * * 0 0 * * 0 5 4 * * sun
* * * * *
Runs every minute.

Next 5 Run Times

    What this tool is best for:

    Best for: Getting a cron expression right before you commit it, and decoding an unfamiliar schedule you inherited in a crontab or CI config

    Limitations: Handles the standard five-field syntax, so Quartz seconds fields and non-standard extensions such as @reboot, L, W and # are outside what it parses

    Best suited for: Developers and sysadmins writing or reading a schedule without waiting for the job to fire to find out if it was right

    How to Use

    1
    Pick a mode. Simple gives you common schedules as one-click presets. Advanced exposes all five fields. Explain a Cron takes an expression you already have.
    2
    Build or paste. The expression, the plain-English translation, and the next five run times all update on every change. Each dropdown has a Custom option if you need syntax the presets do not cover.
    3
    Check the run times, then copy. The preview is the fastest way to catch a mistake. When it looks right, click Copy and paste it into your crontab or CI config.

    Cron Field Reference

    * * * * * | | | | | | | | | +--- Day of week (0-6, 0 = Sunday) | | | +----- Month (1-12) | | +------- Day of month (1-31) | +--------- Hour (0-23) +----------- Minute (0-59) Operator Meaning Example Fires * every value * every minute / step interval */5 0, 5, 10, 15 and so on - inclusive range 9-17 09:00 through 17:00 , list of values 1,15 the 1st and the 15th a-b/n step within a range 9-17/2 9, 11, 13, 15, 17

    The five fields are read left to right and every one must match for the job to fire. A field set to an asterisk places no restriction, which is why * * * * * runs every minute of every hour of every day.

    One rule catches people out. When both day of month and day of week are restricted, most cron implementations treat them as OR rather than AND. So 0 0 1 * 1 fires on the first of the month and also on every Monday, not only on a Monday that happens to be the first. If you need an AND, restrict one field and filter the other inside your script.

    Frequently Asked Questions

    What is a cron expression?

    A cron expression is a string of five fields that tells a scheduler when to run a job. The fields are minute, hour, day of month, month, and day of week, separated by spaces. For example, 30 2 * * * means run at 2:30 AM every day. Cron is the standard scheduling format on Unix and Linux systems and is also used by many CI platforms and cloud schedulers.

    What does each field in cron syntax mean?

    Reading left to right: minute accepts 0 to 59, hour accepts 0 to 23, day of month accepts 1 to 31, month accepts 1 to 12, and day of week accepts 0 to 6 where 0 is Sunday. An asterisk means every value. A slash defines a step, a hyphen defines a range, and a comma separates a list. Some systems also accept 7 for Sunday and three-letter names such as JAN or MON.

    What are some common cron expression examples?

    Five that cover most needs: * * * * * runs every minute. 0 * * * * runs at the top of every hour. 0 0 * * * runs daily at midnight. 0 9 * * 1-5 runs at 9 AM on weekdays only. 0 0 1 * * runs at midnight on the first day of every month. Combining a step with a range, such as 0 9-17/2 * * *, runs every two hours between 9 AM and 5 PM.

    What is the difference between */5 and 0-59/5?

    In the minute field they produce identical results, because */5 is shorthand for 0-59/5 and both fire at 0, 5, 10 and so on through 55. The difference appears when the range does not start at the field minimum. 0-30/5 fires only in the first half of each hour, and 10-40/5 starts at minute 10. So */5 is a convenience for stepping across the whole field, while an explicit range gives you control over where stepping starts and stops.

    What timezone does cron use?

    Traditional Unix cron uses the system timezone of the machine running it, which is often UTC on servers even when you are not. Many managed schedulers default to UTC. GitHub Actions is one: scheduled workflows run in UTC unless you add a timezone key with an IANA name, such as timezone: "America/New_York", next to the cron line. Check your own platform's documentation rather than assuming. Daylight saving is the common trap, because a job scheduled at 2:30 AM local time may run twice or not at all on transition days; GitHub, for example, moves a run that falls in the skipped spring-forward hour to the next valid time, so 2:30 AM becomes 3:00 AM. Scheduling in UTC avoids that entirely. The preview on this page uses your own browser timezone.