Converter tool

Cron Expression Builder and Explainer

Type a crontab schedule or build one field by field, read what it means in plain English, and check the next 10 run times in the time zone your server uses.

minute · hour · day of month · month · day of week. Add a sixth field in front for seconds, or use a macro such as @daily.

Start from a common schedule

Build it field by field

Minute */15
Everyfromto
Hour 9-17
Fromto
Day of month *

Matches every value (*).

Month *

Matches every value (*).

Day of week 1-5
Fromto

Use the zone of the machine that runs cron, which is often UTC on servers. It starts as this device's zone.

Empty means now. A date is read in the zone on the left, which helps when checking a clock-change weekend.

Preview

Output Preview

Every 15 minutes from 09:00 to 17:45, Monday to Friday.

Each field of the expression and what it matches
FieldWrittenMeansValues
Minute*/15every 15 minutes, starting at 00, 15, 30, 45
Hour9-17hours 09 to 179–17
Day of month*any day of the month1–31
Month*every monthJan–Dec
Day of week1-5Monday to FridayMon, Tue, Wed, Thu, Fri

Next 10 runs in UTC

Working out run times...

Daylight saving: a run time that does not exist on a given day, because the clocks jump past it, is skipped. A run time that happens twice, because the clocks go back, is listed once at its first occurrence. Cron daemons treat these hours in their own ways, so check your daemon’s manual (man 8 cron) for its rule.

Cron Expression Builder and Explainer

Operator: Abdulla Al Fahad. How tools are built and checked

A crontab schedule squeezes a calendar rule into five short fields, and one character can change its meaning completely. 0 9 * * 1 fires at 09:00 every Monday. 0 9 1 * 1 looks like "Mondays that fall on the 1st", yet cron runs it on the 1st of every month and on every Monday as well. This builder reads an expression back to you as a sentence, explains each field on its own row, and lists the next ten moments it fires in the time zone you choose, so a schedule can be checked before it goes into a server's crontab, a CI pipeline or a container's cron file.

It also works the other way round. Pick Every, Specific, Range or Step for each field and the expression is written for you; type in the expression box and the form follows. Mistakes are reported against the field that caused them, such as "Hour field: 24 is out of range", rather than as a generic syntax error.

Key features

  • Plain-English summary, such as "Every 15 minutes from 09:00 to 17:45, Monday to Friday"
  • Field-by-field table: what you wrote, what it means and the values it selects
  • Form with Every, Specific, Range and Step modes for each field, kept in step with the text
  • Next 10 run times in any IANA time zone, with the UTC offset and the same moment in UTC
  • Daylight-saving handling stated and shown: skipped run times are listed, repeated ones are marked
  • Optional start date, for checking a clock-change weekend or a run months away
  • Warnings for uneven steps, the day-of-month or day-of-week rule and days missing from short months
  • Detects schedules that can never run, such as 0 0 31 2 *
  • Reads a crontab file and offers each entry from a menu

Cron fields, macros and refused syntax

The five fields are, in order: minute (0-59), hour (0-23), day of month (1-31), month (1-12 or JAN-DEC) and day of week (0-7, where both 0 and 7 mean Sunday, or SUN-SAT). Inside a field you can write * for every value, a single value, a comma-separated list (1,15), a range (9-17) or a step after * or a range (*/15, 5-20/5). Month and weekday names are three letters in any case, and they work in lists and ranges, so MON-FRI is read the same as 1-5.

Six fields are read as seconds followed by the usual five. Standard crontab has no seconds field, so a six-field line only makes sense for a scheduler whose documentation describes one. The macros @yearly and @annually, @monthly, @weekly, @daily and @midnight, and @hourly are expanded to their five-field form and explained; @reboot is described, but because it fires when the cron daemon starts rather than at a clock time, it has no next runs.

Some syntax is refused on purpose rather than guessed: Quartz's ?, L, W and # ("last day", "nearest weekday", "third Friday"), a seven-field line with a year, a step after a single number such as 5/15 (crontab wants 5-59/15), and ranges that wrap around such as 22-2. Each refusal names the field and suggests the crontab spelling where there is one.

Open crontab .txt reads a plain-text crontab of up to 256 KB. Blank lines, comments and VAR=value lines are skipped; every other line contributes its schedule (the first five fields, or the macro) to a menu, with the command shown next to it for reference. The command is never run or interpreted.

How it works

