Skip to content

Cron Expression Generator

AI-powered

Turn plain English into a cron expression, or paste one to get a plain-English reading, a field-by-field breakdown and its next 5 run times.

At 09:00, Monday through Friday

Field by field

0
Minute (0-59)
at minute 0
9
Hour (0-23)
at hour 9
*
Day of month (1-31)
every day of the month
*
Month (1-12)
every month
1-5
Day of week (0-7)
on Monday through Friday

01 · Definition

What is a cron expression?

A cron expression is a line of five fields separated by spaces (minute, hour, day of month, month and day of week) that tells a scheduler when to run a job. For example, 0 9 * * 1-5 means 09:00 on Monday to Friday. Some schedulers accept a sixth field for seconds at the start.

02 · Overview

How the Cron Expression Generator works

Describe a schedule and an AI model returns a cron expression. Edit it, or paste your own, and the page reads it back as a sentence, explains each field, names the field that makes it invalid, and lists the next 5 run times with the year and your timezone. It handles standard 5-field expressions and 6-field expressions with a leading seconds field.

03 · Guide

Cron fields and allowed values

The five fields are read left to right. The ranges and names below are the ones in the crontab(5) manual page, and they are the ranges this page checks each field against. If you paste six fields, the first is read as seconds, 0 to 59.

Four characters work in every field: * for every value, a comma for a list (1,15), a hyphen for an inclusive range (9-17) and a slash for a step (*/15, or 8-18/2 for every second hour from 8 to 18). Month and day names are the first three letters and are not case-sensitive.

If day of month and day of week are both restricted, the job runs when either one matches: 30 4 1,15 * 5 runs at 04:30 on the 1st, on the 15th and on every Friday.

PositionFieldAllowed valuesExample
1Minute0-59*/15
2Hour0-239-17
3Day of month1-311,15
4Month1-12 or JAN-DEC1-6
5Day of week0-7 or SUN-SAT (0 and 7 are Sunday)1-5
The five fields of a cron expression

04 · Guide

Common cron schedules

Every expression below is valid 5-field cron. The readings are the output of cronstrue (version 3.14.0), the library this page uses to describe an expression, set to 24-hour times, and each row was also parsed with cron-parser. The times are in whatever timezone your scheduler runs in.

ExpressionMeaning
* * * * *Every minute
*/5 * * * *Every 5 minutes
*/15 * * * *Every 15 minutes
0 * * * *Every hour
0 */6 * * *On the hour, every 6 hours
0 0 * * *At 00:00
0 9 * * 1-5At 09:00, Monday through Friday
0 22 * * 1-5At 22:00, Monday through Friday
0 0 * * 0At 00:00, only on Sunday
0 0 1 * *At 00:00, on day 1 of the month
0 0 1,15 * *At 00:00, on day 1 and 15 of the month
0 0 1 */3 *At 00:00, on day 1 of the month, every 3 months
0 0 1 1 *At 00:00, on day 1 of the month, only in January
Cron expressions for common schedules

05 · Use cases

When to use the Cron Expression Generator

  1. 01

    Schedule a backup every weekday at 2am

  2. 02

    Trigger a deploy on the first of the month

  3. 03

    Run a cleanup script every 15 minutes

  4. 04

    Translate an inherited cron expression to plain English before editing it

  5. 05

    Generate a cron string for GitHub Actions, Vercel Cron, or a Kubernetes CronJob

06 · Examples

Cron Expression Generator examples

every weekday at 9am

ex 01

0 9 * * 1-5

Runs at 9:00 AM on Monday through Friday.

every 15 minutes

ex 02

*/15 * * * *

Fires at minute 0, 15, 30, and 45 of every hour.

first day of every month at midnight

ex 03

0 0 1 * *

Suits monthly billing or report jobs.

every sunday at 3:30am

ex 04

30 3 * * 0

A common weekly maintenance window.

