Cron Expression Generator
Build cron expressions visually โ pick the schedule you want and get the cron syntax plus a plain-English explanation. No more guessing asterisks.
Select the timing for each field โ minute, hour, day of month, month, and day of week โ or tap a preset to load a common schedule. Your cron expression updates live.
What is a Cron Expression Generator?
A cron expression generator is a visual tool that helps you build cron syntax โ the scheduling format used by Unix, Linux, macOS, and most server environments to run tasks automatically. Instead of memorising asterisks and number ranges, you pick the schedule from dropdowns or tap a preset, and the tool writes the correct expression for you. It's a time-saver for developers, sysadmins, DevOps engineers, and anyone who sets up scheduled jobs, cron tabs, GitHub Actions, CI/CD pipelines, or cloud functions.
This generator builds standard five-field cron expressions (minute, hour, day of month, month, day of week), shows a plain-English explanation of what the expression does, and previews the next five run times so you can verify the schedule before deploying it.
What is a Cron Expression?
A cron expression is a string of five fields separated by spaces. Each field controls one dimension of the schedule โ when the task runs within a minute, an hour, a day, a month, and a week.
โ โโโโโโโโโโโโ hour (0โ23)
โ โ โโโโโโโโโโ day of month (1โ31)
โ โ โ โโโโโโโโ month (1โ12)
โ โ โ โ โโโโโโ day of week (0โ6, Sun=0)
โ โ โ โ โ
* * * * *
Examples:
0 9 * * 1-5 โ 9:00 AM, MonโFri
*/15 * * * * โ every 15 minutes
0 0 1 * * โ midnight on the 1st of each month
How to Use This Generator
Tap a preset button for common schedules โ every minute, hourly, daily at midnight, weekdays at 9 AM, and more. Or use the five dropdown fields to set each dimension manually. The cron expression, its plain-English explanation, and the next five UTC run times all update live. When it looks right, hit Copy and paste the expression into your crontab, CI config, or cloud scheduler.
You can also paste an existing cron expression into the input field to decode it โ the tool will fill in the dropdowns and show the explanation and next runs for that expression.
Where Cron Expressions Are Used
- Linux/Unix crontab: the original cron scheduler built into every Unix-like system.
- CI/CD pipelines: GitHub Actions, GitLab CI, Jenkins, CircleCI all use cron syntax for scheduled workflows.
- Cloud schedulers: AWS EventBridge, Google Cloud Scheduler, Azure Functions โ all accept cron expressions.
- Monitoring and alerts: Datadog, PagerDuty, and similar tools use cron to schedule checks.
- Backups and maintenance: database dumps, log rotation, cache clearing โ anything recurring.
Common Cron Expressions
Here are the schedules developers use most often, all available as one-tap presets in the generator above: every minute (* * * * *), every 5 minutes (*/5 * * * *), every hour on the hour (0 * * * *), daily at midnight (0 0 * * *), weekdays at 9 AM (0 9 * * 1-5), weekly on Sunday midnight (0 0 * * 0), first of every month (0 0 1 * *), and yearly on January 1st (0 0 1 1 *).
Special Characters Explained
The asterisk (*) means "every" โ every minute, every hour, every day. A comma (,) lists specific values, like 1,15 for the 1st and 15th. A hyphen (-) defines a range, like 1-5 for Monday through Friday. A slash (*/n) means "every n intervals," so */15 in the minute field means every 15 minutes. These can be combined: 0 9-17 * * 1-5 means every hour from 9 AM to 5 PM on weekdays.
5-Field vs 6-Field Cron
Standard Unix cron uses five fields (minute through day-of-week). Some systems โ notably AWS and some job schedulers โ add a sixth field for seconds or year. This generator builds standard five-field expressions, which are compatible with the widest range of systems. If your system requires a seconds field, prepend 0 to the expression; if it requires a year field, append *.
Frequently Asked Questions
Explore All NerdyTools By Categories
Find the right tool for any task โ free, fast, and no sign-up required
