logo
logo

Cron Parser

Parse and understand cron expressions. Convert cron syntax to human-readable descriptions.

Cron Parser

Parse and understand cron expressions

MIN
0-59
HOUR
0-23
DAY
1-31
MONTH
1-12
WEEKDAY
0-6
Runs at 9:00 AM on Monday to Friday
FieldValueMeaning
Minute00
Hour99
Day*every day
Month*every month
Weekday1-5Monday to Friday

Cron Parser - Decode & Explain Cron Expressions

Parse and understand cron expressions instantly. Our cron parser decodes schedule syntax, shows upcoming execution times, and explains each field in plain English—essential for DevOps engineers, system administrators, and developers working with scheduled tasks.

What Is a Cron Expression?

A cron expression is a string of five (or six) fields that define a schedule for automated task execution. Originating from Unix systems, cron scheduling is now used across platforms for job scheduling.

Standard Format:

* * * * *
│ │ │ │ └── Day of Week (0-6, Sun-Sat)
│ │ │ └──── Month (1-12)
│ │ └────── Day of Month (1-31)
│ └──────── Hour (0-23)
└────────── Minute (0-59)

How to Use

  1. Enter cron expression - Paste your schedule (e.g., 0 9 * * 1-5)
  2. Click "Parse" - Analyze the expression
  3. View explanation - See human-readable description
  4. Check schedule - View next execution times
  5. Validate syntax - Identify any errors

Key Features

  • Plain English explanation - Understand any expression
  • Next run times - See upcoming executions
  • Syntax validation - Catch errors immediately
  • Field breakdown - Understand each component
  • Multiple formats - Standard and extended support
  • Time zone aware - Specify execution timezone

Cron Field Values

Complete Field Reference

FieldRangeAllowed ValuesSpecial Characters
Minute0-590-59* , - /
Hour0-230-23* , - /
Day of Month1-311-31* , - / ? L W
Month1-121-12 or JAN-DEC* , - /
Day of Week0-60-6 or SUN-SAT* , - / ? L #

Special Characters

CharacterMeaningExample
*Any value* * * * * (every minute)
,Multiple values1,15 * * * * (min 1 and 15)
-Range1-5 * * * * (min 1 through 5)
/Step values*/15 * * * * (every 15 min)
?No specific valueDay of month/week conflict resolution
LLastL * * * * (last day of month)
WWeekday15W * * * (nearest weekday to 15th)
#Nth occurrence5#2 (2nd Friday of month)

Common Cron Examples

ExpressionDescription
* * * * *Every minute
0 * * * *Every hour (on the hour)
0 0 * * *Midnight every day
0 9 * * 1-59 AM on weekdays
0 0 1 * *Midnight on 1st of month
30 4 1,15 * *4:30 AM on 1st and 15th
0 22 * * 1-510 PM on weekdays
0 */2 * * *Every 2 hours
0 0 * * 0Midnight every Sunday
*/10 * * * *Every 10 minutes

Use Cases

DevOps & Automation

  • CI/CD pipelines - Scheduled builds
  • Database backups - Regular backup jobs
  • Log rotation - Cleanup tasks
  • System maintenance - Automated updates
  • Monitoring checks - Periodic health checks

Business Applications

  • Report generation - Scheduled reports
  • Email campaigns - Timed newsletters
  • Data sync - Regular data updates
  • Billing - Recurring charges
  • Notifications - Scheduled reminders

Development

  • Task queues - Background job scheduling
  • Cache refresh - Periodic invalidation
  • API polling - Regular data fetching
  • Cleanup tasks - Temporary file deletion
  • Test automation - Scheduled test runs

Cron Platforms

PlatformCron SupportExtra Fields
Unix/LinuxNativeStandard 5 fields
AWS CloudWatchEventsSeconds field optional
GitHub Actionsschedule:Standard format
KubernetesCronJobStandard format
Azure FunctionsTimer triggerSeconds field
GCP Cloud SchedulerYesStandard format

Common Mistakes

MistakeProblemSolution
60 * * * *Invalid minuteUse 0-59
0 24 * * *Invalid hourUse 0-23
0 0 32 * *Invalid dayUse 1-31
MondayInvalid formatUse 1 or MON
Forgetting timezoneWrong execution timeSpecify TZ

Machine vs. Human Time

Cron expressions use 24-hour format with Sunday as day 0:

DayCron ValueAlternative
Sunday07 (some systems)
Monday1-
Tuesday2-
Wednesday3-
Thursday4-
Friday5-
Saturday6-

Frequently Asked Questions

Does cron support seconds?

Standard cron uses 5 fields (minute minimum). Extended formats (AWS, some libraries) support a 6th field for seconds.

How do I schedule "every weekday"?

Use * * * * 1-5 or * * * * MON-FRI to run Monday through Friday.

What's the difference between * and ??

* means "every value" while ? means "no specific value." Use ? when day-of-month and day-of-week might conflict.

Can I schedule "last day of month"?

With extended syntax, use L in the day field: 0 0 L * * runs at midnight on the last day of each month.

How do I troubleshoot a cron job not running?

Check:

  1. Syntax validity
  2. Timezone configuration
  3. System cron service status
  4. User permissions
  5. Script path and permissions

Can I run a job "every other Monday"?

Standard cron can't express this. Use a wrapper script that checks the week number, or use more advanced schedulers.