Master Cron Expressions

Learn cron syntax through interactive lessons, challenging quizzes, and real-time visual timelines.

Start Learning Take the Quiz

📚 Interactive Lessons

Cron expressions have 5 fields separated by spaces. Each field controls when a job runs.

FieldAllowed ValuesSpecial CharactersExample
Minute0–59* , - /*/15 = every 15 min
Hour0–23* , - /9-17 = 9 AM to 5 PM
Day of Month1–31* , - /1,15 = 1st and 15th
Month1–12* , - /*/3 = every 3 months
Day of Week0–6 (Sun–Sat)* , - /1-5 = Mon–Fri

Asterisk * — Every Value

The asterisk means "every possible value" for that field.

* * * * * → Every minute of every hour, every day.

30 * * * * → Minute 30 of every hour (1:30, 2:30, 3:30…)

0 * * * * → Top of every hour (1:00, 2:00, 3:00…)

🎯 Quiz Mode

Test your knowledge with 20 questions across three difficulty levels.

Choose difficulty:

🔧 Practice Mode

Type any cron expression and see its next 5 fire times on a visual timeline.

📅 Visual Timeline

See when your cron expression fires next.

✨ Features

🎯

Adaptive Quizzes

20-question quizzes across three difficulty levels. Multiple choice and free-form answer types to solidify your cron knowledge.

📅

Visual Timelines

See the next 5 fire times for any cron expression rendered on an interactive timeline. Instantly verify your expressions are correct.

📊

Score Tracking

Your quiz scores are saved in your browser so you can track improvement over time. See your best scores per difficulty level.

📚

Interactive Lessons

Step-by-step lessons covering wildcards, commas, ranges, steps, and complex combined expressions. Learn at your own pace.

More Tools You Might Like

crontab.guru

Online cron expression editor and validator.

crontab.org

Official crontab documentation and reference.

❓ Frequently Asked Questions

What is a cron expression?
A cron expression is a string of 5 fields separated by spaces that defines a schedule. The fields are: minute (0–59), hour (0–23), day of month (1–31), month (1–12), and day of week (0–6, where 0 = Sunday). It's used in Unix-like operating systems and many cloud services to schedule recurring tasks.
What's the difference between day-of-month and day-of-week?
They're both evaluated independently. If both are restricted (not *), the cron fires when either condition matches. For example, 0 0 1 * 5 fires at midnight on the 1st of the month and every Friday. To fire only on the 1st when it's a Friday, some cron implementations use the ? character.
How are quiz scores saved?
Scores are stored in your browser's localStorage. No data is sent to any server. Your scores persist across sessions on the same device and browser. Clear your browser data to reset scores.

📬 Get Cron Tips

Enter your email to receive weekly cron tips and quiz challenges.

No spam. Unsubscribe anytime.