Cron Expression Generator

Build cron schedule expressions and see what they mean in plain English.

How to Use Cron Expression Generator

  1. Open each tab (minutes, hours, days, months, weekdays) and pick a preset.
  2. For anything else, type your own value in the custom box under the presets, such as 30 for minute or 2 for hour.
  3. Check the plain-English description.
  4. Copy the expression.

The five fields

A cron expression is five values separated by spaces: minute (0 to 59), hour (0 to 23), day of the month (1 to 31), month (1 to 12) and day of the week (0 to 6, where 0 is Sunday). * means every value, 1-5 is a range, 1,15 is a list and */10 means every tenth. So 30 2 * * * runs at 02:30 every day, 0 9 * * 1-5 runs at 09:00 on weekdays and 0 0 1 * * runs at midnight on the first of each month.

The custom box checks your value as you type and turns red if cron wouldn't accept it.

Things that catch people out

Cron uses the server's clock, not yours. Many cloud servers and GitHub Actions run on UTC, so 0 9 * * * there is 09:00 UTC, which is 14:30 in India. If you set both a day of the month and a day of the week, standard cron runs the job when either one matches, not only when both do; the description points this out.

This tool writes the standard five-field format. Quartz and Spring use six or seven fields with seconds, and AWS EventBridge has its own six-field format with a ? character, so those need adjusting.

Key Features & Practical Use Cases

  • Scheduling a backup, report or cleanup script in crontab.
  • Writing the schedule line for GitHub Actions, Kubernetes CronJobs or a hosting platform's cron jobs.
  • Checking what an existing expression like */15 9-17 * * 1-5 actually does.
  • Avoiding the classic mistake of a job that runs every minute instead of once an hour.

Frequently Asked Questions

How do I run a job every 5 minutes?

Use */5 * * * *.

How do I run a job every day at a set time?

Put the minute and hour first, for example 0 18 * * * for 6 PM daily, in the server's time zone.

Is Sunday 0 or 7?

Both work in most cron versions. 0 is the most widely supported.

Does this run my jobs?

No. It writes the expression. You add it to crontab, your CI workflow or your host's scheduler.

About OneClickly

OneClickly is a set of 119 free tools for PDFs, images, text, everyday math and code. They run in your browser, so the files and text you work with stay on your device.

Related Tools

  • Password Generator - Create strong, secure passwords with custom lengths and character inclusion options.
  • UUID / GUID Generator - Generate random UUIDv4 and GUID identifiers in single or batch modes.
  • User Agent Parser - See the browser, OS, engine and device behind any user agent string.
  • Meta Tag Generator - Create SEO, Open Graph and X card meta tags to paste into your page.
  • Chmod Calculator - Work out Linux file permissions as a number like 755 or as rwx letters.
  • Color Picker & Converter - Pick a colour or type it as HEX, RGB or HSL and convert it to every other format.