Skip to content
MyToolkit.pro

Code & Data

Cron Expression Helper

Build or paste a 5-field cron expression, explain it and preview upcoming runs in UTC or a selected time zone. Everything is computed in this browser.

Private by design: no text is uploaded or stored.

Build a 5-field schedule

Classic Unix/Vixie cron: minute, hour, day of month, month, day of week.

0–59

0–23

1–31

1–12 or JAN

0–7 or MON

Cron rule: when both day fields are restricted, day of month OR day of week may match.

Use *, lists (1,15), ranges (1-5) and steps (*/15).

Calculate schedule in

Detected browser zone:

Try an example

Schedule

Plain-language description

Your schedule description will appear here.

Next run
—

Next runs:

#Selected time zoneUTC

Calendar view

How does a cron expression work?

A 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–6, where 0 and 7 both mean Sunday). Each field accepts a single value, a list (1,15), a range (9-17), a step (*/15) or an asterisk for “every”. Three-letter month and weekday names work too. When both day fields are restricted, a run fires if either matches — a classic cron quirk. Upcoming runs are calculated in UTC or the selected IANA time zone, including daylight-saving changes, entirely in your browser.

How to build a cron schedule and check when it fires

  1. Type the expression into the Cron expression field, or fill in the five boxes above it (Minute, Hour, Day, Month, Weekday). The boxes and the text field stay in sync: edit one and the other updates. A box you leave empty counts as *.
  2. Under Calculate schedule in, keep UTC or switch to "Local / time zone". Then pick an option from the Time zone list: Browser local time (the detected zone is shown under the list), Europe/Warsaw, Europe/London, America/New_York, America/Los_Angeles, Asia/Tokyo or Australia/Sydney.
  3. Use Next runs to show to list 3, 5 or 10 upcoming runs.
  4. Read the result panel. It shows a plain-language description, the next run time, a table of each run in the selected zone next to its UTC time, and a calendar view that groups runs by day.
  5. Copy expression copies only the five fields, ready to paste into a crontab. The Copy button in the result panel copies the expression, its description, the time zone and the list of upcoming runs, which is handy for a ticket or a code review.

The result updates as you type. If the expression can't be parsed, the panel clears and you see an error message instead.

Cron expression examples with their next runs

These runs were calculated from 8 November 2026, 10:00 UTC:

Expression Description shown First runs
0 9 * * 1-5 At 09:00, on Monday, Tuesday, Wednesday, Thursday, Friday. 2026-11-09 09:00, 2026-11-10 09:00, 2026-11-11 09:00 UTC
*/15 9-17 * * * At minutes 0, 15, 30, 45 past hours 9, 10, 11, 12, 13, 14, 15, 16, 17. 10:15, 10:30, 10:45, 11:00 UTC
30 2 1 * * At 02:30, on day-of-month 1. 2026-12-01 02:30, 2027-01-01 02:30 UTC
0 12 29 feb * At 12:00, on day-of-month 29, in February. 2028-02-29 12:00 UTC (the only run in range)

The same weekday job checked in America/New_York shows how far local time is from server time:

0 9 * * 1-5   (America/New_York)
2026-11-09 09:00 America/New_York  ->  2026-11-09 14:00 UTC
2026-11-10 09:00 America/New_York  ->  2026-11-10 14:00 UTC

If the server's clock runs in UTC and you want 09:00 in New York in November, the crontab line needs 0 14 * * 1-5. From the second Sunday of March (EDT) the same 09:00 is 13:00 UTC: the preview shows 14:00 UTC on 12 March 2027 and 13:00 UTC on 15 March 2027. A fixed UTC line therefore drifts by an hour for half the year. Either change it twice a year or set the job's time zone, if your scheduler supports that.

Daylight saving and the day-of-month / weekday rule

When you pick a time zone, runs are matched against that zone's wall-clock time, so clock changes show up in the preview. In Europe/London, 30 1 * * * has no run on 29 March 2026: the clocks jump from 01:00 to 02:00, so 01:30 never happens that day. On 25 October 2026 the opposite happens. 01:30 occurs twice, and the preview lists both (00:30 and 01:30 UTC). Cron daemons don't all handle these hours the same way, so for jobs that must run exactly once a day, use a time outside 01:00–03:00 or schedule in UTC.

