Skip to content
GENERATORS

Cron Expression Generator & Explainer

Build and explain common cron schedules.

  • Free
  • No signup
  • Runs in your browser

This tool runs in your browser. The text you enter is processed on your device and is not sent to NHP Learning.

Cron Expression Generator

About Cron Expression Generator

A cron expression has five fields that set when a scheduled job runs: minute, hour, day of month, month and day of week. For example, 0 9 * * 1-5 means 9:00 every weekday. Cron is used by Linux servers, cPanel cron jobs, WordPress scheduled tasks via system cron and many hosting dashboards.

Choose a common schedule from the list or type your own expression. The tool checks the syntax, shows the values each field matches and lists the next five run times in your local time zone, so you can confirm the schedule before saving it on the server.

How to use Cron Expression Generator

  1. Pick a preset, or type five fields separated by spaces.
  2. Click Run Tool to validate the expression and see the explanation.
  3. Copy the expression into cPanel Cron Jobs, crontab or your scheduler.

Example

Input

0 9 * * 1-5

Output

Expression: 0 9 * * 1-5
Minute: 0
Hour: 9
Day of month: every value (*)
Month: every value (*)
Day of week: Mon, Tue, Wed, Thu, Fri

The tool also lists the next five run times in your own time zone, which are not shown here because they change.

Common uses

  • Setting up a daily backup, report or cleanup script in cPanel.
  • Checking an inherited cron line before you change it.
  • Learning the cron syntax with immediate feedback.

Privacy and safety

This tool runs in your browser. The text you enter is processed on your device and is not sent to NHP Learning.

Frequently asked questions

What do *, /, - and , mean?

An asterisk matches every value, a slash sets a step (*/15 is every 15 minutes), a dash is a range (1-5 is Monday to Friday) and a comma separates a list (0,30).

Does it support names such as MON or JAN?

No. Use numbers: 0 or 7 for Sunday and 1 to 12 for the months. Only the standard five-field format is supported, not six-field Quartz expressions.

What happens if both day of month and day of week are set?

Standard cron runs the job when either one matches. The preview follows the same rule.

Learn to build this yourself

Free tutorials and courses on NHP Learning cover PHP, JavaScript, SQL and WordPress, from the basics to real projects.