Configuration
minute
hour
day
month
weekday
Output
Choose an operation to start

Cron Expression Generator

The five crontab fields (minute, hour, day, month, weekday) are easy to remember and easy to get wrong: one extra space, a weekday of 8, or */5 typed as 5, and the job fires at a strange time. This generator turns the five fields into dropdowns — pick, and the standard expression is assembled for you.

Every field accepts "every", a specific value or a */n step, and picking a step reveals a start input — minute */2 with start 5 yields 5/2, every 2 minutes from minute 5, keeping the job off the congested top of the hour. Everything runs locally in your browser; nothing is sent anywhere.

Features

How to use

  1. Select values for minute, hour, day, month and weekday on the left (all default to *, i.e. every unit); when you pick a */n step, the start input next to it offsets it — minute */2 with start 5 gives 5/2.
  2. Click "Generate" — the assembled cron expression appears on the right.
  3. Click "Copy" or "Download" and paste the expression into crontab -e or your CI config.
  4. Changing any field regenerates instantly; "Clear" resets everything to the defaults.

FAQ

How do I run a job every 2 minutes starting at minute 5?

Pick */2 (every 2 minutes) for minute and type 5 into the start input that appears; the expression becomes 5/2 * * * * — firing at minutes 5, 7, 9 … 59. Leaving start empty or at 0 keeps the canonical */2. Note that start/step is a cronie extension; on older systems write the equivalent 5-59/2.

Can I use the expression right away?

Yes. The output is a standard 5-field crontab expression (minute hour day month weekday), identical in format to crontab -e, in-container Docker cron and CI schedule fields — paste and run.

Do 0 and 7 both mean Sunday?

Yes. In the crontab spec both 0 and 7 represent Sunday, so this tool offers both; for weekdays use 1-5, and for weekends 6 (Saturday) or 0/7 (Sunday).

Why is there no "next run time" preview?

Generating an expression and explaining one are two different jobs; this page focuses on the former — turning visual picks into an expression. Explaining an existing expression (with next-run computation) belongs on a separate page, so neither has to carry two sets of logic.

Are seconds or a year field supported?

No. Standard crontab has five fields and no seconds; the 6/7-field Spring format and the 7-field Quartz format mean different things per field, and mixing them up causes mistakes. Configure those per their own framework documentation.

Is my input uploaded?

No. This page makes no backend calls at all; all fields and expressions are handled in the browser and the page works offline.

Related tools & reading

Feedback

This site is front-end only — no backend, no accounts — so feedback goes to GitHub Issues, Discussions, or email.

Paste it into the issue or email to help track it down — it never includes anything you typed

Also:Browse existing issues · Email feedback (no GitHub account needed):278975598@qq.com