About this tool
A Cron expression describes a recurring schedule using a set of fields. The standard form has 5 fields: minute, hour, day of month, month and day of week. Some systems also support a leading seconds field and a trailing year field, giving 6 or 7 fields. This tool detects the field count automatically.
Each field accepts the wildcard *, lists such as 1,3,5, ranges such as 1-5, and steps such as */5 or 1-20/2. Month and weekday names can be written as English abbreviations (JAN, MON and so on). Parsing and calculation happen entirely in your browser, and the expression is never uploaded.
Understanding the schedule is only half the job; the other half is what the runner does around it. Classic cron does not remember missed runs: if the machine is asleep, the container is down or the previous job is still running, the scheduled minute simply passes. There is no catch-up by default and no built-in locking, so a job that occasionally takes longer than its interval will start again on top of itself, and two copies can corrupt the same output file. Long jobs should take a lock, write a PID file or run under a wrapper such as flock, and the interval should be chosen from the worst-case duration rather than the typical one. The @reboot macro is not a schedule either: it fires once when the daemon starts, which means a container restart can trigger a migration or an email blast that was meant to happen once a day.
The expression is also the smallest part of a crontab line, and the rest of the line causes more failures than the schedule itself. Jobs run through a minimal shell with a short PATH, no aliases and often a different locale, so a command that works in your terminal can fail with “command not found” when cron runs it. Write absolute paths, set the variables you rely on at the top of the file, and redirect stdout and stderr to a log, because the default delivery is local mail that nobody reads. A literal percent sign is special inside a crontab command: it ends the command and turns the remainder into standard input, so date +%F has to be written as date +\%F. On Debian-family systems the files in /etc/cron.d carry a user column that scripts copied from elsewhere usually forget.
Not every system speaks the same cron dialect. Unix cron uses five fields and treats both 0 and 7 as Sunday; Quartz, used widely in Java, adds seconds and a year, numbers weekdays from 1 to 7 with Sunday first, and requires a question mark in one of the two day fields instead of a star, with extra tokens for last day and nth weekday. Vixie cron, cronie, busybox and systemd timers differ in smaller ways, and a schedule moved between them can silently change meaning. Daylight saving is the other boundary: a job set for 02:30 local time is skipped on the spring-forward date and may run twice in autumn, so anything that must happen exactly once a day is safer at 03:30 or anchored to UTC. When you need dependencies, retries or logging, a systemd timer, a queue or an orchestrator is a better fit than cron.
How to use
- Enter an expression: type a Cron expression in the input box and the results update in real time.
- Try an example: click a button under Common examples to fill in a frequent expression.
- Read the description: a full sentence plus a per-field value and meaning breakdown appear below.
- Check run times: the right-hand list shows the next 10 run times in your browser timezone.
- Copy the expression: click Copy expression to place it on the clipboard.
- Verify the next run times against a known date: pick a weekday you can check on a calendar, confirm the month boundary and the daylight saving transition, and compare the first three listed times with what you expect.
- Move the schedule into the target environment before trusting it: check the field count and dialect, then run the command once by hand under the same user and PATH, because a job that works interactively can still fail under cron.
FAQ
Which syntax is supported?
Wildcards *, lists 1,3,5, ranges 1-5, steps */5 and range steps 1-20/2. Months and weekdays accept English abbreviations (JAN-DEC, SUN-SAT). Both 0 and 7 mean Sunday.
What is the difference between 5 and 6 fields?
The 5 fields are minute, hour, day of month, month and day of week. A 6-field expression adds seconds at the front, and a 7-field expression adds a year at the end. The tool detects this from the field count.
What happens when both day and weekday are set?
Following the Cron convention, when neither is a wildcard the two are combined with OR, so the job runs when either matches. If only one is restricted, it is combined with AND.
Which timezone are run times in?
They are computed in your local browser timezone, which may differ from your server timezone. Always confirm against the actual deployment environment.
Is my expression uploaded?
No. Parsing and run-time calculation run locally in your browser with JavaScript, and nothing is sent anywhere.
Why did my job run twice, or not at all, on the day the clocks changed?
A schedule in local time follows the wall clock. When clocks spring forward the 02:00 to 03:00 hour does not exist, so a job set for 02:30 is skipped; when they fall back the hour repeats, so the same job can run twice. Schedule such jobs at 03:30 or in UTC if exactly one execution per day matters.
Why does a command work in my shell but fail from crontab?
Cron starts the job with a minimal environment: a short PATH, no shell profile, a different locale and a different working directory. Use absolute paths, set PATH and other variables at the top of the crontab, and log stderr to a file so the actual error message is visible instead of being mailed to a mailbox nobody reads.
How do I run a job every five minutes only during working hours?
Combine fields: 0-59/5 in the minute field, 9-17 in the hour field, and * in the rest, which gives a run every five minutes between 09:00 and 17:59. If you also need weekdays, remember that day-of-month and day-of-week are combined with OR when both are restricted, so leave day-of-month as * to avoid extra runs.