The second trap is the day fields. If both day of month and day of week are restricted, a day matches when either field matches. 0 0 13 * fri runs at midnight on every Friday and on every 13th, not only on Friday the 13th. Its first runs are 13, 20 and 27 November 2026. Always check the runs table, not just the description.

Typical uses

  • Checking a line from a crontab, a Kubernetes CronJob or a CI scheduled pipeline before you commit it, by comparing the run table with what you meant.
  • Turning "weekdays at 9 in New York" into the UTC hours a server expects, then using the Timezone Converter to check other dates.
  • Checking a step in the day field. 0 3 */2 * * means days 1, 3, 5 … 31, and the count starts again on the 1st of each month. So after 31 December comes 1 January, two runs on consecutive days, while after a 30-day month the gap is two days (29 November, then 1 December).
  • Comparing a run time from logs with the schedule. If your logs store epoch seconds, convert them first with the Timestamp Converter.

What the parser accepts and what it rejects

The tool reads exactly five fields in classic Vixie order. These inputs are rejected with an error:

  • Six- or seven-field expressions with seconds or years (Quartz, Spring, some cloud schedulers).
  • Shortcuts such as @daily or @hourly. Write them out: 0 0 * * *, 0 * * * *. @reboot has no five-field equivalent.
  • Quartz-only symbols ?, L, W and #.
  • Ranges that wrap around, such as fri-mon. Write them as a list: fri,sat,sun,mon.
  • Out-of-range values, for example minute 60 or hour 24.

The preview looks about five years ahead and shows at most 10 runs. A rare schedule like 29 February may show fewer runs than you asked for. A schedule that can never fire (for example 0 0 31 feb *) is not reported as an error: Next run shows a dash and the table stays empty, and the text copied with Copy says "(none within the search horizon)".

Frequently asked questions

How do I run a cron job every 5 minutes?

Use `*/5 * * * *`. The step in the minute field gives minutes 0, 5, 10 … 55 of every hour.

Is 0 or 7 Sunday in cron?

Both, so `0 9 * * 7` and `0 9 * * 0` produce the same runs. The name `sun` means 0, which makes `mon-sun` a reversed range. To cover the whole week as a range, write `1-7` or just use `*`.

Does crontab use UTC or local time?

Classic cron uses the time zone of the machine or container it runs on, and that is often UTC on servers. Some schedulers let you set a zone per job, so check your platform's settings and preview the schedule in that zone.

Can I use month and weekday names in a cron expression?

Yes. Three-letter English names such as `jan`–`dec` and `sun`–`sat` work in either upper or lower case, and you can mix them with numbers in lists and ranges, such as `mon-fri`.

How do I run a cron job on the last day of the month?

Five-field cron has no `L`, so schedule it on days 28–31 (`0 0 28-31 * *`) and let the script exit unless tomorrow is the 1st, for example with `[ "$(date -d tomorrow +\%d)" = 01 ] && ...` in the crontab line (GNU date; `%` must be escaped in crontab).

All in Code & Data

JWT Decoder

Decode a JSON Web Token (JWT) in your browser. Read the header and payload claims, see the algorithm and claim count. Nothing is uploaded and the signature is not verified.

Code & Data In your browser

Hash Generator

Generate MD5, SHA-1, SHA-256 and SHA-512 hashes of any text in your browser. Digests update instantly and nothing is uploaded.

Code & Data In your browser

JSON Formatter

Format, validate and beautify JSON data privately in your browser.

Code & Data In your browser

Password Generator

Generate strong, random passwords in your browser. Choose the length and character sets, avoid ambiguous characters, and see the entropy in bits. Nothing is uploaded.

Code & Data In your browser

QR Code Generator

Generate a QR code from text or a URL, entirely in your browser. No upload, no external library, no tracking. Download as PNG.

Code & Data In your browser

Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 to text instantly in your browser.

Code & Data In your browser

What do you need?

Swipe up for the next one