Cron Expression Generator

Pick a schedule, get the cron expression and its next run times.

Runs in your browser Instant No sign-up
Cron expression
Done
Processed locally · nothing is uploadedProcessed locally

How it works

Choose how often the job should run in Run. Only the options that apply to that choice are shown:

Run Options Example result
Every minute — * * * * *
Every N minutes 2–30 (divisors of 60) */15 * * * *
Hourly at minute minute 0–59 30 * * * *
Every N hours 2, 3, 4, 6, 8, 12 and a minute 15 */6 * * *
Daily at time HH:MM 30 2 * * *
Weekly on days at time days such as 1-5, MON-FRI, sat,sun 0 9 * * 1-5
Monthly on day at time days such as 1, 1,15, 1-7 0 12 1,15 * *
Custom fields all five fields */10 9-17 * 1,4,7,10 mon-fri

The fields are checked as you type. Day names are converted to numbers (0 or 7 is Sunday). A range that wraps past Saturday, such as fri-mon, is split into 5-6,0-1 because cron ranges can’t wrap.

The expression always comes first in the output, so Copy is all you need. The schedule is described and the next runs are computed by the same code as the cron expression parser, so the two tools always agree. The default options (weekdays at 09:00, UTC), generated on 1 October 2026, give:

0 9 * * 1-5

At 09:00, on Monday through Friday

Next 5 runs (UTC):
  Thu 2026-10-01 09:00   in 9 hours
  Fri 2026-10-02 09:00   in 1 day
  Mon 2026-10-05 09:00   in 4 days
  Tue 2026-10-06 09:00   in 5 days
  Wed 2026-10-07 09:00   in 6 days

Use it:
  crontab          0 9 * * 1-5 /path/to/command
  GitHub Actions   - cron: '0 9 * * 1-5'
  Kubernetes       schedule: "0 9 * * 1-5"

Time zones

Under More options → Time zone, a zone other than UTC lists each run in that zone with the UTC time next to it. A daily 08:00 job in Ho Chi Minh City, for example:

  Thu 2026-10-01 08:00   (Thu 2026-10-01 01:00 UTC)   in 1 hour

That’s the conversion you need for GitHub Actions: to run at 08:00 in Vietnam (UTC+7), write 0 1 * * *. Zones with daylight saving time move the job by an hour twice a year if the server follows local time. The parser applies the Vixie cron rules for runs inside the skipped or repeated hour. To check a single run time, convert it with the Unix timestamp converter.

Warnings you may see

  • Days 29–31: months without that day are skipped. 30 23 31 * * runs only in the 7 months that have a 31st.
  • Day of month and weekday together: the job runs when either matches (see the FAQ).
  • No run in the next 5 years: an impossible date such as 0 0 31 2 * (31 February).

Installing the schedule

crontab -e                     # edit the current user's crontab
# m h dom mon dow  command
0 9 * * 1-5  /usr/local/bin/report.sh >> /var/log/report.log 2>&1

Cron runs commands with a minimal environment: a short PATH and no shell profile. Use absolute paths, and redirect output, or errors only end up in local mail. If you generate unique IDs or names inside jobs, the UUID generator explains v4 vs time-ordered v7.

Frequently asked questions

Which time zone does a cron expression use?

The expression itself has no time zone. Classic cron uses the server's local time, some implementations accept CRON_TZ=Asia/Ho_Chi_Minh at the top of the crontab, Kubernetes CronJobs have a spec.timeZone field (stable since 1.27), and GitHub Actions schedules always run in UTC. Pick the zone in Time zone to see the next runs there, with UTC alongside.

How do I run a job on the last day of the month?

Standard 5-field cron has no L symbol (that is Quartz syntax). Schedule the job on days 28–31 and let the command exit unless tomorrow is the 1st, for example with GNU date: [ "$(date -d tomorrow +%d)" = 01 ] && /path/to/job.

Why does my job run on more days than expected when I set both a day of month and a weekday?

In standard (Vixie) cron, when both the day-of-month and the day-of-week fields are restricted, the job runs when either one matches. 0 0 13 * 5 runs on every 13th and on every Friday, not only on Friday the 13th. The builder warns when you combine them in Custom fields.

Can I schedule something every 90 minutes or every 7 minutes?

Not cleanly with one expression. */N resets at the top of each hour (or each day for hours), so */7 runs at :00, :07 … :56 and then again at :00, only 4 minutes later. That's why Every N minutes only offers divisors of 60. For a true 90-minute cycle, use two lines (0 0-21/3 * * * and 30 1-22/3 * * *) or a systemd timer.

Does it support seconds or the 6-field Quartz format?

No. The output is the standard 5-field format (minute, hour, day of month, month, weekday) used by crontab, Kubernetes, GitHub Actions and most cloud schedulers. Quartz and Spring add a seconds field at the front.

Last updated