Cron Expression Generator and Explainer, With Next Runs

A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call

Free cron expression generator. Turn any cron schedule into plain English, see the next run times in your time zone or UTC, and start from common presets.

Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.

How to use the cron expression generator

  1. Type a cron expression, such as 0 9 * * 1-5, or choose one of the common schedules from the list to start from.
  2. Read it in plain English. The cron expression generator explains the schedule in words, such as "At 09:00, on Monday, Tuesday, Wednesday, Thursday and Friday."
  3. Check each field in the table: what you wrote and the exact values it means.
  4. See the next eight run times, in your own time zone or in UTC.

If there's a mistake, the tool tells you which field is wrong and why, before it causes a job to run at 3 a.m. or never at all. It runs in your browser with no sign-up.

Cron syntax: the five fields

A standard cron expression has five fields separated by spaces:

┌───────── minute (0–59)
│ ┌─────── hour (0–23)
│ │ ┌───── day of month (1–31)
│ │ │ ┌─── month (1–12 or jan–dec)
│ │ │ │ ┌─ day of week (0–7 or sun–sat; 0 and 7 are both Sunday)
│ │ │ │ │
0 9 * * 1-5

Each field can contain:

Symbol Meaning Example
* Every value * in the hour field: every hour
a number That value 30 in the minute field: at minute 30
a-b A range 1-5 in the day of week field: Monday to Friday
a,b,c A list 0,30 in the minute field: on the hour and half past
*/n Every nth value */15 in the minute field: every 15 minutes
a-b/n Every nth value in a range 8-18/2 in the hour field: 8, 10, 12, 14, 16, 18
names Months and days jan, mon-fri

The hour uses the 24-hour clock, so 2 p.m. is 14 and midnight is 0.

Common cron expressions

Expression Runs
* * * * * Every minute
*/5 * * * * Every 5 minutes
0 * * * * Every hour, on the hour
0 0 * * * Every day at midnight
30 6 * * * Every day at 06:30
0 9 * * 1-5 Weekdays at 09:00
0 18 * * 5 Fridays at 18:00
0 0 * * 0 Every Sunday at midnight
0 0 1 * * The first of every month at midnight
0 0 1 1 * Every 1 January at midnight
0 9 1,15 * * The 1st and 15th of each month at 09:00
0 */6 * * * Every 6 hours (00:00, 06:00, 12:00, 18:00)

Many systems also accept shortcuts, which the cron expression generator understands too: @hourly, @daily (or @midnight), @weekly, @monthly and @yearly (or @annually). @reboot means "once when the server starts", so it has no schedule to show.

The day-of-month and day-of-week trap

This catches out experienced developers. When both the day of month and the day of week are restricted (neither is *), standard cron runs the job when either matches, not when both match.

So 0 9 13 * 5 doesn't mean "Friday the 13th". It means "the 13th of every month, and also every Friday". The plain-English description makes this clear by saying "on day 13 of the month, or on Friday", and the list of next runs shows it.

If you need "only when both are true", most cron systems can't express it directly. A common workaround is to schedule every Friday and have the script check the date itself.

Time zones and daylight saving

Cron runs in the time zone of the machine or service running it. A cloud server is very often set to UTC, while your laptop is in your local time. The same expression can therefore run hours apart depending on where it's deployed.

That's why the cron expression generator lets you show the next runs in either your own time zone or UTC. If your server uses UTC and you want a job at 09:00 in New York, you need to convert: 09:00 in New York is 14:00 UTC in winter and 13:00 UTC in summer. The time zone converter does that conversion for any date.

Daylight saving time adds two quirks in local time zones:

  • On the night the clocks go forward, a time such as 02:30 may not exist, so a job set for then can be skipped.
  • On the night the clocks go back, a time such as 01:30 happens twice, so a job can run twice.

Scheduling important jobs outside the 01:00 to 03:00 window, or running the server in UTC, avoids both.

