FLXCode Cron Expression Generator

FLXCode apps

Appearance

Cron Expression Generator

Build a cron expression or paste one to see what it means and when it runs next.

Dialect

Every 5 minutes.

0-59
0-23
1-31
1-12
0-6
Next 10 runs
Copy as
 

No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it. What this tool keeps and sends.

Problem or idea? Email us

Quick start

  1. Pick a schedule in Build a schedule, or type an expression in the big box. They stay in sync both ways.
  2. Read the sentence under the box. If it is not what you meant, change a field.
  3. Choose the time zone the server uses. The table shows the next 10 runs there and in your own zone.
  4. Pick crontab, GitHub Actions or Kubernetes and copy the snippet.

The five fields

FieldValuesAlso allowed
Minute0-59* , - /
Hour0-23* , - /
Day of month1-31* , - /
Month1-12JAN-DEC, * , - /
Day of week0-7 (0 and 7 are Sunday)SUN-SAT, * , - /

A comma makes a list (1,15), a dash a range (9-17), a slash a step (*/10 or 0-30/10). The macros @yearly, @monthly, @weekly, @daily, @hourly and @reboot replace the five fields. This follows the crontab(5) man page.

Examples, read by the tool

ExpressionMeaning
*/5 * * * *Every 5 minutes.
0 * * * *At minute 0 past every hour.
30 9 * * 1-5At 09:30, on weekdays.
0 0 1 * *At 00:00, on day 1 of the month.
*/15 9-17 * * 1-5Every 15 minutes between 09:00 and 17:59, on weekdays.
0 0 13 * 5At 00:00, on day 13 of the month, and also on Friday (when both day fields are set, standard cron runs on either).
0 3 * * 0At 03:00, on Sunday.
@dailyAt 00:00.

Day of month and day of week: either, not both

This is the rule that surprises people. crontab(5) says that if both fields are restricted (neither contains a *), the command runs when either field matches. So 0 0 13 * 5 is not Friday the 13th. It is the 13th of every month plus every Friday. From 1 November 2026 the next seven runs are:

Fri, 6 Nov 2026; Fri, 13 Nov 2026; Fri, 20 Nov 2026; Fri, 27 Nov 2026; Fri, 4 Dec 2026; Fri, 11 Dec 2026; Sun, 13 Dec 2026

The 13th of November is a Friday, so it appears once. With a * in one field (0 0 * * 5, or 0 0 */2 * 5) the other field alone decides, or both must match. The tool shows a note when the either rule is on.

Daylight saving time

The cron(8) man page of cronie (the Vixie cron family) says that clock changes of less than three hours are handled in a special way for jobs that run at a specific time: those skipped by the change run immediately after it, and none runs twice when the clock goes back. Jobs that run more often, like every 30 minutes, are scheduled normally. The tool applies that rule. Other cron implementations (Debian cron, busybox, systemd timers) can behave differently, so check yours. Warsaw changes clocks on 29 March 2026 (02:00 becomes 03:00) and on 25 October 2026 (03:00 becomes 02:00).

ExpressionTime zoneRuns
30 2 * * *Europe/Warsaw, springSat, 28 Mar 2026, 02:30 CET; Sun, 29 Mar 2026, 03:00 CEST; Mon, 30 Mar 2026, 02:30 CEST
30 2 * * *Europe/Warsaw, autumnSun, 25 Oct 2026, 02:30 CEST; Mon, 26 Oct 2026, 02:30 CET
*/30 2 * * *Europe/Warsaw, autumnSun, 25 Oct 2026, 02:00 CEST; Sun, 25 Oct 2026, 02:30 CEST; Sun, 25 Oct 2026, 02:00 CET; Sun, 25 Oct 2026, 02:30 CET

In spring the 02:30 job runs at 03:00, once. In autumn the fixed job runs once, and the wildcard job runs through the repeated 02:00 hour twice. If a job must run exactly once per day, schedule it in UTC or outside 01:00 to 04:00.

Quartz differences

