Cron Expression Generator

Pick how often a job should run and this cron expression generator writes the five-field cron line for you. You can also paste any existing expression to have it explained in plain English, checked for mistakes, and tested with the next five run times in your local time zone.

Build a schedule
Steps that divide 60 evenly keep the gaps equal across the hour.
Cron uses the time zone of the server that runs it.
On these days
Format: minute hour day-of-month month day-of-week. Supports * , - / names like MON or JAN, and @daily-style shortcuts.
Try an example
Ready.
In plain English

Next 5 run times

    Runs entirely in your browser. Nothing you enter is uploaded or stored.

    Rate this tool

    Be the first to rate this tool

    How to use the Cron Expression Generator

    1. Choose Minutes, Hourly, Daily, Weekly or Monthly and set the interval, time or days.
    2. The cron expression box updates instantly. You can also edit it or paste any expression you already have.
    3. Read the plain-English explanation and check the next five run times, shown in your local time.
    4. Click Copy and paste the expression into your crontab, CI pipeline or scheduler.

    How a cron expression is built

    Cron is the time-based job scheduler found on Linux, macOS and most Unix systems, and its syntax is reused by GitHub Actions, Kubernetes CronJobs, many cloud schedulers and job libraries. 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) and day of week (0–6 or SUN–SAT, where 7 also means Sunday). The job runs at every minute where all the fields match. So 0 9 * * 1-5 means minute 0 of hour 9, any day of the month, any month, Monday through Friday: 9:00 AM on weekdays.

    Special characters

    • * (asterisk): every value. * in the hour field means every hour.
    • , (comma): a list. 0,30 in the minute field runs at :00 and :30.
    • - (hyphen): a range. 9-17 in the hour field covers 9 AM through 5 PM.
    • / (slash): a step. */15 in the minute field means every 15 minutes; 10-50/20 means 10, 30 and 50.
    • Shortcuts: @hourly, @daily (or @midnight), @weekly, @monthly and @yearly (or @annually) are accepted and expanded to their five-field form.

    The day-of-month and day-of-week rule

    One cron rule surprises almost everyone. When both day fields are restricted, for example 0 0 1 * MON, the job runs when either one matches: on the 1st of every month and on every Monday. When one of them is *, only the other one counts. This tool follows that classic Vixie cron behavior in both the explanation and the run-time preview, and says “or” in the description so the result is not a surprise in production.

    How the next run times are calculated

    The preview does not guess. It parses each field into the exact set of allowed values, then walks forward minute by minute through matching days from the current time and lists the first five times that fit. Times are shown in your browser’s time zone, while a real server uses its own, often UTC, so adjust the hour if the two differ. On days when clocks change for daylight saving time, a time that does not exist locally is skipped. If an expression can never fire, such as February 30, the tool says so instead of showing nothing. Seconds and year fields from Quartz or Spring schedulers are not part of standard cron and are reported as errors. Need to tidy a config file next? Try the JSON formatter or encode a secret with the Base64 encoder.

    Examples

    • */5 * * * * → every 5 minutes
    • 0 9 * * 1-5 → at 9:00 AM, Monday through Friday
    • 30 2 * * 0 → at 2:30 AM on Sunday
    • 0 0 1 * * → at midnight on day 1 of every month
    • */15 9-17 * * * → every 15 minutes between 9:00 AM and 5:59 PM
    • 0 12 1 1,7 * → at noon on January 1 and July 1

    Cron Expression Generator FAQ

    What does * * * * * mean in cron?

    Five asterisks mean “every minute of every hour of every day”. The job runs once a minute, which is the most frequent schedule standard cron supports.

    How do I run a cron job every 5 minutes?

    Use */5 * * * *. The */5 in the minute field means every fifth minute starting at 0, so it runs at :00, :05, :10 and so on.

    Is Sunday 0 or 7 in cron?

    Both. Standard cron accepts 0 and 7 for Sunday, and 1 through 6 for Monday through Saturday. You can also use names like SUN, MON and FRI.

    Which time zone does cron use?

    Cron uses the time zone of the machine or service that runs it, which is often UTC on servers and cloud schedulers. The preview here uses your device’s time zone, so convert if they differ.

    Why does my expression with 6 fields show an error?

    Six or seven fields usually come from Quartz or Spring, which add seconds and sometimes a year. Standard cron, crontab and most CI schedulers use exactly five fields, so remove the seconds field.

    What does 0 0 1 * MON do?

    Because both day fields are set, it runs at midnight on the 1st of each month and also at midnight every Monday. To run only on Mondays, put * in the day-of-month field.

    Related tools

    All Developer Tools
    JSON Formatter & ValidatorBeautify, minify and validate JSON with clear error messages.Base64 Encode / DecodeEncode or decode Base64 for text and files, UTF-8 safe.Compare Two ListsFind differences, common items, and unique entries between two text lists.Diff CheckerCompare two texts and see every added, removed and changed line, with word or character highlights, side by side or unified.HEX to RGB ConverterConvert HEX color codes to RGB, RGBA and HSL and back, with a live swatch, color picker, alpha control and copy-ready CSS.JSON to CSVConvert a JSON array to CSV with nested objects flattened into dot-named columns, comma, semicolon or tab delimiters and a live preview.JSON to ExcelConvert a JSON array to a real Excel .xlsx spreadsheet or CSV, with nested objects flattened into dot-named columns and a live preview.PX to REM ConverterConvert pixels (px) to rem and rem to px with custom root font size and CSS table.Regex TesterTest JavaScript regular expressions live: highlighted matches, capture and named groups, indices, flags and a replace preview.Unix Timestamp ConverterSee the current Unix epoch time live, convert timestamps in seconds, milliseconds or microseconds to dates, and dates back to timestamps.URL Decode & EncodeDecode or encode URLs and query strings (percent-encoding), with + as space option and a query parameter table.Etsy Fee and Profit CalculatorCalculate Etsy listing, transaction, payment, and offsite ad fees plus net profit.Tone GeneratorPlay a pure tone at any frequency from 1 Hz to 20,000 Hz with sine, square, sawtooth or triangle waves.