Online Cron generator & parser

A cron line names repeating clock times in five fields—minute, hour, day of month, month, day of week—which crontab, Kubernetes CronJob, and GitHub Actions schedules typically use; switch to six fields when your engine expects a leading seconds column. Paste a full expression on the left or edit each field underneath—the text and grid stay in sync. The right pane lists the next five firings in UTC (not your local zone). Copy the expression with the header control or by clicking the preview area (that copies the cron string, not the time list). Field order, wildcards, and examples are in the article below.

A cron expression names recurring civil clock times in five ordered fields

Classic Vixie-style cron strings march from left to right through minute, hour, day of month, month, and day of week. Each position is its own mini language: * means every value in that field, / introduces a step, - spans an inclusive range, and , lists separate choices. The string does not store a time zone and does not count seconds since an epoch; it repeats a pattern on the civil calendar. That makes cron the right model for nightly backups and weekly reports, while a Unix second count on timestamp names one instant and JWT NumericDate claims such as exp on JWT encode expiry in those seconds.

Most production schedulers that people call cron still expect exactly five fields. Linux crontab, Kubernetes CronJob schedule, GitHub Actions workflow schedule, and many cloud consoles document minute-through-week ordering without a leading seconds column. Quartz-style schedulers and some Java frameworks add a sixth seconds field ahead of minute, and optional seventh year tokens appear in advanced dialects. Dropping the seconds column when you paste into crontab makes a job fire a minute late or on the wrong cadence; adding seconds where the engine expects only five makes the parser reject the line or mis-read the first token as a minute.

Unless documentation states otherwise, the clock behind the five fields is UTC. A line that reads 0 9 * * * fires at nine in the morning UTC, not at nine on your office wall clock. Daylight saving and regional offsets therefore change how a cron line reads in each region even when the expression is unchanged. Preview the next run instants in UTC before you ship a schedule, and line up one-off deadlines with epoch seconds on timestamp when you compare against token expiry checked on JWT.

Field order, wildcards, five versus six columns, and which clock the pattern uses

Why the minute field sits left of hour in standard five-field cron dialects

  1. POSIX and Vixie crontab lists minute before hour so the finest grain of the repeat sits in the leftmost slot.
  2. A line 30 14 * * * means minute thirty of hour fourteen, that is 14:30 on the civil clock the engine uses.
  3. Reversing the two numbers to hour-then-minute matches Quartz documentation by accident but breaks crontab and Kubernetes.
  4. When you read a foreign expression aloud, always say minute first, then hour, then calendar anchors.

What * / , and - mean inside each cron field position

  1. * accepts every legal value for that field without narrowing the repeat.
  2. / after a range or * runs every N units, as in */5 in the minute field for every five minutes.
  3. - joins inclusive bounds, such as 9-17 for business-hour hours only.
  4. , separates independent alternatives, such as 1,15,30 for three minute marks within the hour.

How day-of-month and day-of-week restrictions combine when both are narrowed

  1. Classic cron treats day-of-month and day-of-week as two filters on the same firing set when both are restricted.
  2. On many Vixie implementations, if either field is *, the other field alone decides eligible days.
  3. When both fields are lists or ranges, a day must satisfy both filters, which can shrink matches more than newcomers expect.
  4. Read your platform manual because Kubernetes, GitHub Actions, and systemd timers inherit slightly different union rules.

Why Kubernetes CronJob schedules and GitHub Actions timers document five UTC fields

  1. Kubernetes CronJob schedule strings follow the standard minute-hour-dom-month-dow shape without seconds.
  2. GitHub Actions workflow schedule uses the same five-position grammar and evaluates it in UTC.
  3. Linux crontab on the server uses five fields and the system clock context the daemon documents, often UTC on cloud images.
  4. Quartz six-field schedules with a leading seconds column belong in JVM config, not in those five-field surfaces.

Where the line looks valid but fires at the wrong civil time

A nightly job that hits office noon on the wall because the host assumed UTC while operators thought in civil office time

Five-field cron never embeds a region offset. 0 9 * * * is 09:00 UTC. Teams in UTC+8 see 17:00 unless they move the hour field. Map the intended wall clock to UTC before you edit the line, and compare the next run list against epoch output on timestamp.

A Spring Quartz six-field line pasted into crontab or a Kubernetes manifest unchanged

Quartz prepends seconds, so 0 0 30 * * * can mean second zero, minute zero, minute thirty in different parsers. Kubernetes reads the first token as minute and may treat the line as invalid. Strip or add the seconds column to match the target engine before deployment.

A GitHub Actions workflow that skips weekends because day-of-week used one while day-of-month also narrowed

Restricting both dom and dow shrinks matches on POSIX-flavored parsers. dom 1 with dow 1-5 is not the same as dow 1-5 alone. Re-read union rules in Actions docs, simplify one field to *, and re-check the next fires in UTC.

Frequently asked questions

How do I parse a cron expression online?
Read the string from left to right as minute, hour, day of month, month, and day of week. Expand each field using *, /, ,, and - rules, then list the next civil times in the timezone the scheduler documents, usually UTC. Confirm whether your platform uses five fields or a Quartz six-field layout before you interpret the first columns.
What do the five cron fields mean?
Minute runs zero through fifty-nine. Hour runs zero through twenty-three on a twenty-four-hour civil clock. Day of month picks calendar days. Month picks calendar months. Day of week picks weekdays, often zero or seven for Sunday depending on dialect. Together they define repeating instants, not a single Unix instant like those on timestamp.
Is minute or hour first in cron?
Standard crontab, Kubernetes, and GitHub Actions place minute before hour. The leftmost number is always the minute field unless you are in a Quartz six-field dialect where seconds precede minute. Saying hour-first is a common copy error that shifts every firing.
What is a Quartz six-field cron expression?
Quartz adds a seconds field as the leftmost column, then minute, hour, day of month, month, day of week, and sometimes year. Job schedulers in Java often default to that shape. Operations tools that only accept five fields need the seconds column removed and the remaining tokens shifted left.
What time zone does cron use?
Cloud schedulers and GitHub Actions evaluate in UTC unless docs specify another zone. Linux crontab follows the timezone configured for the cron daemon, which may differ from a user shell. Always state whether previews are UTC so you do not confuse civil time with offset.
How do I write crontab every five minutes?
Put */5 in the minute field and * in hour, day of month, month, and day of week—often written as */5 * * * *. That fires at minutes zero, five, ten, and so on for every hour of every day in the scheduler clock.
What schedule format does Kubernetes CronJob use?
The schedule key expects five space-separated fields in minute-hour-dom-month-dow order, interpreted in the controller timezone, typically UTC on managed clusters. It does not accept a leading seconds field. Invalid tokens prevent the object from reconciling until the string is fixed.
How does GitHub Actions cron differ from JWT exp timing?
Workflow schedule repeats on civil UTC fields. JWT exp is a single Unix second counted from an epoch on JWT, not a repeating pattern. A token can expire between two cron ticks even when both appear in operations runbooks side by side.

Common crontab examples (5 fields)

  • */5 * * * *Every 5 minutes
  • 0 */2 * * *Every 2 hours at minute 0
  • 30 8 * * *Every day at 08:30
  • 0 12 * * *Every day at 12:00
  • 0 2 * * *Every day at 02:00 (typical backup window)
  • 0 9 * * 1-5Weekdays (Mon–Fri) at 09:00
  • 0 0 1 * *Midnight on the 1st of each month
  • 0 0 * * 0Midnight every Sunday