# Cron Expression Generator

URL: https://hifreetools.com/developer/cron-expression-generator

> Build a standard 5-field cron expression from each field, pick a common preset, and read a plain-English explanation of exactly when it will run.

## Quick answer

A cron expression is five space-separated fields — minute, hour, day-of-month, month, and day-of-week — that tell a scheduler when to run a job. For example, 0 9 * * 1 means "at 09:00 on Monday." This tool builds the expression from your inputs and explains the schedule in plain English so you can verify it before deploying.

Cron uses five fields in fixed order: minute (0–59), hour (0–23), day of month (1–31), month (1–12), and day of week (0–6, where Sunday is 0 and 7 also means Sunday). Each field accepts a single number, an asterisk (*) for "any value", a comma list like 1,3,5, a range like 9-17, or a step like */15. This tool validates each field against its allowed range, joins them with single spaces, and translates the combination into a readable sentence. Everything runs in your browser — nothing is uploaded.

## Examples

- Monday morning job: minute 0, hour 9, day-of-month *, month *, day-of-week 1 → 0 9 * * 1 — At 09:00 on Monday
- Every 15 minutes: minute */15, hour *, day-of-month *, month *, day-of-week * → */15 * * * * — Every 15 minutes
- Daily at midnight: minute 0, hour 0, day-of-month *, month *, day-of-week * → 0 0 * * * — At 00:00
- First of every month: minute 30, hour 8, day-of-month 1, month *, day-of-week * → 30 8 1 * * — At 08:30 on day 1 of the month
- Top of every hour: minute 0, hour *, day-of-month *, month *, day-of-week * → 0 * * * * — At minute 0 of every hour

## FAQ

**What are the five fields in a cron expression?**
In order: minute (0–59), hour (0–23), day of month (1–31), month (1–12), and day of week (0–6). An asterisk in any field means 'every' value for that field.

**How do I run a job every 15 minutes?**
Use */15 in the minute field and asterisks elsewhere: */15 * * * *. The step value */15 fires at minute 0, 15, 30, and 45 of every hour.

**Is Sunday 0 or 7 in cron?**
Both. Standard cron numbers days of the week 0–6 starting at Sunday, and most implementations also accept 7 as an alias for Sunday. Monday is 1.

**What does an asterisk (*) mean?**
An asterisk means 'any value' for that field. For example, an asterisk in the hour field means the job is eligible to run during every hour of the day.

**What's the difference between * and */1?**
Nothing in practice — */1 means 'every 1 unit', which is the same as *. Steps become useful with larger values like */5 or */15.

**Why does my job run more often than expected when I set both day-of-month and day-of-week?**
Most cron daemons OR the day-of-month and day-of-week fields when both are specified, so the job runs whenever either condition matches. Leave one as * to avoid surprises.

**Does this tool support seconds or the Quartz format?**
No. It generates the classic 5-field cron format used by Unix crontab, GitHub Actions, and Kubernetes. Quartz and some schedulers add a seconds field and use different day-of-week numbering.


## Sources

- [man7.org — crontab(5) manual page](https://man7.org/linux/man-pages/man5/crontab.5.html)
- [Wikipedia — Cron](https://en.wikipedia.org/wiki/Cron)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "Cron Expression Generator", https://hifreetools.com/developer/cron-expression-generator
