Utility Tools logo

UtilityBox – Free Online Utility Tools

Smart tools for daily tasks — no sign-up needed

Cron Generator

Build cron expressions for scheduled tasks.

Cron Expression Generator — Build & Test Linux Crontab Schedules

The UtilityBox cron expression generator builds standard 5-field cron schedules without memorising the syntax. Pick a preset tab — Minutes, Hourly, Daily, Weekly, Monthly or Yearly — fill in a few values and click Generate, or type any expression into the Expression box and click Next runs. The tool lists the next 5, 10, 15 or 20 times the schedule will fire from the date and time you choose, so you can check a crontab line, CI schedule or cloud job before deploying it. Everything runs in your browser — no sign-up and nothing sent to a server.

How to Use the Cron Expression Generator

  1. Pick a preset tab — Minutes, Hourly, Daily, Weekly, Monthly or Yearly — and fill in its values (for example, Weekly: every Monday at 09 : 30).
  2. Click Generate. The cron expression appears in the Expression box and the next run times are listed below it.
  3. To check an existing schedule, type or paste any 5-field expression into Expression and click Next runs.
  4. Adjust Start from (date, hour and minute — it defaults to now) and choose how many runs to Show: 5, 10, 15 or 20.
  5. Select the expression in the Expression box and copy it into your crontab, CI config or scheduler.

Key Features

  • Six preset tabs — Minutes, Hourly, Daily, Weekly, Monthly and Yearly — that build the expression for you.
  • Editable Expression box that accepts *, ?, lists (1,15), ranges (9-17) and steps (*/5).
  • Next run preview: 5, 10, 15 or 20 upcoming times with the weekday, calculated from your chosen Start from date and time.
  • Day of week accepts 0–7 (both 0 and 7 mean Sunday); when both day-of-month and day-of-week are set, either one matching triggers a run, as in standard cron.
  • 6- and 7-field (Quartz-style) expressions are accepted for preview — the leading seconds field is ignored.
  • Malformed expressions show an error message in the status line.
  • Browser-local and free — no account and no sign-up.

Common Use Cases

  • Server backup scheduling: Schedule a nightly backup with the Daily tab: every 1 day(s) at 02 : 00 produces 0 2 */1 * *, which fires at 2:00 AM every day (the same as 0 2 * * *). Check the next runs list, then add the line to your crontab.
  • CI/CD pipeline triggers: Type 0 8 * * 1-5 into Expression and click Next runs to confirm it fires Monday to Friday at 08:00. The preview uses your browser's local time, while GitHub Actions schedules run in UTC — adjust the hour if your timezone differs.
  • Cloud jobs and reports: Use the Hourly tab with every 6 hour(s) at minute 0 to get 0 */6 * * *, or type 30 9 1,15 * * for a report at 09:30 on the 1st and 15th of each month. The next-run preview shows the exact dates before you save the job.
  • Debugging existing cron expressions: Paste a cron string from a legacy config file into Expression and click Next runs to see exactly when it will fire — useful when auditing inherited infrastructure or tracking down a job that runs at unexpected times.

Frequently Asked Questions

What is a cron expression generator?

A cron expression generator helps you build valid cron syntax without memorising field order or special characters. In this tool you pick a preset (Minutes, Hourly, Daily, Weekly, Monthly or Yearly), click Generate, and it writes the expression and previews the next scheduled run times so you can verify the schedule before deploying it to a Linux server, CI pipeline or cloud scheduler.

What do the five fields in a cron expression mean?

Standard cron syntax uses five space-separated fields: (1) minute (0–59), (2) hour (0–23), (3) day of month (1–31), (4) month (1–12) and (5) day of week (0–7, where 0 and 7 are both Sunday). For example, 30 9 * * 1 means 09:30 every Monday. This tool accepts numbers only — month and weekday names such as JAN or MON are not supported.

What special characters can I use in a cron expression?

* means every value of the field (? is accepted as a synonym); a comma separates a list, e.g. 1,15,30 in the minute field fires three times per hour; a hyphen defines an inclusive range, e.g. 9-17 in the hour field means every hour from 9 AM to 5 PM; a slash sets a step, e.g. */5 in the minute field means every 5 minutes. Special characters such as L, W and # are not supported.

Can the cron generator show next run times?

Yes. After you click Generate or Next runs, the tool lists the next 5, 10, 15 or 20 run times (choose with Show), starting from the Start from date and time, which defaults to now. For example, 0 2 1,15 * * shows runs at 02:00 on the 1st and 15th of every month.

Which timezone are the next run times shown in?

Next run times are calculated in your browser's local timezone. Linux cron uses the server's timezone, and services such as GitHub Actions run schedules in UTC, so convert the hour if your server or service uses a different timezone.

How is a Linux cron expression different from AWS or GitHub Actions schedules?

Linux crontab and GitHub Actions use the standard 5-field format (GitHub Actions evaluates it in UTC). AWS EventBridge uses its own 6-field cron format with an extra year field and different rules for the day fields. This generator produces standard 5-field expressions; check your platform's documentation for its extensions.

Does the cron generator validate expressions?

Partly. When you click Generate or Next runs, malformed input — letters, empty list items, reversed ranges such as 17-9, or the wrong number of fields — shows an error message. Numbers outside a field's range are clamped to the nearest valid value (for example, minute 60 is treated as 59) rather than rejected, so double-check your values.

Does it support 6-field cron with a seconds field?

You can paste 6- or 7-field expressions (Quartz or Spring style) to preview them: the tool ignores the leading seconds field — and for 7 fields the trailing year — and evaluates the remaining five. Generated expressions are always standard 5-field; if your platform needs seconds, prepend them yourself.

Is this cron job generator free and private?

Yes. It is free with no sign-up and no account. Expressions are built and evaluated in your browser with local JavaScript and are not sent to any server.