StackPractices

Cron Expression Generator

Build a crontab schedule field by field or paste an existing expression — get a plain-language explanation and the next five execution times in your timezone. Everything runs in your browser.

1. Expression
2. Or build field by field

0–59

0–23

1–31

1–12, jan–dec

0–7, sun–sat

Syntax: * every · */n every n · a-b range · a,b,c list · a-b/n stepped range

What it means

live preview

Next 5 executions (your timezone)

    Cron field reference

    Field Values Notes
    Minute0–59The minute within the hour the job fires
    Hour0–2324-hour format — 0 is midnight, 23 is 11 PM
    Day of month1–31Careful with 29–31: short months skip missing days
    Month1–12, jan–decNames are case-insensitive in most implementations
    Day of week0–7, sun–satBoth 0 and 7 mean Sunday

    The day-of-month / day-of-week trap

    The single most common cron mistake: when both the day-of-month and day-of-week fields are restricted, cron does not require both to match — the job runs when either matches. Writing 0 9 1 * 1 hoping for "Mondays that fall on the 1st" actually gives you every Monday plus every 1st of the month. If you need the intersection, keep the cron simple (0 9 1-7 * 1 for the first week on Mondays) and check the date inside the script, or use a scheduler with richer semantics.

    Common examples

    Expression Meaning
    */15 * * * *Every 15 minutes
    0 */2 * * *Every 2 hours, on the hour
    30 3 * * *Daily at 3:30 AM — classic backup slot
    0 9 * * 1-5Weekdays at 9 AM
    0 0 * * 0Sundays at midnight
    0 0 1 * *First day of every month at midnight
    0 8,18 * * *Twice a day: 8 AM and 6 PM
    0 10 * * mon,friMondays and Fridays at 10 AM — names work too

    Related resources