Crontab Generator & Explainer

Build a cron schedule from dropdowns, or paste any cron expression to decode it in plain English — with the next run times. Free, no signup.

Quick answer: A cron expression has 5 fields — minute hour day-of-month month day-of-week. Example: 30 2 * * 1 runs at 02:30 every Monday. Use * for "every", */n for "every n", a-b for a range, and a,b,c for a list. Build or decode one below.
Decode a cron expression

—

Next runs:

Build a cron expression
*/15 * * * *

—

Cron field reference

* * * * *Every minute
*/5 * * * *Every 5 minutes
0 * * * *Every hour, on the hour
0 0 * * *Every day at midnight
30 3 * * *Every day at 03:30
0 9 * * 1-509:00, Monday through Friday
0 0 1 * *Midnight on the 1st of every month
0 0 * * 0Midnight every Sunday

Running cron jobs on a home server?

See our picks for the best low-power mini PCs and NAS boxes to run them 24/7.

All homelab tools →

← All free homelab tools

Frequently asked questions

What are the 5 fields in a cron expression?

A standard cron expression has five fields in this order: minute (0–59), hour (0–23), day of month (1–31), month (1–12), and day of week (0–6, where 0 is Sunday). For example, '30 2 * * 1' runs at 02:30 every Monday.

What does */5 mean in cron?

A step value like */5 in the minute field means 'every 5 minutes'. The */n syntax repeats every n units, so '*/5 * * * *' runs every 5 minutes and '0 */2 * * *' runs every 2 hours on the hour.

How do I run a cron job every day at midnight?

Use '0 0 * * *' — minute 0, hour 0, every day. To run daily at 3:30 AM use '30 3 * * *'.

How do I run a cron job only on weekdays?

Set the day-of-week field to 1-5 (Monday through Friday). For example '0 9 * * 1-5' runs at 9:00 AM Monday to Friday.

What is the difference between day of month and day of week?

If you set both, cron runs when EITHER matches (an OR), which surprises many people. To target a specific weekday, leave day-of-month as * and set only day-of-week.