The expression is split on spaces. Five parts are read as a standard crontab schedule, six as one with seconds in front, and a leading @ as a macro. Each comma-separated item is checked against its field's range, names are matched to numbers, and steps are expanded into the list of values they select. A day-of-week 7 is folded into 0, so 0 12 * * 7 and 0 12 * * 0 describe the same Sundays.

The day fields follow the rule used by classic cron implementations. If either day field starts with *, a day must match both fields, which in practice means the restricted one decides. If neither starts with *, a day that matches either field runs. The check is on the first character only: */2 in the day-of-month field counts as unrestricted, and 1-31 counts as restricted even though it covers every day. The notes under the summary say which case applies.

Next runs are found by walking the calendar of the chosen zone one day at a time from the start moment, testing the month and the day rule, then trying the selected hours, minutes and seconds in order. Each wall-clock time is turned into an exact instant with the browser's built-in time zone data. A time that the clocks jump over that day is skipped and listed under the table; a time that happens twice because the clocks go back is run once, at its first occurrence, and marked "first of two".

The walk stops after ten runs or after 400 years, the length of the Gregorian calendar cycle. A schedule with no run in that span cannot ever run, so "never runs" is a checked result, not a hunch. Dates that no month contains, such as the 31st of February, are caught before the walk starts and explained by name.

Typical uses

  • Checking a backup job's schedule before adding it to a production crontab
  • Explaining an inherited crontab entry such as 0 4 8-14 * 1 to a colleague
  • Confirming that a report scheduled on a UTC server lands inside office hours in another country
  • Seeing whether a nightly 02:30 job is affected by the spring clock change
  • Writing the cron string for a CI pipeline, a Kubernetes CronJob or a hosting panel
  • Turning a request such as "every weekday at quarter past nine" into 15 9 * * 1-5

Building one

  1. Type or paste an expression in the box, pick one of the common schedules, or open a crontab file and choose an entry.
  2. Read the summary sentence and the notes. If the sentence is not what you meant, the field table shows which part to change.
  3. Adjust fields with the form if that is easier than editing text. Tick the seconds option only if your scheduler accepts six fields.
  4. Set the time zone to the zone of the machine that runs the job, which on many servers is UTC rather than your own.
  5. Check the next ten runs. To look at a particular weekend or month, type a date in List runs after.
  6. Press Copy expression and paste it into your crontab or job definition.

Example

*/15 9-17 * * 1-5, zone UTC, runs listed after 2026-11-13 08:50

*/15 9-17 * * 1-5

