Skip to content
SentrueFile

Cron expression tester

Paste a cron expression to see exactly what each field means and when the job will run next - in your server's time zone, before you deploy it.

  1. 1Select
  2. 2Configure
  3. 3Process
  4. 4Download

Everything is worked out in your browser; nothing you paste is uploaded.

Accepts Timestamps, dates, logsPaste a timestamp, a date, a log or a cron expression

Current Unix time: …

e.g. */15 9-17 * * MON-FRI or @daily

Minute
0, 15, 30, 45
Hour
9, 10, 11, 12, 13, 14, 15, 16, 17
Day of month
Every value
Month
Every value
Day of week
Mon, Tue, Wed, Thu, Fri

Next runs in UTC

No runs in the next eight years.

Times that don't exist because of a clock change are skipped.

Everything happens in your browser - nothing you paste is sent anywhere.

The five cron fields

A classic cron expression has five fields separated by spaces: minute (0-59), hour (0-23), day of the month (1-31), month (1-12 or JAN-DEC) and day of the week (0-7 or SUN-SAT, where both 0 and 7 mean Sunday). An asterisk means every value.

So 30 2 * * * runs at 02:30 every day, 0 9 * * MON-FRI at 09:00 on weekdays, and 0 0 1 */3 * at midnight on the first day of every third month.

Syntax you can use

The tester understands the standard syntax shared by cron on Linux and macOS and by most schedulers.

  • Lists: 1,15,30 means each of those values.
  • Ranges: 9-17 means every value from 9 to 17.
  • Steps: */15 means every 15th value; 10-50/20 means 10, 30 and 50.
  • Shortcuts: @hourly, @daily (or @midnight), @weekly, @monthly and @yearly (or @annually).

Common surprises

When both the day-of-month and day-of-week fields are set, most cron implementations run the job when either one matches, not both: 0 0 1 * MON runs on the first of the month and on every Monday. The tester follows that rule and says so.

Cron runs in the time zone of the machine or scheduler, which on servers is often UTC. Around daylight-saving changes some times are skipped or repeated, and implementations handle that differently; the tester skips times that don't exist, so check your scheduler's documentation for jobs set between 01:00 and 03:00. Special characters such as L, W and #, and six-field expressions with seconds, are extensions and aren't supported here.

How to test a cron expression

  1. Paste the five-field expression, such as */15 9-17 * * MON-FRI, or a shortcut such as @daily.
  2. Choose the time zone your scheduler runs in - often UTC on servers.
  3. Read the minutes, hours, days, months and weekdays the expression stands for.
  4. Check the next ten run times; if the expression has a mistake, you're told which field is wrong.

How your files stay private

The Timestamp Converter runs entirely in your browser and uses its built-in time-zone data. Timestamps, logs and schedules you paste stay in your device's memory - useful when logs contain addresses, user IDs or tokens. The page can only connect to this site and to Google Analytics, which counts visits and never receives what you paste. Close the tab and it's gone.

Limits

  • Dates from about 271,000 years before 1970 to 271,000 years after; nanoseconds are kept exact in the Unix columns
  • Time-zone rules come from your browser, so a very old browser may not know the newest changes
  • Cron uses the classic five fields; seconds, years and special characters such as L, W and # aren't supported
  • Log lines are searched for ISO 8601, access-log, syslog and Unix timestamps; other formats aren't recognised

Questions

Is this cron tester free?

It is: no fee, no account and no usage limit.

What does */5 * * * * mean?

Every five minutes, every hour of every day.

How do I run a job on weekdays only?

Put MON-FRI (or 1-5) in the last field, for example 0 9 * * MON-FRI.

Why does my job run more often than I expected?

If you set both a day of the month and a day of the week, cron runs on days matching either one.

Is my schedule sent anywhere?

No. Everything is worked out in your browser.

How does it know whether my number is seconds or milliseconds?

By its length: up to 11 digits is read as seconds, 12-14 as milliseconds, 15-17 as microseconds and longer as nanoseconds. You can also choose the unit yourself.