How to Generate a Cron Expression
If you don't want to write cron syntax by hand, use the cron expression generator above. The generator turns a plain-language schedule into a valid crontab line in seconds, so you never have to memorize the five-field format. Here is how to generate a cron expression step by step:
- Open the Cron Expression Generator tab. Switch to the "Cron Expression Generator" tab to reveal the visual builder. This is where the cron generator assembles the expression for you.
- Pick when the job should run. Use the Minute, Hour, Day, Month, and Weekday dropdowns to describe your schedule. As soon as you change a field, the cron expression creator regenerates the output live.
- Read the generated crontab line. The tool shows the generated cron expression (for example
0 9 * * 1-5) along with a plain-English description and the next scheduled runs, so you can confirm the schedule before you use it.
- Copy or share the result. Click Copy to grab the generated expression for your crontab, Kubernetes CronJob, or GitHub Actions workflow, or Share to send a link to the exact schedule.
Because this cron generator produces standard 5-field syntax, the expressions you generate work with Linux crontab -e, Kubernetes CronJobs, GitHub Actions, and most other schedulers. Need to generate a crontab for a less common interval? Build it once here, validate it with the checker, and reuse it anywhere.
Cron Expression FAQ. Common Questions Answered
What is a cron generator?
A cron generator (also called a cron expression generator or cron expression creator) is an online tool that builds a valid cron expression from a schedule you describe. Instead of writing the 5-field syntax by hand, you pick the minute, hour, day, month, and weekday, and the generator produces a ready-to-use crontab line you can copy into Linux crontab, Kubernetes CronJobs, or GitHub Actions.
How do I generate a cron expression?
Open the Cron Expression Generator tab above and choose your schedule using the Minute, Hour, Day, Month, and Weekday dropdowns. The cron generator instantly creates the matching expression (for example, 0 9 * * 1-5 for 9 AM on weekdays), shows a plain-English description, and lists the next run times. Click Copy to use the generated expression.
How do I generate a crontab entry?
Use the generator to generate the cron expression, then append the command you want to run. For example, the generated expression 0 2 * * * becomes the crontab entry 0 2 * * * /path/to/script.sh. Add it to your crontab by running crontab -e and pasting the line.
What is a cron expression?
A cron expression (also called crontab expression or cron job expression) is a string of 5 (or 6) fields that define a schedule for running tasks. The fields represent: minute, hour, day of month, month, and day of week. For example, 0 9 * * 1-5 means "at 9:00 AM, Monday through Friday". Use our cron expression translator above to convert any expression to plain English.
What is a cron checker?
A cron checker (also called cron validator or cron syntax checker) is an online tool that validates your cron expression syntax, checks for errors, and confirms your cron job will run when expected. Use a cron checker before deploying scheduled tasks to production to avoid scheduling mistakes. Our free cron checker above instantly validates any crontab expression.
What is a cron job translator?
A cron job translator is a tool that converts cron expressions into human-readable text. Instead of reading 0 9 * * 1-5 and trying to decode it manually, a cron job translator instantly tells you it means "At 9:00 AM, Monday through Friday". This helps developers understand and verify their cron schedules quickly.
How do I translate a cron expression to human-readable text?
Enter your cron expression in the translator tool at the top of this page. The cron expression translator will instantly convert it to plain English and show you exactly when your cron job will run next. This works for any valid crontab expression.
How do I check if my cron syntax is correct?
Use our cron syntax checker above. Simply paste your cron expression, and the tool will validate it, highlight any errors, and translate it to human-readable format. If your crontab expression is valid, you'll see the next scheduled run times.
What does * mean in cron?
The asterisk (*) in a cron expression means "any value" or "every". For example, * in the minute field means "every minute", and * in the day field means "every day".
How do I run a cron job every 5 minutes?
To run a cron job every 5 minutes, use the expression */5 * * * *. The */5 in the minute field means "every 5 minutes", and the asterisks mean "every hour, every day, every month, every day of the week".
How do I run a cron job at midnight every day?
To run a cron job at midnight (12:00 AM) every day, use 0 0 * * *. The first 0 is the minute (0), the second 0 is the hour (midnight), and the asterisks mean every day of every month.
How do I schedule a cron job for weekdays only?
To run a cron job only on weekdays (Monday-Friday), set the day of week field to 1-5. For example, 0 9 * * 1-5 runs at 9 AM every weekday. Days are numbered 0-6 where 0 is Sunday.
How do I run a cron job on the first day of every month?
To schedule a task for the first day of each month, use 0 0 1 * *. This runs at midnight on day 1 of every month. Change the time fields if you need a different time, for example 0 9 1 * * for 9 AM.
What is the difference between cron and crontab?
Cron is the daemon (background service) that executes scheduled tasks. Crontab is the file where you define those scheduled tasks using cron expressions. You edit your crontab with crontab -e command.
How do I run a cron job every hour?
To run a cron job every hour at the start of the hour, use 0 * * * *. The 0 in the minute field runs the job at minute 0, and the * in the hour field means every hour.
How do I run a cron job twice a day?
To run a job twice daily, specify two hours separated by a comma. For example, 0 9,18 * * * runs at 9 AM and 6 PM every day. You can also use 0 */12 * * * to run every 12 hours.
Does this tool work with Kubernetes CronJobs?
Yes! This tool uses standard 5-field cron syntax which is compatible with Linux crontab, Kubernetes CronJobs, GitHub Actions schedules, AWS EventBridge, and most scheduling systems.
What timezone does cron use?
Cron typically uses the system's local timezone. For Linux servers, check with timedatectl. Cloud services like GitHub Actions run in UTC. Always verify your server's timezone to avoid scheduling surprises.
How do I run a cron job every Sunday?
To run a job every Sunday, set the weekday field (last field) to 0. For example, 0 2 * * 0 runs every Sunday at 2 AM. Note: Some systems also accept 7 as Sunday.