Summary and the 10 runs listed (#, Date, Time and UTC offset columns)

Every 15 minutes from 09:00 to 17:45, Monday to Friday.

1   Fri 13 Nov 2026  09:00  +00:00 UTC
2   Fri 13 Nov 2026  09:15  +00:00 UTC
3   Fri 13 Nov 2026  09:30  +00:00 UTC
4   Fri 13 Nov 2026  09:45  +00:00 UTC
5   Fri 13 Nov 2026  10:00  +00:00 UTC
6   Fri 13 Nov 2026  10:15  +00:00 UTC
7   Fri 13 Nov 2026  10:30  +00:00 UTC
8   Fri 13 Nov 2026  10:45  +00:00 UTC
9   Fri 13 Nov 2026  11:00  +00:00 UTC
10  Fri 13 Nov 2026  11:15  +00:00 UTC

Tips for best results

  • Write the time zone down next to the entry. A schedule means nothing without it, and servers, containers and laptops rarely agree.
  • To run every 90 minutes, which one cron line cannot express, use two lines: 0 0-21/3 * * * and 30 1-22/3 * * *.
  • In a crontab command, an unescaped % ends the command and sends the rest to it as standard input, so date +%F has to be written date +\%F there.
  • Prefer numbers to names for months and weekdays when a schedule has to work in several schedulers; the builder writes numbers for that reason.
  • Use the List runs after field with the date of the next clock change in your zone to see what a nightly job will do that weekend.

Things to check before you rely on it

Restricting both day fields gives "either", not "both". 0 0 13 * 5 runs on every 13th and on every Friday, not on Friday the 13th. Crontab has no way to require both; the usual workaround is to schedule one field and test the other inside the command.

A day field that starts with * changes the rule. 0 0 */2 * 1 runs only on odd-numbered days that are also Mondays, because */2 counts as unrestricted. Some other schedulers read */2 as restricted and would run on either, so a line copied between systems can change behaviour.

Steps restart at the top of their field. */7 in the minute field runs at :00, :07 ... :56 and then :00 again, a gap of 4 minutes; */5 in the hour field leaves a 4-hour gap between 20:00 and midnight.

Day 31 is skipped in months that do not have one; cron does not move the run to the 30th. There is no last-day-of-month symbol in crontab, which is why L is refused here.

A job at 02:30 in a zone that springs forward at 02:00 has no 02:30 on that Sunday. This page lists such times as skipped. Real cron daemons differ: some run the missed job right after the jump, so check your daemon's manual page for its rule.

Common errors and how to fix them

"Hour field: 24 is out of range. Hours run from 0 to 23."
Midnight is hour 0. For a job at the end of the day, use 59 23 * * * or move it to 0 0 and accept that it belongs to the next date.
"Minute field: "5/15" puts a step after a single value."
Classic crontab only accepts a step after * or a range. Write 5-59/15 for every 15 minutes starting at minute 5; the message spells out the replacement for your values.
"This looks like a Quartz expression: "?" means "no specific value" there."
The expression came from a Quartz-style scheduler. Replacing each ? with * gives the same meaning in crontab terms; a seventh field (the year) has to be removed because crontab has no year.
"Six fields are read as second, minute, hour ..." followed by "paste only the schedule"
A whole crontab line was pasted, command included. Keep the first five fields, which the message repeats for you, and leave the command out.
"Hour field: the range "22-2" runs backwards."
Ranges do not wrap past midnight or past Saturday. Split them as suggested, for example 22-23,0-2 for the hours either side of midnight.
"This schedule never runs: February has no 31st day."
The day of month and the month cannot meet. Change one of them, or if you meant the last day of each month, see the pitfalls about day 31.

Best practices

  • Keep each schedule beside a one-line comment in the crontab saying what it does and in which zone it was planned.
  • Avoid scheduling important jobs between 01:00 and 03:00 local time in zones with daylight saving; UTC servers do not have that problem.
  • Stagger jobs that hit the same database or API instead of putting them all at minute 0.
  • After changing a schedule, compare the next runs here with what you expected before saving the crontab.

Clock changes, shown with Europe/London

Take 30 1 * * * with the zone set to Europe/London and List runs after set to 2026-03-27, which the page reads as midnight at the start of that day. The list opens with Fri 27 Mar and Sat 28 Mar at 01:30 (+00:00), then goes straight to Mon 30 Mar at 01:30 (+01:00). Under the table it reports that 01:30 on Sun 29 Mar 2026 was skipped because the clocks went from 01:00 to 02:00. That is the rule this page applies: a time that does not exist that day is left out.

In autumn, the same line listed after 2026-10-23 shows Fri 23 Oct, Sat 24 Oct and Sun 25 Oct at 01:30 (+01:00), with the Sunday run marked "first of two", then Mon 26 Oct at 01:30 (+00:00). The clocks go back at 02:00 BST on the 25th, so 01:30 comes round again an hour later at +00:00; this page counts the time once, at its first occurrence, and that second 01:30 is not listed. If your daemon behaves differently in either case, its manual page (man 8 cron) is the authority.

What the form can and cannot show

Each field in the form holds one shape at a time: every value, a set of specific values, one range, or one step across a range. Expressions that mix shapes inside a field, such as 1-5,9 in the hour field, are still parsed, described and scheduled, but that field appears as custom in the form and is edited in the text box. Choosing a mode replaces it with the new shape, seeded from the values it selected before.

Frequently asked questions

Does this run my command?

No. Only the schedule is read. Commands from an opened crontab file are displayed beside their entries and nothing else is done with them.

Which time zone does cron use?

The cron daemon uses the zone of the system it runs on unless it is configured otherwise; some implementations accept a CRON_TZ variable in the crontab, which your system's crontab(5) manual will mention if supported. Set the zone here to match, and the run list will be in that zone with the UTC equivalent alongside.

Why does 0 12 * * 7 mean Sunday?

Cron accepts both 0 and 7 for Sunday, so a week can be written as 0-6 starting on Sunday or as 1-7 starting on Monday. Both spellings give the same runs, and the field table lists the day as Sun either way.

Why does my server run the job an hour or two away from this list?

The zone setting is the usual cause. A server on UTC runs 0 9 * * * at 09:00 UTC, which is 10:00 in Paris in winter and 11:00 in summer. Set the zone box to the server's zone, or keep your own zone and read the Same moment in UTC column. If the difference shows up only on a clock-change weekend, it comes from the daemon's own rule for skipped and repeated hours.