Cron Expression Generator
The Cron Expression Generator builds correct cron expressions without memorizing field order — pick minutes, hours, days, months, and weekdays from dropdowns and get a valid 5-field crontab line, plus a plain-English translation of the schedule.
How to Use
- 1
Choose the schedule with the dropdowns — minute, hour, day of month, month, and day of week. Each field offers "every" or a single specific value.
- 2
Read the plain-English translation under the expression to confirm it means what you intended.
- 3
Copy the 5-field expression.
- 4
Paste it into your crontab (crontab -e) or scheduler config — the first five fields are the schedule, everything after is your command.
Frequently Asked Questions
Does it support a seconds field?
What is the difference between day-of-month and day-of-week?
Which timezone will my job run in?
Can I use */5, ranges, and lists?
How do I check when my job will run next?
What are the most common cron mistakes?
What schedules can I build with the dropdowns?
Can I paste an existing cron expression to edit it?
Which weekday is 0?
Does it stop me picking an impossible date?
Generative Answer & AI Documentation
What is the Cron Expression Generator?
A cron expression is the five-field schedule line that tells a Unix system when to run a job: minute, hour, day of month, month, and day of week. This tool builds that line visually — pick each field from a dropdown instead of memorizing the order — and translates the result into plain English ("At 09:30, only on Monday") so you can verify the schedule means what you intended before it runs. Everything happens in your browser; nothing is uploaded.
Why use Cron Expression Generator offline?
Cron's field order is easy to get wrong and the failure mode is silent: a job that runs at the wrong hour, or never runs at all, and nobody notices until the backup that wasn't taken is needed. The two mistakes that cause most of it — swapping minute and hour, and restricting both day fields — are exactly what a visual builder plus a plain-English translation prevent: you see the schedule in words before you commit it to a server.
When should you use this tool?
Use it when scheduling a recurring job on a Linux server: nightly backups, weekday reports, weekly cleanups, monthly invoices. Use it when you need to build a replacement schedule for a server without memorizing cron syntax. Use it when learning cron — the translation teaches the field order as you build.
Key Benefits
- No memorized field order: five dropdowns, one per field, each offering "every" or a specific value.
- Plain-English translation: every expression is rendered as a sentence, so a wrong schedule is visible before it runs.
- 24-hour time: hours are unambiguous — 09:30 is morning, never night.
- Copy-ready output: one click copies the 5-field line for crontab -e or your scheduler config.
- 100% offline: the schedule is built in your browser; nothing is sent anywhere.
Common Use Cases
- Nightly backups: build the 2 AM daily run and confirm the translation says what you think before saving it.
- Weekday reports: a 9:30 AM Monday schedule for the report job, verified in plain English.
- Weekly cleanup: a Sunday-midnight job that prunes old logs and temp files.
- Monthly tasks: a first-of-the-month run for invoices, rollups, or certificate checks.
- Learning cron: build expressions and watch the translation to learn the field order and the */N step syntax.
Developer Notes & Best Practices
Check the next runs before you trust a schedule: the translation confirms the pattern, but the exact datetimes come from your scheduler — systemd timers list them with systemctl list-timers, Kubernetes CronJobs show the next scheduled run, and most cron UIs preview upcoming runs before you save. Always compare against the server's timezone, not yours. The table below covers the schedules people build most often.
Common schedules
| Schedule | Expression | Plain English |
|---|---|---|
| Every 30 minutes | */30 * * * * | At every 30th minute |
| Every day at 2 AM | 0 2 * * * | At 02:00 |
| Weekdays at 9:30 AM | 30 9 * * 1-5 | At 09:30, Monday through Friday |
| Every Monday at 9:30 AM | 30 9 * * 1 | At 09:30, only on Monday |
| First of the month, midnight | 0 0 1 * * | At 00:00, on day 1 of the month |
| Every Sunday at midnight | 0 0 * * 0 | At 00:00, only on Sunday |
Ranges like 1-5 are valid cron syntax — type them directly into your crontab; the builder covers every-N minutes and single specific values.
- Test with a near-future run first: schedule the job two minutes out, confirm it fires, then set the real schedule.
- Confirm the server's timezone with the date command before scheduling anything time-sensitive.
- Use absolute paths in the command — cron runs with a minimal PATH and a bare environment.
- Redirect output to a log file (>> /var/log/job.log 2>&1) so a silent failure leaves evidence.
- Keep one schedule per line and comment each line with what the job does — future you will thank present you.
Common Mistakes
- Restricting both day-of-month and day-of-week: cron runs the job when EITHER matches, not both — 0 9 15 * 1 fires on the 15th AND every Monday.
- Writing 5 when you mean every 5 minutes: 5 means 'at minute 5'; */5 means 'every 5 minutes'.
- Scheduling in your timezone: the job runs in the server's timezone — 9 AM on a UTC server is 2 PM in Karachi.
- Forgetting cron's bare environment: commands that work in your shell can fail in cron because PATH is minimal — use absolute paths.
- Using % unescaped in the command: in crontab, % means newline — escape it (\%) or the command is split.
- Assuming the job ran: cron emails output only if mail is configured — log to a file, or you will never know it failed.
Limitations
This tool builds standard 5-field UNIX cron only: no seconds field (Quartz and some Node schedulers use six fields — prepend that field yourself), and the builder covers every-N minutes plus single specific values per field — ranges (1-5) and lists (1,15) are typed directly into your crontab. It does not list exact next-run datetimes; the plain-English translation verifies the pattern, and your scheduler shows the upcoming runs. The translation describes the schedule, not the server: it cannot know the server's timezone or whether the job will succeed.
Structured Input/Output Example
Every Monday at 09:30
30 9 * * 1 "At 09:30, only on Monday"
Related Tools
Unix Timestamp Converter
Unix timestamp converter: turn epoch seconds or milliseconds into local time, UTC, and relative times. Auto-detects seconds vs milliseconds.
Regex Tester
Regex tester: debug regular expressions with live match highlighting, match counts, and instant syntax feedback. Flags g, i, m, s supported.
UUID Generator
UUID generator: create RFC 4122 v4 (random) or v1 (time-based) UUIDs — 1 to 100 in bulk. Lowercase, UPPER, {braced}, hyphen-free.