devtools.cihat.dev

Cron expression generator and translator

Paste a crontab line to read it in plain words, or build one from common schedules. The next five run times show exactly when it fires.

Common schedules

Or edit one field at a time
0–59
0–23
1–31
1–12, JAN–DEC
0–7, SUN–SAT

Next 5 runs ({zone})

    How to use it

    1. Type or paste an expression, pick a common schedule, or edit the five fields one at a time.
    2. Read the plain-language meaning under the fields. Mistakes are named with the field and the value at fault.
    3. Check the next five runs. Tick “Show in UTC” if your server runs on UTC, as most do.

    The five cron fields

    Each line of a crontab starts with five fields, then the command: minute hour day-of-month month day-of-week.

    FieldValuesExample
    Minute0–59*/10 every 10 minutes
    Hour0–239-17 from 09:00 to 17:59
    Day of month1–311,15 the 1st and the 15th
    Month1–12 or JAN–DEC*/3 January, April, July, October
    Day of week0–7 or SUN–SAT (0 and 7 are Sunday)1-5 Monday to Friday

    Special characters

    Five characters cover almost every schedule.

    • * means every value of the field.
    • , lists values: 8,12,18.
    • - is a range: 1-5.
    • / is a step: */15 is every 15th value from the start, 5/15 starts at 5.
    • Shortcuts: @hourly, @daily, @weekly, @monthly, @yearly.

    The day-of-month and day-of-week trap

    When both day fields are restricted, standard cron runs when either matches. 0 0 13 * 5 runs on every 13th and on every Friday, not only on Friday the 13th. The tool warns you when this applies.

    Questions people ask

    What is the cron expression for every 5 minutes?

    */5 * * * *. For every 15 minutes use */15 * * * *, and for every 30 minutes */30 * * * *.

    What time zone does cron use?

    The time zone of the machine or service that runs it. Most servers and many hosted schedulers use UTC, so tick Show in UTC to see those times.

    Does it support seconds or Quartz syntax?

    No. It reads the standard five-field cron used by crontab, Kubernetes CronJobs and GitHub Actions. Six-field Quartz and Spring expressions are named as such.

    Why does my schedule never run?

    Some dates do not exist, such as 0 0 31 2 * (31 February). The tool says so when no run is found in the next eight years.