Back to Home

Cron Expression Generator

Generate and explain cron schedule expressions

Cron Expression

* * * * *
Human-readable:
Every minute

Build Your Expression

Tip: Use * for any value,, for lists,- for ranges,/ for steps (e.g., */5 = every 5)

⚡ Common Presets

📖 Cron Syntax

* * * * *
│ │ │ │ └─ Day of week (0-7, Sun-Sat)
│ │ │ └─── Month (1-12)
│ │ └───── Day of month (1-31)
│ └─────── Hour (0-23)
└───────── Minute (0-59)
Special characters:
  • * - Any value (wildcard)
  • , - Value list separator (e.g., 1,3,5)
  • - - Range of values (e.g., 1-5)
  • / - Step values (e.g., */5)

💡 Step Values Examples

*/5 * * * *
Every 5 minutes
0 */2 * * *
Every 2 hours
0 9-17 * * *
Every hour from 9 AM to 5 PM
0 0 * * 1,3,5
Mon, Wed, Fri at midnight
0 0 1 */3 *
First day of every 3rd month
15,45 * * * *
At minute 15 and 45 of every hour

Overview

The Cron Expression Generator helps you build and understand the five-field schedules used by cron on Linux and macOS, and by many schedulers and CI systems that borrow the same syntax. Fill in the minute, hour, day-of-month, month and weekday fields, or start from a preset, and the page assembles the expression and translates it into plain English, such as "At 9:00 AM on Monday through Friday".

Each field accepts a single value, a wildcard (*), a comma-separated list, a range with a hyphen, or a step with a slash. Month and weekday fields also accept three-letter names like JAN or MON, and weekday 0 and 7 both mean Sunday. The explainer checks every field against its allowed range and tells you which field is invalid.

Keep in mind that cron runs in the time zone of the server or service that executes it, and some tools (Quartz, AWS EventBridge, Kubernetes extensions) use six or seven fields or extra symbols like ? and L. This page follows the standard five-field POSIX/Vixie format.

How to Use

  1. Click a Common Preset such as "Every 15 minutes" or "Weekdays at 9 AM" to fill all five fields at once, or start from the default * * * * *.
  2. Edit the Minute (0–59), Hour (0–23), Day (1–31), Month (1–12) and Weekday (0–7) fields. Use * for any value, commas for lists (1,15), hyphens for ranges (9-17) and slashes for steps (*/10).
  3. Read the assembled expression in the large Cron Expression box and check the Human-readable line underneath to confirm it means what you intended.
  4. If the explanation starts with "Invalid", correct the field it names; it also shows that field's allowed range.
  5. Click the copy icon to copy the expression, then paste it into your crontab, CI configuration or scheduler.

Frequently Asked Questions

What do the five fields in a cron expression mean?

From left to right they are minute (0–59), hour (0–23, 24-hour clock), day of the month (1–31), month (1–12) and day of the week (0–7, where 0 and 7 are Sunday). A job runs whenever the current time matches every field. For example, 30 2 * * 1 runs at 2:30 AM every Monday, and 0 0 1 * * runs at midnight on the first day of every month.

How do I run a cron job every 15 minutes during business hours?

Use */15 9-17 * * 1-5. The minute field */15 fires at :00, :15, :30 and :45; the hour range 9-17 covers 9 AM through the 5 PM hour; and 1-5 limits it to Monday through Friday. This page describes it as "Every 15 minutes past hour 9 through 17 on Monday through Friday". Note the last run is at 5:45 PM, because hour 17 is included.

What happens if I set both day of month and day of week?

In standard cron, when both fields are restricted the job runs if either one matches, not only when both match. So 0 0 1 * 1 runs at midnight on the 1st of every month and also at midnight every Monday. The human-readable explanation on this page reflects this with the word "or". To run only on a Monday that is also the 1st, you need a check inside the script itself.

What does */5 mean in cron?

The slash sets a step. */5 in the minute field means every fifth minute starting from the lowest allowed value: 0, 5, 10 … 55. You can also step through a range, so 10-30/10 means minutes 10, 20 and 30. Steps restart each hour (or day, for the hour field), so */7 in the minute field runs at :56 and then again at :00, not seven minutes later.

Which time zone does a cron job use?

Classic cron uses the system time zone of the machine running the cron daemon, which is often UTC on cloud servers. Hosted schedulers vary: many CI services evaluate schedules in UTC, while others let you set a time zone per job. Daylight saving changes can cause jobs scheduled between 1 AM and 3 AM local time to be skipped or run twice, so UTC is often the safer choice.

Does this generator support seconds, @daily or the ? and L symbols?

No. It handles the standard five-field syntax only: numbers, *, commas, ranges, steps and month or weekday names. Six- or seven-field formats with seconds or years (used by Quartz and some cloud schedulers), special characters such as ?, L, W and #, and shortcuts like @daily or @reboot will be reported as invalid. @daily is equivalent to 0 0 * * *, which you can enter here instead.