Souus Tools
Sponsor

Crontab Generator & Explainer

Free online crontab expression generator and explainer. Build cron schedules visually or paste an expression to get a plain-English description.

Presets:

At 09:00 AM, Monday through Friday

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

What Is a Crontab Expression?

A crontab (cron table) expression is a compact string of five fields that defines a recurring schedule on Unix-like systems. Each field represents minute, hour, day of month, month, and day of week. Cron expressions power scheduled tasks such as backups, report generation, log rotation, and automated deployments. This tool lets you either explain an existing cron expression in plain language or build one interactively by setting each field.

How to Use the Crontab Tool

  1. Select the 'Explain' tab to decode an existing cron expression.
  2. Enter or paste a cron expression (e.g., '0 9 * * 1-5') to see its human-readable description.
  3. Click any preset button to quickly load common schedules.
  4. Switch to the 'Generate' tab to build a cron expression field by field.
  5. Set the values for minute, hour, day of month, month, and day of week.
  6. Copy the generated expression using the copy button.

Common Use Cases

  • Scheduled Backups — Create cron expressions for database or file system backups that run at optimal off-peak hours.
  • CI/CD Pipeline Triggers — Define scheduled triggers for continuous integration pipelines, nightly builds, or periodic test suites.
  • Log Rotation & Cleanup — Set up recurring jobs to compress, archive, or delete old log files to manage disk space.
  • Monitoring & Alerting — Schedule health checks, uptime monitors, or periodic report generation for system observability.

FAQ

What do the five fields in a cron expression mean?
From left to right: minute (0-59), hour (0-23), day of month (1-31), month (1-12), and day of week (0-6, where 0 is Sunday). An asterisk (*) means 'every' value for that field.
What does */15 mean in a cron field?
The slash notation means 'every N units.' So */15 in the minute field means 'every 15 minutes,' which translates to minutes 0, 15, 30, and 45.
Does this support 6-field or 7-field cron expressions?
This tool focuses on the standard 5-field Unix crontab format. Some systems (like Quartz or Spring) use 6 or 7 fields including seconds and year—those are not supported here.
Can I use day names like MON-FRI?
The standard crontab format uses numbers (0-6 or 1-7) for days of the week. While some cron implementations accept three-letter abbreviations (MON, TUE, etc.), this tool expects numeric values or ranges like 1-5.

Ferramentas Relacionadas