01 / Generator

Cron expression generator.

Describe a schedule or set each field. See when it really runs, then copy it for crontab, GitHub Actions, Kubernetes, AWS and more.

01Describe it

Try

02Or set each field

Common schedules

03Your expression

min · hour · day · month · weekday · type here to edit

04Command(optional)

Copy then gives you the full crontab line. Use absolute paths, because cron runs with a minimal PATH.

What this does

0

min

0

hour

*

day

*

month

*

weekday

Every day at 00:00

Hover a tile to see what each field means.

A day on this schedule

000306091215182124

Next runs

Calculating…

Cron uses the server's time zone. Pick it above to see exactly when your job will fire.

Use it on your platform

# m h dom mon dow  command
0 0 * * * /path/to/command

Add with crontab -e. Times are in the server's local time zone unless you set CRON_TZ.

Quick reference

Common Cron Job Examples

Popular cron expressions you can copy and use immediately. Click any expression to copy it to your clipboard.

Every 5 minutes

*/5 * * * *

Runs at minute 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, and 55

Every hour

0 * * * *

Runs at the start of every hour

Daily at midnight

0 0 * * *

Runs once every day at 12:00 AM

Every weekday at 9 AM

0 9 * * 1-5

Runs Monday through Friday at 9:00 AM

Every 30 minutes

*/30 * * * *

Runs at minute 0 and 30 of every hour

Weekly on Sunday

0 0 * * 0

Runs once a week on Sunday at midnight

First day of month

0 0 1 * *

Runs at midnight on the first day of every month

Every 15 minutes

*/15 * * * *

Runs at minute 0, 15, 30, and 45 of every hour

Understanding Cron Syntax

A cron expression consists of five fields representing different time units: minute (0-59), hour (0-23), day of month (1-31), month (1-12), and day of week (0-7). Special characters like asterisk (*), comma (,), hyphen (-), and slash (/) allow you to create flexible schedules.

The asterisk (*) means "every," so * * * * * runs every minute. The slash (/) specifies increments, like */5 for "every 5 units." Hyphens create ranges, and commas separate multiple values.

Why this tool

Built for the part after the expression

01

Write it in plain English

Type "every weekday at 9am" and get 0 9 * * 1-5. Or go the other way: paste an expression and read what it does.

02

Real run times, any time zone

See the actual next runs and a month calendar, in the server's time zone rather than yours. That's where most cron surprises come from.

03

One schedule, every platform

Copy the same schedule as crontab, GitHub Actions, Kubernetes, AWS EventBridge, Quartz, systemd or node-cron syntax.

04

Saved in your browser

Keep schedules with their commands and notes, group them into projects, and import or export a crontab. No account needed.

FAQ

Questions people ask about cron

01How do I make a cron job that runs every 5 minutes?

Use the step operator in the minute field: */5 * * * *. It fires at :00, :05, :10 and so on, 12 times an hour. To limit it to working hours, set the hour field too: */5 9-17 * * *.

02What's the cron expression for midnight?

0 0 * * *: minute 0 of hour 0, every day. Remember it's midnight in the server's time zone, which on most cloud machines is UTC.

03How do I run a job on weekdays only?

Put 1-5 (Monday to Friday) in the last field and pick a time, for example 0 9 * * 1-5 for 9:00 every weekday. Leaving the minute and hour as * would run it every minute of those days.

04What does * * * * * mean?

Every minute, of every hour, of every day. Each * means "any value" for its field (minute, hour, day of month, month, day of week). It's useful for testing, but rarely what you want in production.

05Why does my job run on days I didn't expect?

If you set both the day-of-month and day-of-week fields, cron runs when either matches. 0 9 1 * 1 runs on the 1st of the month and every Monday. The decoder warns you about this.

06How do I check an expression before I deploy it?

Paste it into the decoder. It validates the syntax, explains it in plain English, and lists the next run times in whatever time zone your server uses.