Cron Expression Visual Builder

Visually generate standard 5-part Linux Crontab and 6-part Spring cron expressions. Prevents scheduling syntax errors with immediate future execution calculation.

Every
Linux Crontab (5 Fields)
*/5 * * * *
min hour day month weekday
Spring (6 Fields)
0 */5 * * * *
sec min hour day month weekday
Human Schedule Meaning
Every 5 minutes

Simulated Next 5 Executions

Embed this tool on your website / blog No code required · Copy and paste
HTML Embed Code (iframe):
<iframe src="https://lucentool.com/cron-generator" width="100%" height="650" style="border:1px solid #e5e0d8;border-radius:12px;max-width:850px;width:100%;" frameborder="0"></iframe>
<div style="font-size:12px;color:#78716c;margin-top:6px;font-family:sans-serif;">Powered by <a href="https://lucentool.com/cron-generator" target="_blank" style="color:#c85a32;text-decoration:none;">Lucentool - Cron Expression Visual Builder</a></div>

Why Crontab Syntax Is Error-Prone

Standard Unix cron uses 5 fields (minute, hour, day-of-month, month, day-of-week). In contrast, Spring @Scheduled, Quartz, and enterprise schedulers expect 6 fields including a leading seconds parameter. Confusing these schemas or misunderstanding weekday numbers frequently causes missed jobs or cascading server overloads.

Linux 5-Field vs Spring 6-Field

Common Cron Wildcards

Under the hood

updateCron() reads the five field values and renders the expression, then computeNextExecutions() projects forward minute by minute, calling matches() for each candidate time until it has collected the requested number of hits. matches() handles the wildcard, the step form, ranges and lists per field. Showing the next real dates is the point: an expression that looks plausible often fires at a time you did not intend.

Formats, sizes and other limits

Projection walks forward in one-minute steps, so a sparse schedule (once a year) takes longer to resolve and the page does one pass rather than a smart search. Only the standard five fields are offered — no seconds, no @daily macros, no L, W or # extensions. Day-of-month and day-of-week are combined with OR, per the classic cron rule, which is the single most misunderstood part of the syntax. Times are interpreted in your browser's timezone, not the server's.

Privacy: nothing is uploaded

Schedule projection runs on your local clock in this tab. No crontab is read, no server is contacted, and the expression is not saved.

Frequently asked questions

Why do my next-run times look wrong?

Almost always a timezone mismatch: the page uses your local clock, while the server may run on UTC. Shift the hour field accordingly.

Does it support @daily or seconds?

No. Write 0 0 * * * for daily, and note that six-field expressions with seconds are a different dialect.

Why does my job run on unexpected days?

Because day-of-month and day-of-week are OR-ed, not AND-ed: specifying both means either can trigger the job.