Where cron expressions are used

  • Linux and macOS crontab: the classic. Edit with crontab -e; each line is an expression followed by a command.
  • GitHub Actions: on: schedule: - cron: '0 9 * * 1-5'. Always UTC.
  • Kubernetes CronJobs: a schedule: field with a five-field expression.
  • Cloud schedulers: Google Cloud Scheduler, AWS EventBridge, Cloudflare Workers cron triggers, Vercel cron and others.
  • Application frameworks: Laravel, Spring, Node.js schedulers, Celery beat and WordPress plugins.

A caution: some systems use six or seven fields, adding seconds at the start or a year at the end (Quartz, Spring and AWS EventBridge, for example). AWS also uses ? in one of the day fields. This tool reads the standard five-field format used by crontab, GitHub Actions and Kubernetes. If your system uses six fields, drop the seconds field to check the rest here.

Tips for reliable scheduled jobs

Avoid the top of the hour for busy jobs. Thousands of systems run jobs at minute 0. Picking minute 7 or 23 spreads the load and makes rate limits less likely.

Log every run. Write the start time, end time and result somewhere you'll see it. A cron job that fails silently can go unnoticed for weeks.

Prevent overlaps. If a job every 5 minutes sometimes takes 7, two copies will run at once. Use a lock file or your scheduler's "no overlap" option.

Test with a short interval first, such as every minute, then change it to the real schedule.

Write the schedule in words in a comment next to the expression. The plain-English description from this tool is ready to paste.

Keep track of timestamps. Logs often record times as Unix timestamps; the Unix timestamp converter turns them into readable dates.

Scheduling content, not just code

Cron is how many content tools publish scheduled posts, send newsletters and refresh feeds.

A worked example

A bakery's developer wants a script that emails the day's online orders to the kitchen at 05:45 on the days the bakery opens: Tuesday to Saturday. The server runs in UTC, and the bakery is in London.

He types 45 5 * * 2-6 into the cron expression generator. It says: "At 05:45, on Tuesday, Wednesday, Thursday, Friday and Saturday." The field table confirms minute 45, hour 5 and days of week 2 to 6. He switches the next runs to UTC and sees them listed for Tuesday to Saturday at 05:45.

Then he remembers British Summer Time: from late March to late October, London is one hour ahead of UTC, so 05:45 UTC would be 06:45 in London, too late for the kitchen. He has two choices: set the server's cron time zone to Europe/London if his scheduler supports it, or run the job at both 45 4 * * 2-6 and 45 5 * * 2-6 and let the script check the London time before sending. He chooses the first, and adds the plain-English description as a comment above the line.

Need more customers from Google?

This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit is a Google Ads agency that does PPC and nothing else: we build the campaigns, block the searches that waste money, write the ads, set up conversion tracking and send you a short report every week. Request a free PPC audit and we will show you, in dollars, what we would fix first.

Frequently asked questions

What is a cron expression?

A cron expression is a short line of five fields (minute, hour, day of month, month and day of week) that describes when a scheduled job should run. For example, 0 9 * * 1-5 means weekdays at 09:00.

How do I write a cron expression for every 5 minutes?

Use */5 * * * *. The */5 in the minute field means every fifth minute: 0, 5, 10 and so on.

What does * mean in cron?

An asterisk means every possible value for that field. * in the hour field means every hour.

Is Sunday 0 or 7 in cron?

Both. Standard cron accepts 0 and 7 for Sunday. Monday is 1 and Saturday is 6.

What time zone does cron use?

The time zone of the system running it. Many servers and services, including GitHub Actions, use UTC. The cron expression generator shows the next runs in your time zone or UTC so you can check.

Why does my job run on the wrong days?

If both the day of month and the day of week are set, standard cron runs on days matching either one, not both. Set one of them to * if you only mean the other.

Free PPC audit

See where your ad budget leaks.

We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.

Book a free audit call 30-minute call · Free · The audit is yours to keep