Cron expression generator

Set minute, hour, day, month, weekday and generate the cron line.

{{ cron.message }}

{{ t("cronGuideTitle") }}

{{ t("cronGuideIntro") }} {{ t("cronGuideFormat") }}.

{{ t("cronFieldsTitle") }}

  • {{ t("cronFieldMinuteLabel") }}: {{ t("cronFieldMinuteDesc") }}
  • {{ t("cronFieldHourLabel") }}: {{ t("cronFieldHourDesc") }}
  • {{ t("cronFieldDayOfMonthLabel") }}: {{ t("cronFieldDayOfMonthDesc") }}
  • {{ t("cronFieldMonthLabel") }}: {{ t("cronFieldMonthDesc") }}
  • {{ t("cronFieldDayOfWeekLabel") }}: {{ t("cronFieldDayOfWeekDesc") }}

{{ t("cronCommonChars") }} * ({{ t("cronAny") }}), , ({{ t("cronList") }}), - ({{ t("cronRange") }}), / ({{ t("cronStep") }}).

{{ t("cronTutorialTitle") }}

  1. {{ t("cronStep1") }}
  2. {{ t("cronStep2") }}
  3. {{ t("cronStep3") }}
  4. {{ t("cronStep4") }}
  5. {{ t("cronStep5") }}
  6. {{ t("cronStep6Prefix") }} {{ t("generateExpression") }}{{ t("cronStep6Suffix") }}

{{ t("cronExamplesTitle") }}

*/15 * * * *

{{ t("cronExample1Desc") }}

0 * * * *

{{ t("cronExample2Desc") }}

30 2 * * 1-5

{{ t("cronExample3Desc") }}

0 0 1 * *

{{ t("cronExample4Desc") }}

0 4 * * 0

{{ t("cronExample5Desc") }}

Overview

The word `cron` comes from the Greek χρόνος (Chronos), the god of time — and the name is more than fitting, because few tools in modern computing have a more intimate relationship with time. The first cron was written by Ken Thompson around 1975 for Unix V7. Ken Thompson is a singular figure in computing history: he also co-created Unix with Dennis Ritchie, wrote the B language (which inspired C), co-invented UTF-8 — the text encoding you are using right now — and years later was one of the creators of the Go language at Google. The cron most system administrators know today is Vixie Cron, rewritten by Paul Vixie in 1987, which established the 5-field format we still use: minute, hour, day of month, month, and day of week.

The crontab syntax is concise to the point of being almost magical once you learn to read it. The asterisk `*` means any value. The slash `/` defines steps: `*/5` is every 5 units. The hyphen `-` defines ranges: `9-17` means from 9 to 17. The comma separates discrete values: `1,15` is on the 1st and 15th. Special strings like `@daily`, `@weekly`, and `@reboot` are syntactic sugar for the most common expressions. The most frequent — and most treacherous — mistake is the timezone: cron runs in the server timezone, which in production is almost always UTC. If you need something to run every day at 8 AM in New York (EST, UTC-5), the correct expression is `0 13 * * *`. Modern orchestrators like AWS EventBridge use 6 fields with an extra year field — different from the standard 5-field format.

Even being a tool from 1975, cron has never lost relevance — in fact, it has gained new contexts that prove how solid the original design was. Kubernetes CronJobs use exactly the same 5-field syntax. GitHub Actions has the `on: schedule` trigger with cron. Google Cloud Scheduler, AWS EventBridge Cron, and Azure Logic Apps all draw from the same source. For more complex tasks with job dependencies, automatic retries, and detailed monitoring, tools like Apache Airflow, Prefect, and Temporal are more appropriate. But for the classic use case — run a script every night at midnight, reprocess a queue every 5 minutes, generate a report every Monday at 8 AM — cron remains the simplest, most reliable, and most universal solution available. This tool builds the expression visually for you.

Technical deep dive

Common questions summarized

  • What is this tool for?: It runs fully in your browser: useful to validate, format, or convert data in everyday development.
  • Are my inputs sent to a server?: Processing happens locally with JavaScript. We do not store what you paste into the text areas.
  • Can I use this for real production data?: Use at your own risk. For secrets (passwords, tokens), prefer controlled environments and your company policies. And always review the generated contents. Never trust blindly things you see on the internet.

Sample payload to try

  • See also the larger "Code Snippets" sample; paste this excerpt to try locally: Example — 0 3 * * * → todo dia às 03:00 */15 * * * * → a cada 15 minutos

Tool guide

  • What Cron is The classic Unix/Linux scheduler for recurring jobs. A typical line has five fields: minute, hour, day of month, month, weekday.

  • What the tool does Builds the cron string from form choices.

  • Why use it Learn syntax, draft lines for crontab, Kubernetes CronJob, or orchestrators that share the format (check your timezone and variant).

Code Snippets

Code example
0 3 * * *  → todo dia às 03:00
*/15 * * * * → a cada 15 minutos

Example

0 3 * * *  → todo dia às 03:00
*/15 * * * * → a cada 15 minutos

FAQ

What is this tool for?

It runs fully in your browser: useful to validate, format, or convert data in everyday development.

Are my inputs sent to a server?

Processing happens locally with JavaScript. We do not store what you paste into the text areas.

Can I use this for real production data?

Use at your own risk. For secrets (passwords, tokens), prefer controlled environments and your company policies. And always review the generated contents. Never trust blindly things you see on the internet.