DevToolBox免费
博客

Cron 表达式解析器

将 Cron 表达式解析为可读描述,并显示下次计划执行时间。免费使用,无需注册。

Minute (0-59) (0-59)
Hour (0-23) (0-23)
Day (1-31) (1-31)
Month (1-12) (1-12)
Weekday (0-6) (0-6)

About Cron Expressions

Cron is a time-based job scheduler in Unix-like systems. A cron expression consists of 5 fields: minute, hour, day of month, month, and day of week. Special characters include * (any), / (step), , (list), and - (range). Our online cron expression parser lets you validate and decode any cron schedule instantly. Common cron expressions include */5 * * * * (every 5 minutes), 0 0 * * * (daily at midnight), and 0 9 * * 1 (every Monday at 9am). Use this cron schedule generator for CI/CD pipelines, crontab debugging, automated backups, and recurring task planning.

常见问题

𝕏 Twitterin LinkedIn

评价此工具

3.8 / 5 · 67 人评价

保持更新

获取每周开发技巧和新工具通知。

无垃圾邮件,随时退订。

Enjoy these free tools?

Buy Me a Coffee

使用方法

  1. Enter a cron expression (5 fields: minute hour day month weekday)
  2. Or click a quick preset button for common schedules
  3. View the human-readable description
  4. Check the next scheduled run times

常见用途

  • Setting up scheduled tasks on Linux servers
  • Configuring CI/CD pipeline schedules
  • Planning cron jobs for backups
  • Debugging crontab entries

常见问题

What is a cron expression?
A cron expression is a string of 5 fields (minute, hour, day, month, weekday) that defines a schedule for recurring tasks in Unix-like systems.
What do the special characters mean?
* means any value, / means step (*/5 = every 5), , means list (1,3,5), - means range (1-5), and specific numbers mean exact values.
Can I see when my cron job will run next?
Yes. Enter your cron expression and the tool will show the next scheduled execution times, plus a human-readable description.
What are the 5 fields in a cron expression?
The 5 fields are: minute (0-59), hour (0-23), day of month (1-31), month (1-12), and day of week (0-6, where 0 is Sunday). Each field can use numbers, wildcards (*), ranges (-), lists (,), and steps (/).
What is the difference between cron and crontab?
Cron is the daemon (background service) that runs scheduled tasks. Crontab (cron table) is the file where you define your cron jobs and their schedules. You edit the crontab using the 'crontab -e' command.
What are common cron expressions for everyday tasks?
Every 5 minutes: */5 * * * *. Daily at midnight: 0 0 * * *. Every Monday at 9am: 0 9 * * 1. Every hour: 0 * * * *. First day of every month: 0 0 1 * *. Weekdays at 8am: 0 8 * * 1-5.
How does cron handle timezones?
Standard Unix cron uses the system's local timezone. There is no timezone field in a cron expression. To run jobs in a specific timezone, set the TZ variable in your crontab or use tools that support timezone-aware scheduling.
What is the difference between Spring cron and Unix cron?
Spring cron expressions have 6 fields (adding seconds as the first field), while Unix cron has 5 fields. Spring cron also uses different syntax for day-of-week (1-7 where 1=Monday) compared to Unix (0-6 where 0=Sunday).

💬 User Feedback

Have suggestions or found a bug? Leave a message and we'll get back to you.
0/2000