Cron Expression Generator

Build a cron expression field by field — minute, hour, day, month, weekday — with validation, a plain-language description and the next 5 run times.

Your inputs and files stay in your browser

Build Expression

Examples: *, 0, */5, 1,2,3, 1-10

Generated Expression

Generate a cron expression to see the description

  • Minute
  • Hour
  • Day
  • Month
  • Weekday
Description

Next Executions Preview
On this page

Fill in five fields and get a ready cron line for crontab, CI schedules or job schedulers, together with a plain-language description and the next five run times to confirm it does what you meant.

Detailed Functionality

Each field accepts the usual syntax — *, numbers, ranges 9-17, lists 1,15, steps */10, names JAN–DEC and MON–FRI, L for the last day of the month — and an empty field counts as *. Values are checked against the field's range; an error highlights the field at fault and names the allowed values.

After Generate Expression (or Enter in any field) you get the expression, a description in your language — */10 9-17 * * 1-5 reads “Every 10 minutes from 09:00 to 17:50 Monday through Friday” — and the next five runs in your local time zone, in the date format you choose (it is remembered in this browser). Day of month and day of week are combined with OR, as in Vixie cron.

To decode an existing line instead, use the Cron Expression Parser. All calculations run locally in the browser.

Practical Examples

Weekly maintenance: Minute 0, Hour 3, Day of Week 0 → 0 3 * * 0 — “At 03:00 on Sundays”.

Polling during business hours: Minute */10, Hour 9-17, Day of Week 1-5 → */10 9-17 * * 1-5 — “Every 10 minutes from 09:00 to 17:50 Monday through Friday”.

Month-end job: Minute 30, Hour 23, Day of Month L → 30 23 L * * — “At 23:30 on the last day of the month”.

Twice a year: Minute 0, Hour 0, Day of Month 1, Month 1,7 → 0 0 1 1,7 * — “At 00:00 on the 1st of the month in January and July”.

How to Use This Tool

  1. Fill in the fields

    Enter values in Minute (0-59), Hour (0-23), Day of Month (1-31), Month (1-12) and Day of Week (0-6).

  2. Generate

    Click Generate Expression or press Enter in any field.

  3. Check the result

    Read the Description and the Next Executions Preview to make sure the schedule is right.

  4. Copy the expression

    Click Copy next to Generated Expression and paste it into crontab or your scheduler config.

Tips and Best Practices

  • Minute starts as 0 and the other fields as *; changing Minute to * makes the job run every minute of the selected hours.
  • If you fill in both Day of Month and Day of Week, the job runs when either matches.
  • Both 0 and 7 mean Sunday in the Day of Week field.
  • Cron uses the server's time zone; the preview uses your browser's.
  • Only five fields are generated — schedulers that expect seconds (Quartz, some CI systems) need a different format.