Cron Expression Generator
Format: min hour dom mon dow
分钟
小时
日期
月份
星期
*/5 * * * *

手动输入

Every 5 minutes
1 2026-11-08 19:45
2 2026-11-08 19:50
3 2026-11-08 19:55
4 2026-11-08 20:00
5 2026-11-08 20:05
什么是 Cron 表达式?

Cron 是 Linux/Unix 系统中的定时任务调度器。一个 cron 表达式由 5 个空格分隔的字段组成:

# 分钟 小时 日期 月份 星期
1 分钟 (0-59) 小时 (0-23) 日期 (1-31) 月份 (1-12) 星期 (0-7,0和7都代表周日)

特殊字符说明

*表示所有可能的值,即每(每分钟/每小时/每天)
,列举多个值,如 1,3,5 表示第1、3、5分钟
-表示一个范围,如 1-5 表示周一到周五
/表示步长,如 */5 表示每5(分钟/小时/天)

常用示例

* * * * *每分钟执行
*/5 * * * *每5分钟执行
0 * * * *每小时整点执行
30 8 * * *每天早上8:30执行
0 0 * * 1每周一凌晨0点执行
0 9 * * 1-5每个工作日早上9点执行
0 0 1 * *每月1日凌晨0点执行
*/15 9-18 * * *工作时间每15分钟执行

Cron Expression Generator

Visual cron expression generator with human-readable descriptions

Runs locally · Nothing uploaded

Overview

Our online Cron expression generator provides an intuitive visual editing interface to help you quickly create Linux crontab scheduled task expressions. With field-by-field editing, quick templates, and real-time description preview, even users unfamiliar with Cron syntax can easily set up scheduled tasks. Preview upcoming execution times to ensure accuracy.

Features

  • Visual Cron expression generator
  • Full Linux crontab format support
  • Automatic human-readable description
  • Next 5 execution times preview
  • Quick template presets
  • Independent minute/hour/day/month/weekday fields
  • Common expression quick selection
  • Expression syntax validation

How It Works

  1. 1 Select a quick template to prefill common expressions, or start from scratch
  2. 2 Set the minute, hour, date, month, and weekday fields individually
  3. 3 View the generated Cron expression and human-readable schedule description in real-time
  4. 4 Check the next 5 execution times to confirm they match your expectations
  5. 5 Copy the final expression to your crontab or task scheduler configuration

Tips

  • Use quick templates to instantly create common schedules like every minute, hour, or day
  • Always preview the next 5 execution times to verify the schedule before deploying
  • Avoid specifying both day-of-month and day-of-week fields simultaneously to prevent unexpected scheduling results

Related tools

Tags CronExpressionSchedule

FAQ

What do the fields in a Cron expression mean?

A standard Cron expression consists of 5 fields: minute (0-59), hour (0-23), day of month (1-31), month (1-12), and day of week (0-7, where both 0 and 7 represent Sunday). Each field supports numbers, comma-separated values, hyphen ranges, and the asterisk wildcard.

Why are the previewed execution times different from what I expected?

A common cause is conflicting day-of-month and day-of-week fields. When both are specified, Cron triggers on dates that match either condition (union). It is recommended to set only one of these fields and leave the other as an asterisk (*).

Can the generated expression be used with Docker or Kubernetes?

Yes. The expressions generated by this tool use standard Linux crontab format, fully compatible with Docker, Kubernetes, Jenkins, and other mainstream scheduling systems.