Layerbit
Runs entirely in your browser

Cron Expression Generator & Explainer

Build, decode and validate cron schedules for Unix cron, GitHub Actions, Kubernetes, Jenkins, Quartz, Spring, AWS EventBridge and Azure. Type a schedule in plain English, see the next runs and a 30-day calendar in the zone your server uses, and convert between dialects.

Minute
Hour
Day
Month
Weekday
Every minute
Next 5 Run Times
    Next 30 days
    Convert to

      DevOps Presets

      What this cron tool checks for you

      A cron expression that is off by one field runs at the wrong time without any error. This page reads the expression back to you in plain English, lists the exact next runs in your server's time zone and flags the combinations that behave differently from what people expect, so you catch the mistake before it reaches production.

      CI/CD Pipeline Triggers

      Automate your GitHub Actions, Jenkins, or GitLab CI pipelines by generating strict POSIX-compliant syntax. Schedule nightly builds, dependency updates, or automated testing environments with absolute precision.

      Database Maintenance

      Configure perfectly timed MySQL or PostgreSQL database dumps, log rotations, and cache invalidation scripts without guessing the minute/hour array mapping.

      Cloud Infrastructure

      Generate valid syntax for AWS EventBridge (CloudWatch Events), Azure Functions, or Google Cloud Scheduler to trigger serverless functions exactly when your application traffic demands it.

      Common cron expressions

      The schedules people look up most, in standard five-field crontab syntax (minute, hour, day of month, month, day of week). Press Use to load one above, see its exact next runs in your server's time zone, and convert it to Quartz, AWS EventBridge, Kubernetes or another dialect.

      ExpressionRunsLoad
      * * * * *Every minute
      */5 * * * *Every 5 minutes
      */10 * * * *Every 10 minutes
      */15 * * * *Every 15 minutes
      */30 * * * *Every 30 minutes
      0 * * * *Every hour, on the hour
      0 */2 * * *Every 2 hours
      0 */6 * * *Every 6 hours (00:00, 06:00, 12:00, 18:00)
      0 0 * * *Every day at midnight
      0 9 * * *Every day at 9:00
      30 2 * * *Every night at 02:30, a common backup slot
      0 9 * * 1-5Weekdays (Monday to Friday) at 9:00
      */15 9-17 * * 1-5Every 15 minutes during working hours on weekdays
      0 9 * * 1Every Monday at 9:00
      0 0 * * 0Every Sunday at midnight
      0 18 * * 5Every Friday at 18:00
      0 0 1 * *At midnight on the first day of every month
      0 0 1 */3 *At midnight on the first day of every quarter
      0 0 1 1 *Once a year, at midnight on 1 January
      0 0 1,15 * *Twice a month, on the 1st and the 15th
      @rebootOnce, each time the machine starts

      Cron runs in the time zone of the machine or service that executes it, which is UTC on GitHub Actions and most cloud schedulers. A job meant for 9:00 in Dubai (UTC+4) is 0 5 * * * on a UTC scheduler; pick your zone next to the run list to check.

      Frequently Asked Questions

      A cron expression is a string comprising five or six fields separated by white space that represents a set of times, normally as a schedule to execute a specific routine or script. It is the standard time-based job scheduler in Unix-like computer operating systems.

      Yes. The Convert panel rewrites the current expression for any other dialect: seconds and year fields are added or dropped, weekday numbers are shifted for Quartz and AWS, and ? is put where Quartz and AWS need it. When a schedule cannot be expressed in the target, it says why instead of guessing: Unix cron has no L, W or #, no seconds and no year, and Quartz and AWS cannot restrict both day fields at once. Unix cron runs when either day field matches, but Spring and Azure need both to match, so those two cases are refused too. Every conversion the tool offers is checked by a test that compares a year of run times in both dialects.

      Yes, for the common shapes: "every 15 minutes", "weekdays at 9:30", "every Monday at 5pm", "on the 1st of every month at 6am", "twice a day at 9 and 21", "weekends at noon" or "at 9am in January and July". The phrase becomes an expression in the dialect you have selected, and the description, next runs and calendar update so you can check it says what you meant. Phrases cron cannot express, such as "last day of the month" in Unix cron, are refused with the reason.

      H stands for "hash": Jenkins picks one value in the field's range from a hash of the job's name, so many jobs written as H * * * * spread across the hour instead of all starting at minute 0. H(0-29) limits the range and H/15 runs every 15 minutes from a hashed offset. The exact value depends on the job name, which this page cannot know, so the next runs show the earliest value H can take and say so.

      The most common reason for unexpected scheduling is timezone discrepancies. By default, most cloud servers and CI/CD pipelines (like GitHub Actions) operate strictly on Coordinated Universal Time (UTC). If you schedule a job for 9:00 AM local time, you must calculate and apply the correct UTC offset in your expression.

      Unix cron, GitHub Actions, Kubernetes and Jenkins use five fields (minute, hour, day of month, month, day of week). Quartz adds seconds in front and an optional year at the end, and numbers weekdays 1 (Sunday) to 7 (Saturday). Spring and Azure add seconds but keep Sunday as 0. AWS EventBridge has six fields ending in a year and is written as cron(...). Quartz and AWS insist on ? in one of the two day fields, and Quartz, Spring and AWS accept L, W and #. Pick the dialect above and the tool validates, explains and schedules the expression by that dialect's rules.

      The rule that silently breaks schedules

      An incorrect cron expression is still a valid cron expression. There is no syntax error to catch and no test that fails — just a job quietly running at the wrong times, sometimes for months, until someone notices a report covering the wrong window. The most misread rule is this one:

      • When both day-of-month and day-of-week are restricted (neither is *), the job runs when either matches. It is an OR, not an AND.
      • So 0 0 13 * 5 — intended as "midnight on Friday the 13th" — actually fires on the 13th of every month and every Friday. Roughly 64 times a year instead of one or two.

      POSIX and Vixie cron both specify this, so it is not a bug you can work around by switching implementations. There is no cron syntax for a true AND: "the first Monday of the month" cannot be expressed in five fields. The conventional approach is to schedule the superset and guard inside the job. Our cron guide works through this and the other traps in full.

      Steps do not mean intervals

      */7 means "every 7th value in the range", not "every seven minutes". Since 60 is not divisible by 7 it fires at 0, 7, 14 … 56, then resets — leaving one four-minute gap per hour. Only divisors of 60 give a uniform cadence.

      Daylight saving, twice a year

      Classic cron uses local time. When clocks spring forward a job in the skipped hour usually does not run; when they fall back it may run twice. Run the host in UTC, or set CRON_TZ=UTC, and convert inside the application.

      Quartz is not cron

      L, W, # and ? are Quartz extensions, and much "cron documentation" online is actually Quartz documentation. They fail in a standard crontab — often silently. Quartz also uses six or seven fields to cron's five.

      Why the next-run preview matters

      Because a wrong expression looks reasonable, the only reliable verification is to read the schedule back as a sentence and look at the actual dates it will fire on. This tool does both: it translates the expression into plain English, computes the next five fire times, and colours the next 30 days by how many runs each one gets, so a job that skips weekends, or fires 1,440 times on the 13th, shows up at a glance. Select a day to see its hours.

      Times start in UTC rather than in your local time zone. Most managed schedulers (GitHub Actions, AWS EventBridge, Azure Functions) evaluate cron in UTC, and presenting local times would hide exactly the offset that causes the mistakes. Picking GitHub Actions, AWS or Azure switches the preview back to UTC; choose the zone your own daemon runs in for the others.

      The operational failures that are not the expression

      When a schedule is correct but nothing happens, it is usually one of these rather than the cron syntax:

      • PATH. Cron runs with a minimal environment, typically just /usr/bin:/bin. Your shell's PATH is not inherited, so use absolute paths for every binary.
      • An unescaped %. In a crontab this is special — it truncates the command and sends the remainder to standard input. Escape it as \%.
      • Output going nowhere. Cron mails stdout and stderr to the user; with no mail transport configured it is discarded. Redirect explicitly with >> /var/log/job.log 2>&1 — a cron job with no log is one you cannot debug and cannot prove ran.
      • Overlapping runs. Cron has no awareness of a previous invocation, so a job that sometimes runs longer than its interval will eventually run concurrently with itself. Wrap it: flock -n /tmp/job.lock /path/to/job.sh, with -n so you skip rather than queue.
      • No trailing newline. Older crons silently ignore the last line of a crontab that does not end with one.

      Changelog

      • v2.0.0 Eight dialects: Unix cron, GitHub Actions (with its five-minute minimum), Kubernetes, Jenkins (H), Quartz (seconds, year, L, W, #, 1-based weekdays), Spring, AWS EventBridge (cron(...) with a year) and Azure. Each is validated, explained and scheduled by its own rules, including whether both day fields mean OR or AND. A 30-day calendar shows how many runs each day gets, with the hours of any day you select. Expressions convert between dialects, or say why they cannot. A schedule can be typed in plain English ("weekdays at 9:30").
      • v1.6.0 Next run times now appear for month and weekday names (JAN, MON-FRI), 7 for Sunday and ? (they were hidden before), and for the @yearly, @annually, @monthly, @weekly, @daily, @midnight and @hourly shortcuts; @reboot is explained. An expression whose runs cannot be listed says so instead of leaving a blank area.
      • v1.5.0 Next run times can be computed in the zone the cron daemon actually runs in — any IANA zone, with the browser's own zone offered first — and each run also shows its UTC equivalent, so a "9 am" job in Dubai is visibly 05:00 UTC. The choice is remembered.
      • v1.4.0 Each field is range-checked before translation: 61 * * * * is refused with the offending field and its valid range, instead of being rendered as "at 61 minutes past the hour". Month and weekday names are validated too.
      • v1.3.1 Fixed a bug where the icon library loading asynchronously could cause a valid expression to be mislabeled as a syntax error on page load.
      • v1.3.0 Added a Next 5 Run Times preview (UTC, clearly labeled) for any valid expression, computed entirely client-side.
      • v1.2.0 Introduced the visual dropdown builder map for faster segment configuration.
      • v1.1.0 Integrated real-time parsing engine with syntax validation and instant translation feedback.
      • v1.0.0 Initial release of the POSIX-compliant expression generator.