What is a Cron Expression?
A cron expression is a string that defines a time-based schedule using five fields: minute, hour, day of month, month, and day of week. Originally developed for the Unix cron daemon in the 1970s, cron expressions have become the universal standard for scheduling recurring tasks across operating systems, cloud platforms, and CI/CD tools. Each field accepts specific values, ranges, step values, and wildcards. For example, "0 9 * * 1-5" means "at 9:00 AM, Monday through Friday." Cron is used to schedule database backups, send automated reports, trigger CI/CD pipelines, clean up temporary files, and run periodic health checks. Understanding cron syntax is a fundamental skill for system administrators and backend developers.
How to Use This Tool
Enter a cron expression in the input field, and the tool instantly translates it into a human-readable English description. The field reference display below the input shows you how your expression maps to each cron field (minute, hour, day of month, month, day of week) along with their valid ranges. Click any of the common example badges to load pre-built expressions for typical schedules like "every minute", "weekdays at 9 AM", or "first day of month". The parsed description updates as you type, giving you real-time feedback while you build or modify your cron schedule.
Common Use Cases
- Verifying cron schedules before deploying them to crontab, GitHub Actions, or AWS CloudWatch
- Debugging existing cron expressions that are not firing at the expected times
- Learning cron syntax by experimenting with different field values and seeing instant descriptions
- Documenting scheduled tasks by generating plain English descriptions for team wikis and runbooks
Why Use a Client-Side Tool?
This cron parser runs entirely in your browser with no server interaction. Your cron expressions, which may reveal details about your infrastructure scheduling and operational patterns, are never transmitted externally. The parsing happens instantly as you type, with no API calls or network latency. The tool works offline once loaded, making it available whenever you need to verify a schedule during development, deployment, or on-call troubleshooting.
Frequently Asked Questions
What do the special characters in cron expressions mean?
The asterisk (*) means "every" value in that field. The slash (/) defines step values, so */15 in the minute field means every 15 minutes. The hyphen (-) specifies a range, like 1-5 for Monday through Friday in the day-of-week field. The comma (,) creates a list of specific values, like 1,15 in the day-of-month field for the 1st and 15th of each month.
What is the difference between 5-field and 6-field cron expressions?
Standard Unix cron uses 5 fields: minute, hour, day of month, month, and day of week. Some systems like Quartz Scheduler and Spring add a sixth field for seconds at the beginning, and some also support a seventh field for year. This tool parses the standard 5-field format, which is compatible with crontab, GitHub Actions, AWS CloudWatch, and most job scheduling systems.
How do I schedule a job to run on specific weekdays?
Use the day-of-week field (the fifth field) with values 0 through 7, where both 0 and 7 represent Sunday. Use 1-5 for Monday through Friday, or specify individual days with commas like 1,3,5 for Monday, Wednesday, and Friday. For example, "0 9 * * 1-5" runs at 9:00 AM on weekdays, and "0 8 * * 6" runs at 8:00 AM every Saturday.