🛠️ Developer & Web

Cron Expression Generator

Write a cron schedule, see it in plain English and when it runs next.

  • 5 fieldsstandard cron
  • Next 10run times in local time
  • 12one-click presets
  • @macrossuch as @daily and @weekly

—

Presets

Next 10 runs (your local time)

    How to use the Cron Expression Generator

    1. 1

      Type or pick a schedule

      Enter a full expression, edit the five field boxes separately, or click a preset such as “Weekdays at 9:00”.

    2. 2

      Read the plain-English line

      The expression is described in words so you can confirm it means what you think.

    3. 3

      Check the next 10 runs

      Upcoming times are listed in your local time zone — the quickest way to catch mistakes.

    4. 4

      Copy it to your scheduler

      Paste into crontab, a Kubernetes CronJob, GitHub Actions or a cloud scheduler, adjusting for its time zone.

    Features

    Human description

    Explains the schedule in words using the cronstrue library.

    Run preview

    The next ten matching minutes, calculated in your browser.

    Field editor

    Edit minute, hour, day, month and weekday individually.

    Names allowed

    JAN–DEC and SUN–SAT work in any letter case; 7 also means Sunday.

    Precise errors

    Out-of-range values, backwards ranges and wrong field counts are named.

    Remembers

    Your last expression is restored next time you open the page.

    Who uses it — and for what

    Server admins

    Schedule backups, log rotation and certificate renewals with crontab.

    Kubernetes users

    Write the schedule field of a CronJob.

    CI/CD

    Nightly builds and dependency checks in GitHub Actions.

    App developers

    Reports, reminders and clean-up jobs in queue schedulers.

    Cron syntax

    A standard cron expression has five fields: minute (0–59), hour (0–23), day of month (1–31), month (1–12 or JAN–DEC) and day of week (0–6, Sunday = 0 or 7, or SUN–SAT). Each field accepts * (every), lists 1,15, ranges 9-17 and steps */15 or 0-30/10. Shortcuts like @hourly, @daily, @weekly, @monthly and @yearly are expanded. If both day-of-month and day-of-week are restricted, the job runs when either matches — a classic cron surprise this tool takes into account.

    Where you’ll use it

    Crontab on Linux servers, Kubernetes CronJobs, GitHub Actions schedule, AWS EventBridge, Vercel and Netlify scheduled functions, CI pipelines and job queues all use cron syntax. Note that many cloud schedulers run in UTC — the next-run list here uses your local time zone, so adjust the hour if your platform uses UTC. Some systems (Quartz, AWS) add a seconds or year field; this tool covers the standard five-field format.

    How the run preview treats tricky fields

    The preview follows classic Vixie-cron rules, which most Linux systems use:

    • A day field counts as “restricted” only if it does not start with *. So 0 9 */2 * 1 treats the day-of-month as unrestricted and runs on Mondays only — the preview shows 30 Nov, 7 Dec, 14 Dec… Not every scheduler agrees on this edge case, so test it on your platform.
    • Day-of-week 0 and 7 are both Sunday; 5 4 * * sun and 0 12 * * 7 both fire on Sundays.
    • A step without a range runs from the value to the end: 5/20 in the minute field means 5, 25, 45.
    • Ranges cannot wrap: 5-1 (Friday to Monday) is rejected as “goes backwards”. Write 5,6,0,1 or 0,1,5,6 instead.
    • Times are computed in your browser’s time zone, so a schedule near a daylight-saving change in your region may show a skipped or repeated hour that a UTC scheduler would not.

    Cron dialects compared

    PlatformFieldsTime zoneNotes
    Linux crontab5Server’s zone (some cron versions support CRON_TZ)Also @reboot; % must be escaped in commands
    Kubernetes CronJob5Controller’s zone, or timeZone fieldMacros like @hourly accepted
    GitHub Actions5UTCRuns can be delayed at busy times; very short intervals are not allowed
    AWS EventBridge6 (adds year)UTC unless a scheduler time zone is setUses ? in one of the day fields
    Quartz (Java), Spring6–7 (adds seconds)ConfigurableSupports L, W and # for last day, weekday, nth weekday

    This tool checks the standard five-field form. To use a schedule with Quartz or Spring, add a leading seconds field (usually 0); for EventBridge, add the year and replace one day field with ?. Check each platform’s current documentation, as their rules change over time.

    Converting your local time to UTC schedules

    Many schedulers run in UTC, but the preview lists your local time. In India (UTC+5:30, no daylight saving) subtract 5 hours 30 minutes: a job that should run at 9:00 IST needs 30 3 * * * in UTC. Shifting across midnight also shifts the day — 2:00 IST on Monday is 20:30 UTC on Sunday, so a weekday list moves by one. If your region uses daylight saving, a fixed UTC schedule moves by an hour in local time twice a year. Make jobs idempotent (safe to run twice) and avoid scheduling around 1:00–3:00 local time where clocks change.

    Worked examples

    Business hours every 15 minutes

    */15 9-17 * * 1-5 checked on a Saturday afternoon lists Mon 09:00, 09:15, 09:30, 09:45 and so on. Note the last run each day is 17:45, not 17:00 — the hour field 9-17 includes every minute of the 17:00 hour that matches */15. Use */15 9-16 * * 1-5 plus 0 17 * * 1-5 if you need to stop at five.

    The day-of-month OR day-of-week surprise

    0 0 13 * 5 looks like “Friday the 13th”, but from late November 2026 the next runs are Fri 4 Dec, Fri 11 Dec, Sun 13 Dec, Fri 18 Dec, Fri 25 Dec… When both day fields are restricted, cron runs when either matches. Likewise 0 9 1-7 * 1 (“first Monday”) actually runs on each of the first seven days and every Monday.

    A schedule that never fires

    0 0 30 2 * (30 February) produces “No run time found in the next few years — check day/month combinations.” The expression is syntactically valid, which is exactly why a run preview is worth having.

    Pro tips

    • Spread load: run hourly jobs at a random minute like 17 rather than 0, when every other job runs.
    • Log the start and end of every cron job — silent failures are the most common cron problem.
    • In crontab, use full paths to commands; cron runs with a minimal PATH.

    Glossary

    Crontab
    The file listing a user’s scheduled jobs on Unix-like systems.
    Step value
    The /n part of a field, meaning every nth value in the range.
    Macro
    A shortcut such as @daily that expands to a full expression (0 0 * * *).
    Idempotent
    Safe to run more than once with the same result.

    Frequently asked questions

    How do I run a job every 5 minutes?

    Use */5 * * * *.

    What does 0 0 * * 0 mean?

    At midnight every Sunday.

    Is cron time UTC or local?

    It uses the server’s time zone; GitHub Actions and most cloud schedulers use UTC.

    How do I run something on the last day of every month?

    Standard five-field cron cannot express it. Run daily at the chosen time and have the script exit unless tomorrow is the 1st, or use a scheduler that supports L.

    Can I schedule every 90 minutes?

    Not with one expression, because steps reset each hour. Use two lines, such as 0 0-21/3 * * * and 30 1-22/3 * * *.

    Does @reboot work here?

    No. Only the time-based macros (@yearly, @annually, @monthly, @weekly, @daily, @midnight, @hourly) are recognised.

    Found it useful? Share the Cron Expression Generator:

    Last updated 2026-11-28 · Built by Vinayak Agarwal · Part of Developer & Web (77 tools)