Cron Expression Generator / Tester

This free tool allows you to enter a cron expression and get back a human-readable description along with the next 10 run times. You can also build a cron expression using the builder interface.

Cron Expression Tester

Format: minute hour day month weekday
Quick Examples:

Expression Details

Human Readable
Daily at midnight
Next 10 Run Times
Field Breakdown
0
Minute
At minute 0
0
Hour
At hour 0
*
Day
Every day
*
Month
Every month
*
Weekday
Every weekday

Cron Expression Builder

What is a Cron?

Cron is a time-based job scheduler in Unix-like operating systems. It enables users to schedule jobs (commands or scripts) to run automatically at specified times, dates, or intervals. Cron expressions are strings that define when and how often a scheduled task should run.

A cron expression consists of five fields separated by spaces: minute (0-59), hour (0-23), day of month (1-31), month (1-12), and day of week (0-6, where 0 is Sunday). Special characters like asterisk (*) for "any value", comma (,) for multiple values, dash (-) for ranges and slash (/) for step values provide flexibility in scheduling.

How can I use crons for scheduling?

Cron expressions are widely used for scheduling automated tasks across various platforms and applications:

  • System Administration: Schedule backups, log rotation, system updates and maintenance tasks
  • Web Applications: Trigger periodic data processing, send scheduled emails or generate reports
  • CI/CD Pipelines: Run automated builds, tests, or deployments on a schedule
  • Monitoring: Execute health checks, collect metrics, or run diagnostic scripts at regular intervals
  • Data Processing: Schedule ETL jobs, data synchronization or batch processing tasks

Common cron patterns include: "0 2 * * *" for daily at 2 AM, "0 */4 * * *" for every 4 hours, "0 9 * * 1-5" for weekdays at 9 AM, and "*/15 * * * *" for every 15 minutes.

TestingBot allows adding codeless tests with cron format to do scheduled testing

TestingBot's codeless testing platform integrates cron expressions for powerful scheduled test automation. You can set up your tests to run automatically at specified intervals without writing any code, ensuring continuous validation of your web applications and APIs.

With TestingBot's cron-based scheduling, you can:

  • Run regression tests nightly: Use "0 2 * * *" to execute your test suite at 2 AM daily when traffic is low
  • Monitor critical paths hourly: Set "0 * * * *" to verify essential user journeys every hour
  • Weekend maintenance checks: Schedule "0 10 * * 6,0" for Saturday and Sunday morning validations
  • Get instant alerts: Receive notifications via email, Slack, or webhooks when scheduled tests fail
  • Track test history: Review detailed reports and trends from all scheduled test runs

This automated approach helps detect issues early, reduces manual testing effort, and ensures your application remains functional 24/7. Simply create your test scenario using TestingBot's codeless recorder, add a cron schedule, and let the platform handle the rest.

Cron Expression Reference

Field Values

Field Allowed Values Special Characters
Minute 0-59 , - * /
Hour 0-23 , - * /
Day of Month 1-31 , - * / L W
Month 1-12 or JAN-DEC , - * /
Day of Week 0-6 or SUN-SAT , - * / L #

Special Characters

* (asterisk): Matches any value. "* * * * *" runs every minute
, (comma): Separates multiple values. "0,30 * * * *" runs at minute 0 and 30
- (dash): Defines a range. "9-17 * * * *" runs from 9 AM to 5 PM
/ (slash): Defines step values. "*/15 * * * *" runs every 15 minutes
L: Last day/weekday of month. "0 0 L * *" runs on the last day of the month
W: Nearest weekday. "0 0 15W * *" runs on the weekday nearest to the 15th
#: Nth occurrence. "0 0 * * 5#2" runs on the second Friday

Common Examples

0 0 * * * - Daily at midnight
0 */6 * * * - Every 6 hours
0 0 * * 1 - Weekly on Monday
0 0 1 * * - Monthly on the 1st
0 0 1 1 * - Yearly on January 1st
*/30 9-17 * * 1-5 - Every 30 minutes during business hours on weekdays