GGfor Tools

Cron Expression Generator

Build or test a five-field cron expression, check its syntax, and preview the next 10 scheduled times in UTC or a selected time zone.

Build and preview a cron schedule

Quick presets

Field order: minute, hour, day of month, month, day of week.

Leave blank to preview from the current time.

Build from individual fields

Enter an expression or choose a preset to preview a schedule.

Cron expression guide with examples

How to generate or test a cron expression

  1. Choose a preset, edit the five fields, or paste the schedule portion of an existing crontab entry.
  2. Select the time zone used by the scheduler. To test a specific date, enter a UTC reference time.
  3. Preview and check the matching dates. Copy the expression once the schedule matches your intent.

The expression is processed in your browser. The tool previews schedules and leaves job execution to your scheduler.

The five cron fields and their ranges

FieldAllowed values
Minute0–59
Hour0–23
Day of month1–31
Month1–12 / JAN–DEC
Day of week0–7 / SUN–SAT (0 and 7 both mean Sunday)

Use * for all values, commas for a list, a hyphen for an inclusive range, and a slash for a step on * or a range. A step resets at the field boundary, so */15 in the minute field matches 00, 15, 30 and 45 within each matching hour.

Common cron schedules

  • */15 * * * * · Every 15 minutes
  • 0 0 * * * · Daily at midnight
  • 0 9 * * MON-FRI · Weekdays at 09:00
  • 0 9 1 * * · First of each month at 09:00

The weekday example includes Monday through Friday, including public holidays that fall on those days.

Frequently asked questions

What if both day fields are restricted?

When neither day field starts with *, this tool uses the Vixie cron rule: either day field can match. For example, 0 9 1 * MON matches every first day of the month and every Monday at 09:00. When a day field starts with *, including */2, both day fields must match their expanded values.

How do time zones and daylight saving affect the preview?

Matches use local clock time in the selected zone. A clock time that is skipped during a transition has no match, and a repeated time can match twice. The UTC column distinguishes the two occurrences. Your scheduler may apply different daylight-saving rules.

Can I paste a complete crontab line or a Quartz expression?

Paste only the five schedule fields. Commands, a seconds or year field, macros such as @daily, and Quartz operators such as ?, L, W and # are outside this tool’s syntax.

Why are there fewer than 10 matching times?

The preview searches up to 10 years. Rare schedules, such as 0 0 29 2 *, may have only a few matches. Other expressions have valid syntax but no matching calendar date, such as 0 0 31 2 *.