⬡ DEVELOPER

Cron Expression Builder

Build, validate, and understand cron expressions for n8n, GitHub Actions, and Linux crontab.

Expression

VALID
* * * * *

Every minute

Paste / type expression

Minute

0–59

Hour

0–23

Day of Month

1–31

Month

1–12

Day of Week

0–6

Common Presets

Platform Notes

Linux crontab

Standard 5-field format. Supports L, W, # in some distros (Vixie cron). Run: crontab -e

GitHub Actions

Uses UTC. Expression goes in on.schedule[].cron. Minimum interval: 5 minutes. Syntax: uses standard 5-field.

n8n

Trigger node → Schedule. Accepts standard cron or visual builder. Timezone configurable per workflow. L may not be supported.

Cron Syntax Reference

A cron expression is read left to right: minute hour dom month dow. Special characters control ranges, steps, and wildcards.

FieldAllowed RangeSpecial Characters
Minute0–59* , - /
Hour0–23* , - /
Day of Month1–31* , - / L W
Month1–12* , - /
Day of Week0–6* , - / L #
*

Every value in the field

,

List separator: 1,3,5

-

Range: 1-5 means 1 through 5

/

Step: */10 means every 10 units

L

Last — last day of month or week

W

Weekday nearest to given day

Common Cron Patterns

Click any expression in the builder above to apply it, or copy from the reference below.

ScheduleExpressionDescription
Every minute* * * * *Runs once per minute, all day
Every 5 minutes*/5 * * * *Common for monitoring checks
Every 15 minutes*/15 * * * *Quarter-hourly polling
Hourly0 * * * *Runs at the start of every hour
Daily at midnight0 0 * * *Common for nightly cleanup jobs
Daily at 9am0 9 * * *Weekday morning report
Weekdays at 9am0 9 * * 1-5Mon–Fri business-hours trigger
Weekends at noon0 12 * * 0,6Sat & Sun at 12:00
First of each month0 0 1 * *Monthly billing or rollup
Every Sunday midnight0 0 * * 0Weekly reset or report
Twice daily0 9,17 * * *9am and 5pm every day
Every 6 hours0 */6 * * *Runs at 0, 6, 12, 18

Frequently Asked Questions

What is a cron expression?

A cron expression is a compact string of five space-separated fields that defines a recurring schedule for a job or task. The fields represent — in order — minute, hour, day of month, month, and day of week. Asterisks (*) mean 'every', slashes define step intervals (*/5 = every 5), and commas list multiple values.

How do I use a cron expression in n8n?

In n8n, add a Schedule Trigger node to your workflow. Select 'Cron Expression' as the trigger mode and paste your expression into the 'Expression' field. The workflow runs in the timezone configured in your n8n instance settings. Note that n8n may not support all extended specifiers like L (last day) depending on the version.

How do I use a cron expression in GitHub Actions?

In your workflow YAML, use the on.schedule key with a cron sub-key. Example: on: schedule: - cron: '0 9 * * 1-5'. GitHub Actions always runs cron schedules in UTC. The minimum interval GitHub Actions enforces is 5 minutes. Expressions with a step shorter than */5 on the minute field will be clamped.

What does */ mean in a cron expression?

The */ syntax is called a step value. It means 'every N units'. For example, */15 in the minute field means 'every 15 minutes' (i.e. at 0, 15, 30, 45). */6 in the hour field means 'every 6 hours' (0, 6, 12, 18). You can also combine a range with a step: 1-5/2 means every 2 units within the 1-to-5 range.

What is the difference between day-of-month and day-of-week?

Day-of-month (field 3) specifies a calendar date (1–31), while day-of-week (field 5) specifies a named day (0 = Sunday, 6 = Saturday). If both are set to non-asterisk values, most cron implementations fire when either condition is true, not both. To target a specific weekday on a specific date, you often need additional application logic.

Why is my scheduled GitHub Actions workflow not running?

Several reasons are common: the repository may have gone inactive (GitHub pauses schedules on repos with no activity for 60 days), the cron expression may be invalid, or the interval is shorter than 5 minutes. Workflows are also queued, so there can be delays of several minutes under high GitHub infrastructure load. Always validate your expression with a tool before committing.

More developer tools

JSON formatter, JWT decoder, Base64 encoder, regex tester and more.

Browse all tools