Cron Job Generator

Frequently Asked Questions

What is a cron job?

A cron job is a scheduled task that runs automatically at specified intervals on Unix-like systems (Linux, macOS). The name comes from the word "chronos" (Greek for time). Cron jobs are defined by a cron expression consisting of 5 fields: minute, hour, day of month, month, and day of week. They're commonly used for automating system maintenance, backups, report generation, data processing, and any recurring task.

How do I read a cron expression?

A cron expression has 5 parts separated by spaces: MINUTE HOUR DAY MONTH WEEKDAY. For example, "0 9 * * 1-5" means "at 9:00 AM (minute 0, hour 9) on weekdays (1-5 = Monday-Friday) every day (*) and every month (*)". The special character * means "every", so * * * * * runs every minute. Use our generator to see plain English explanations for any cron expression.

What are the special characters in cron?

The main special characters are: * (asterisk) means "every" - all possible values; / (slash) means "every X units" - */5 means "every 5"; - (dash) means a range - 9-17 means "9 through 17"; , (comma) means a list - 1,3,5 means "1, 3, and 5"; ? (question mark) means "no specific value" used when you don't want to specify both day and weekday. For example, 0 0 1 * ? runs on the 1st of every month regardless of which day it falls on.

How do I schedule a cron job to run daily at a specific time?

To run daily at a specific time, set the minute and hour to your desired time, and use * for day, month, and weekday. For example, "30 14 * * *" runs at 2:30 PM daily (14:30). "0 9 * * *" runs at 9:00 AM daily. "0 0 * * *" runs at midnight every day.

How do I schedule a job to run only on weekdays?

To run on weekdays only, set the day of week field to 1-5 (Monday through Friday). For example, "0 9 * * 1-5" runs at 9:00 AM on weekdays only. "0 */4 * * 1-5" runs every 4 hours on weekdays. Note that if you specify weekday, you typically use ? for day of month to avoid conflicts.

What's the difference between day of month and day of week?

Day of month (1-31) specifies which date in the month to run (e.g., 15 for the 15th day). Day of week (0-6, where 0=Sunday) specifies which day of the week to run (e.g., 1 for Monday). If you specify both, cron runs when EITHER condition is true. To avoid confusion, use ? (no specific value) for one field when specifying the other. For example, "0 0 15 * ?" runs on the 15th of every month, while "0 0 ? * 1" runs every Monday.

How do I run a cron job every X minutes or hours?

Use the interval syntax with / followed by the number. For minutes: "*/5 * * * *" runs every 5 minutes. "*/15 * * * *" runs every 15 minutes. For hours: "0 */2 * * *" runs every 2 hours at the top of the hour. "0 */6 * * *" runs every 6 hours (midnight, 6 AM, noon, 6 PM).

Can I use this cron generator for my scheduling system?

Yes! Standard cron expressions are supported by most scheduling systems including Linux cron, Kubernetes CronJobs, Jenkins, AWS EventBridge Scheduler, Google Cloud Scheduler, Azure Functions, GitHub Actions workflows, and many CI/CD platforms. The tool generates standard 5-field cron expressions that work across all these systems. Some platforms support 6-field cron with seconds at the beginning, which you can adapt by adding a second field (usually 0).

Is my schedule data safe when using this tool?

Absolutely. All cron generation happens entirely in your browser using JavaScript. Your schedules and configurations are never sent to any server, making it safe to plan sensitive automation tasks, proprietary systems, or any scheduling requirements. Nothing is stored or transmitted.

About Cron Job Generator

Cron Job Generator is an essential tool for DevOps engineers, system administrators, and developers who need to schedule automated tasks on Unix-like systems. Cron is the time-based job scheduler in Linux, Unix, and macOS that runs commands or scripts automatically at specified times. Cron expressions can be cryptic and difficult to write correctly—a single mistake can cause your job to run at the wrong time or not at all. Our visual cron builder eliminates the guesswork by letting you configure each field (minute, hour, day of month, month, day of week) using intuitive dropdowns and input fields. The five fields of a cron expression are minute (0-59), hour (0-23), day of month (1-31), month (1-12), and day of week (0-6, where 0=Sunday). Each field can be set to every possible value (*) for "every", a specific number (like 9 for 9 AM), a range (like 9-17 for 9 AM to 5 PM), an interval (like */5 for every 5 units), or a list of values (like 1,3,5 for 1, 3, and 5). Quick presets get you started instantly—choose from "Every Minute", "Every Hour", "Daily (Midnight)", "Weekly (Sunday)", "Weekdays", "Every 6 Hours", "Every Monday", "Every 5 Minutes", "Weekdays 9 AM", "1st of Month", and "Yearly (Jan 1)". As you configure your schedule, the tool displays the complete cron expression in real-time and provides a human-readable explanation like "Run at 9:00 AM, every weekday, every month" so you know exactly what the schedule does. The syntax reference guide shows allowed values for each field and explains special characters: * (every), / (interval), - (range), , (list), and ? (no specific value). Copy your generated cron expression with one click to paste into crontab files, Jenkins configurations, Kubernetes CronJobs, AWS EventBridge Scheduler, GitHub Actions workflows, Google Cloud Scheduler, Azure Functions, or any cron-compatible scheduling system. All cron generation happens entirely in your browser—your schedules are never sent to any server, making it safe to plan sensitive automation tasks, proprietary system schedules, or any scheduling requirements. Perfect for DevOps engineers configuring server automation, system administrators managing cron jobs, developers setting up CI/CD pipelines, backend engineers scheduling batch processing, and anyone automating recurring tasks on Unix-like systems. Use this tool to quickly generate correct cron expressions, ensuring your scheduled tasks run at the right time every time.

Unlike many online tools that require account creation or have hidden costs, Cron Job Generator is completely free and requires no signup. Simply open the tool and start using it immediately. Your privacy is our priority - all processing happens locally in your browser, and your data is never stored on our servers.

Whether you're a professional, student, or casual user, Cron Job Generator is designed to be intuitive and efficient. Our tool works seamlessly on desktop computers, tablets, and mobile devices, ensuring you can get your tasks done wherever you are.