Cron Expression Generator
Build and understand cron expressions visually
Minute
Hour
Day of Month
Month
Day of Week
Every minute
Field Reference
Common Presets
Next 5 Runs
Related Tools You Might Like
YAML Creator & Validator
Create, validate, and generate YAML files with predefined templates for deployment configurations
JWT Decoder
Decode and inspect JSON Web Tokens — view header, payload, and expiration
Markdown Editor
Write and preview Markdown with live rendering, toolbar, and export options
IP Lookup
Look up IP address geolocation, ISP, timezone, and network details
Caesar Cipher & ROT13 Decoder
Classical ciphers and encodings: Caesar, ROT13, XOR, Base64, hex, Morse
Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes for text and files
Reading cron syntax one field at a time
A cron expression is five values separated by spaces, and the order is fixed: minute, hour, day of month, month, day of week.
Each field takes an asterisk for "every", a number, a comma-separated list, a range with a hyphen, or a step with a slash. `0 9 * * 1-5` reads as minute 0, hour 9, any day of the month, any month, Monday to Friday — nine in the morning on weekdays.
The field order is where most errors start, because `0 9` and `9 0` are both valid expressions and only one is what you meant. Reading the generated description back in English catches it in two seconds, which is why these tools include one.
The cron day of week overlap that catches everyone
This is the genuine trap in cron, and it is counter-intuitive enough that experienced engineers hit it.
When both day-of-month and day-of-week are set to something other than an asterisk, they are combined with OR rather than AND. The expression `0 0 13 * 5` does not mean "Friday the 13th". It means midnight on the 13th of every month, and also midnight every Friday.
Written out, that is a job you expected a couple of times a year running roughly sixty times. If it sends email, charges a card or posts something, the consequences are immediate and public.
The rule is simple: set one or the other, never both. If you genuinely need a specific weekday falling on a specific date, schedule it daily and have the script check the date itself.
Why timezones break a cron job schedule twice a year
Cron runs on the server's clock, and that clock is not always well behaved.
In regions observing daylight saving, one hour vanishes in spring and one hour repeats in autumn. A job scheduled at 2:30am is skipped entirely on the day the clocks go forward, and runs twice on the day they go back.
For a report this is annoying. For anything that moves money, sends messages or computes a daily total, a double run is a real incident — and it happens on a Sunday morning when nobody is watching.
Two defences. Schedule important jobs outside the 1am-to-3am window, which sidesteps the problem for nothing. And where the scheduler supports it, set the timezone to UTC, which has no daylight saving at all. Making your job safe to run twice is the belt-and-braces version, and worth it for anything with consequences.
What a crontab generator cannot protect you from
Getting the expression right is the easy half. The failures that cause real incidents are not syntax errors.
Overlapping runs come first. If a job takes longer than its interval, cron starts the next copy regardless, and two instances touching the same database or file is how data gets corrupted. Your script needs its own lock file or advisory lock. Cron offers nothing here and gives no warning.
Silent failure comes second. A cron job that errors writes to stderr, which goes to mail that is almost never configured, so it vanishes. A job can be broken for months while everyone assumes it runs. Log explicitly, and alert on the absence of a success message rather than on failure.
Then the environment. Cron runs with a minimal PATH and few variables, so a script that works in your shell can fail immediately under cron. Use absolute paths for everything and set the variables your script needs inside the script itself.
How to use the Cron Expression Generator
- Set the schedule you want using the plain-language fields.
- Read the generated expression back against the description before using it.
- Leave either day-of-month or day-of-week as an asterisk — together they mean OR.
- Check the minute field is not still an asterisk if you wanted one run per hour.
- Avoid scheduling important jobs between 1am and 3am, where clock changes bite.
What this tool handles
Plain-language builder
Set the schedule in words and get the expression, rather than guessing at syntax.
Reads the expression back
A description in English, which is how you catch a field in the wrong position.
Step and list values
Intervals like every 15 minutes and explicit lists, both correctly formed.
Runs in the browser
No request is made; your schedule stays in the tab.