twice an hour during business hours, monday to friday

ex 05

0,30 9-17 * * 1-5

Runs at :00 and :30 between 9am and 5pm on weekdays.

every 6 hours

ex 06

0 */6 * * *

Fires at 00:00, 06:00, 12:00, 18:00.

07 · FAQ

Cron: frequently asked questions

What does a cron expression look like?

A standard cron expression has five fields separated by spaces: minute (0-59), hour (0-23), day of month (1-31), month (1-12), and day of week (0-7, where 0 and 7 are Sunday). Each field can be a number, a list (1,2,3), a range (1-5), a step (*/15), or a wildcard (*).

What's the difference between 5-field and 6-field cron?

5-field cron starts with the minute field and is the standard format used by Unix cron, GitHub Actions, and Vercel Cron. 6-field cron adds a leading seconds field and is used by Quartz scheduler, Spring, and some other systems. Pick the variant that matches the system you're scheduling on.

How do I run a job every X minutes?

Use a step value in the minute field: */5 for every 5 minutes, */15 for every 15 minutes. The first run is at minute 0 and then at each subsequent interval.

How do I write a cron expression for the last day of the month?

Standard cron has no 'last day' token. Some implementations (Quartz, AWS EventBridge) accept L for last. This page's parser accepts L too and flags it as an extension, so check that your scheduler supports it. With standard cron, run on days 28-31 and have the script check whether tomorrow is the 1st.

Does this work for GitHub Actions and Vercel Cron?

Yes. GitHub Actions and Vercel Cron both take standard 5-field cron and run it in UTC. Generate a 5-field expression and paste it into your workflow file or your Vercel cron configuration.

Can I get an expression for a specific timezone?

Cron expressions don't carry timezone information. They are interpreted in the timezone of the system running them, and most schedulers default to UTC. Set the timezone explicitly in your scheduler config, then write the expression in that timezone.

What does the 'next run times' preview mean?

Under the expression the page lists the next five times the job would run, counted from now, in your browser's timezone. Each time shows the year, and the heading names the timezone and its UTC offset. Most hosted schedulers run in UTC, so compare against that before you deploy.

Why is my cron expression invalid?

The most common causes are a value outside the allowed range (60 in the minute field), a missing or extra field, a range that runs backwards (5-1), or a name the field does not accept. The message under the expression names the field and the reason, and that field is outlined in red in the field-by-field list.

What happens to the schedule I type?

The description you type is sent to our server, which passes it to the Anthropic API to produce the result. The result is cached for 30 days under a hash of the description, so the same description returns the same answer. We keep per-IP rate-limit counters: 10 AI generations per hour and 50 per day, shared across the AI tools. Like every page on the site, this one loads page analytics (Vercel Analytics, Speed Insights and aside.so). Editing an expression, the field breakdown and the next run times are computed in your browser and are not sent.

08 · Guides

Cron guides

09 · Reference

Specs and further reading

These are the primary sources this tool follows. Where a specification defines the behaviour, we link the specification, not a summary of it.

  • POSIX crontab specification

    The Open Group. The normative definition of crontab behaviour that standard 5-field cron implementations follow.

  • crontab(5) manual page

    man7.org. Field-by-field reference for the crontab file format on Linux, including step and range syntax.

  • Vercel Cron Jobs

    Vercel. How 5-field expressions are interpreted by Vercel Cron, including its UTC-only timezone rule.

  • Events that trigger workflows

    GitHub. The schedule event, which accepts POSIX cron syntax and runs on UTC.

10 · Compare

How this compares to crontab.guru

Use crontab.guru when you already have a cron expression and want to read or edit it: it is a single-purpose editor for cron schedule expressions. Use the generate.now cron tool when you have the schedule in words and need the syntax. It turns "every weekday at 9am" into 0 9 * * 1-5 and lists the next five run times.

Read the full comparison→

11 · More

Tools that pair with Cron

Last updated .