How to Parse Cron Expressions

Updated: April 5, 2026

Cron expressions are the standard way to define recurring schedules in Unix, CI/CD pipelines, cloud functions, and task schedulers. While the syntax is compact and powerful, it can be hard to read at a glance. This guide explains the five-field format, common operators, and how to verify your schedules before deploying.

When You Need to Parse Cron

Understanding the Five Fields

A standard cron expression consists of five fields separated by spaces:

┌───────────── minute (0-59)
│ ┌─────────── hour (0-23)
│ │ ┌───────── day of month (1-31)
│ │ │ ┌─────── month (1-12)
│ │ │ │ ┌───── day of week (0-6, 0=Sunday)
│ │ │ │ │
* * * * *

Step 1: Learn the Operators

Each field supports four operators:

Step 2: Read the Expression Left to Right

Start with the minute field and work your way right. For example, 30 9 * * 1-5 reads as: “at minute 30, hour 9, any day of month, any month, Monday through Friday” — which means 9:30 AM on weekdays.

Step 3: Verify with Next Execution Times

The best way to confirm your interpretation is to see the actual upcoming execution times. Open the Cron Expression Parser and paste your expression to see the next 5–25 scheduled runs.

Common Cron Patterns

Tips

FAQ

What is a cron expression?

A cron expression is a string of five (or six) fields separated by spaces that defines a recurring schedule. The fields represent minute, hour, day of month, month, and day of week. Cron is used by Unix-like systems, CI/CD platforms, and task schedulers to automate recurring jobs.

What is the difference between 5-field and 6-field cron?

Standard cron uses 5 fields: minute, hour, day, month, and weekday. Some systems (like Spring and Quartz) add a sixth field for seconds at the beginning. Our parser supports both formats automatically.

How do I schedule a job to run every weekday?

Use 1-5 in the weekday field (the fifth field). For example, '0 9 * * 1-5' runs at 9:00 AM every Monday through Friday.

Can I use names instead of numbers for months and weekdays?

Some cron implementations support three-letter abbreviations like JAN-DEC and SUN-SAT. Our parser uses numeric values (0-6 for weekdays, 1-12 for months) for maximum compatibility across platforms.

Try It Now

Ready to parse your cron expression? Open the Cron Expression Parser — it works entirely in your browser with no sign-up required.