Embed this tool on your site
<iframe src="https://devtoolbox.dedyn.io/tools/cron-parser" width="100%" height="600" frameborder="0" title="Cron Expression Parser"></iframe>

Cron Expression Parser

Parse and explain cron expressions. See when your cron job will run next and get a human-readable description.

 

Understanding Cron Syntax

A cron expression is a string of five fields separated by spaces. Cron is used on Unix-like systems to schedule recurring tasks, such as running scripts, backups, or maintenance jobs at specified intervals. Each field represents a unit of time and controls when the job executes.

Cron Field Reference

FieldAllowed ValuesSpecial Characters
Minute0-59* , - /
Hour0-23* , - /
Day of Month1-31* , - /
Month1-12 or JAN-DEC* , - /
Day of Week0-7 (0 and 7 = Sunday) or SUN-SAT* , - /

Special Characters

CharacterMeaningExample
*Any value (wildcard)* * * * * = every minute
,Value list separator1,15 * * * * = minute 1 and 15
-Range of values0 9-17 * * * = hours 9 through 17
/Step values*/10 * * * * = every 10 minutes

How Cron Scheduling Works

The cron daemon checks the cron expression once per minute. When all five fields match the current date and time, the associated command runs. The expression 30 2 * * 0 means "at 2:30 AM every Sunday." If you use both day-of-month and day-of-week fields (neither is *), the job runs when either condition is met.

Cron expressions are used in Unix crontab files, CI/CD pipelines (GitHub Actions, GitLab CI), task schedulers like Kubernetes CronJobs, AWS EventBridge, and cloud functions. Understanding cron syntax is essential for any developer or system administrator managing scheduled tasks.

Frequently Asked Questions

What is a cron expression?
A cron expression is a string of five or six fields separated by spaces that defines a schedule for recurring tasks. The fields represent minute, hour, day of month, month, and day of week. Cron is used in Unix/Linux systems and many scheduling services.
What does the asterisk (*) mean in cron?
The asterisk means 'every' or 'any value' for that field. For example, * in the minute field means 'every minute,' and * in the day-of-week field means 'every day.' It's the most common wildcard in cron expressions.
How do I schedule a cron job to run every 5 minutes?
Use the expression */5 * * * * — the /5 means 'every 5th value.' This pattern works for any interval: */15 for every 15 minutes, */2 for every 2 hours (in the hour field), etc.
Keyboard Shortcuts
Ctrl+Enter Run / Format
Ctrl+Shift+C Copy output
Ctrl+L Clear