The Quartz dialect has 6 fields (seconds first) or 7 (with a year). Days of the week count from 1 for Sunday. One of the two day fields must be ?. L is the last day, L-3 three days before it, 15W the weekday nearest the 15th, 6L the last Friday and 6#3 the third Friday (see the Quartz CronTrigger tutorial).

Quartz expressionMeaning
0 0/30 * * * ?At second 0 at minutes 0 and 30 past every hour.
0 15 10 ? * MON-FRIAt 10:15, on weekdays.
0 0 12 L * ?At 12:00, on the last day of the month.
0 0 12 15W * ?At 12:00, on the weekday nearest day 15 of the month.
0 0 12 ? * 6LAt 12:00, on the last Friday of the month.
0 0 12 ? * 6#3At 12:00, on the 3rd Friday of the month.

How Quartz treats a missing or repeated local time depends on the Java version and the scheduler settings. The tool skips missing times and runs repeated ones once, and says so under the table.

Where the snippets run

  • crontab. Add the line with crontab -e. Replace /path/to/command with your command.
  • GitHub Actions. Runs in UTC unless you add a timezone key. The shortest interval is 5 minutes, and runs can start late when GitHub is busy (GitHub docs).
  • Kubernetes. A CronJob reads the schedule in the controller's zone unless you set spec.timeZone. The snippet sets it when you pick a zone other than UTC (Kubernetes docs).

Limits

  • It reads the syntax of crontab(5) and Quartz. Other schedulers differ in small ways: systemd timers, AWS EventBridge (6 fields, with a year), Jenkins (H hashes), Spring (@Scheduled). Check their own documents.
  • A single number with a step, like 5/15, is accepted but flagged. crontab(5) defines steps only after * or a range, and some cron programs reject it.
  • Run times use the time zone data of your browser. They look up to 9 years ahead, so a leap-day schedule works.
  • No @reboot times, and no names like H or @every.

The expression is read in your browser and goes nowhere. We count events without cookies, such as which preset was used (details). See also JSON Formatter, Regex Tester, Hash Generator and UUID Generator.

FAQ

What does * mean in a cron expression?

Every value the field can take. In the minute field it means every minute, in the month field every month. */5 means every fifth value, so */5 in the minute field is minutes 0, 5, 10 and so on up to 55.

Why did my job run on days I did not expect?

Most likely the day-of-month and day-of-week rule. In standard cron, when both of those fields are set (neither starts with *), the job runs when either one matches. 0 0 13 * 5 means the 13th and every Friday, not Friday the 13th. Put a * in one of the two to require both, or test the day in the script.

Which time zone does cron use?

The one the cron daemon runs in, usually the server's, which is often UTC. Pick that zone in the tool to see the real run times, next to the same instants in your own zone. GitHub Actions uses UTC unless you set a timezone key. A Kubernetes CronJob uses the controller's zone unless you set spec.timeZone.

What happens at a daylight saving change?

This is how cronie and Vixie cron behave. Other cron programs (Debian cron, busybox, systemd timers) can differ. Cronie treats fixed-time jobs and wildcard jobs differently. A job at 02:30 whose time is skipped in spring runs right after the change, and it runs once when the clocks go back.

Can I use 0 0 31 * * for the last day of the month?

No. It runs only in months that have 31 days. Standard cron has no "last day" symbol. Run on days 28 to 31 and check tomorrow's date in the script, or use Quartz with L.

What if the machine is off at the scheduled time?

Cron does not run the job later. It only runs jobs while its daemon is running, and the catch-up rule for clock changes above does not cover a machine that was off. For laptops and desktops, anacron or a systemd timer with Persistent=true runs missed jobs.

More from FLXCode

  • Regex TesterTest JavaScript regular expressions with live matches, groups, flags and a replace preview. Runs in your browser.
  • JSON FormatterFormat, minify, sort and check JSON in your browser. Big numbers stay exact and errors show line and column.
  • Hash GeneratorMD5, SHA-1, SHA-256 and SHA-512 of text or any file, with HMAC and a compare box. Files never leave your device.
  • UUID GeneratorMake version 4 or version 7 UUIDs in your browser, 1 to 1,000 at a time. Copy or download as .txt.

Share Cron Expression Generator