Skip to content
Codoryn Search tools

Cron Expression Generator & Parser

Build and read POSIX-style five-field cron expressions in your browser, with a plain-English explanation and locally computed next run times.

Which cron this is

Codoryn accepts POSIX-style five-field cron, plus exactly seven Vixie-style @macros. Naming both halves matters: the macros are not part of POSIX, and calling the whole thing "standard cron" while accepting @daily would be claiming one grammar and implementing another.

┌───────────── minute        0-59
│ ┌─────────── hour          0-23
│ │ ┌───────── day of month  1-31
│ │ │ ┌─────── month         1-12  or JAN-DEC
│ │ │ │ ┌───── day of week   0-6   or SUN-SAT  (0 = Sunday)
│ │ │ │ │
* * * * *

Each field takes *, a value, a list (1,15), a range (1-5), or a step (*/15, 10-50/5). The accepted macros are @yearly, @annually, @monthly, @weekly, @daily, @midnight and @hourly; each is expanded to its five-field form and the expansion is shown.

Why your job might run on days you did not expect

When both the day-of-month and day-of-week fields are restricted, POSIX cron runs when either matches — a union, not an intersection.

0 0 1 * 1 does not mean "the 1st, but only if it is a Monday". It means "every 1st of the month, and every Monday". This surprises nearly everyone, so when it applies the explanation says so and the next-run list shows it happening.

What is not accepted

Six- and seven-field expressions (Quartz, Spring), L, W, # and ? (Quartz), H (Jenkins), @reboot (a crontab directive tied to daemon startup rather than a schedule), and 7 for Sunday (a Vixie extension — use 0).

Each rejection names the construct and the dialect it comes from, so you can tell whether you need a different tool or a different expression. Accepting a superset "to be helpful" is how a tool tells you an expression is valid for a platform that will reject it.

Times, timezones and daylight saving

Next-run times use this device's clock, and every one is labelled with its UTC offset so it is never ambiguous. There is no timezone picker in this version: shipping one would invite the impression that Codoryn knows which zone your server runs in.

At a spring-forward transition an hour does not exist, so a job scheduled only in that hour is skipped that day. At a fall-back transition an hour happens twice, and both occurrences are listed with their different offsets. Real cron daemons differ in how they handle these, which is why the times are described as this device's rather than as universal truth.

Frequently asked questions

Does Codoryn run my job?

No. Nothing is scheduled, registered or executed anywhere. This tool explains an expression and predicts when it would fire.

Why was my Quartz expression rejected?

Because it is a different grammar. Quartz adds a seconds field and constructs such as L and # that POSIX cron has no meaning for.

Is my expression uploaded?

No. Everything is computed in your browser, and this tool does not send the expression over the network.