Generador de expresiones cron
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
- Five visual fields — Pick minute / hour / day / month / weekday in order and get a standard 5-field cron expression, with no risk of mistyping a field.
- Steps and common values built in — All five fields include */n steps (minute up to */30, month also */3, */4 and */6); hour, day, month and weekday offer every common value, with weekdays shown as 0-7 plus the weekday abbreviation.
- Custom start with start/step — Pick any step and the adjacent start input rewrites */2 into 5/2 (every 2 minutes from minute 5), shifting jobs off the top of the hour; leave it empty or at the field minimum to keep the canonical */2.
- Live regeneration — Once an expression exists, changing any field regenerates it immediately — no button pressing required.
- Copy or download — Copy the expression to your clipboard or download it as crontab.txt, ready to paste into crontab -e.
- Local and dependency-free — The page is static HTML with no backend calls; the generation logic is built in and works offline.
- Real-world ready — Output works as-is in Linux crontab, in-container cron for Docker, and in the schedule field of GitHub Actions.
How to use
- 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.
- Click "Generate" — the assembled cron expression appears on the right.
- Click "Copy" or "Download" and paste the expression into crontab -e or your CI config.
- 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.