> Markdown version of https://opspane.dev/cron/translate/ for AI agents and readers: the same text, without navigation or the interactive tool.
>
> The tool computes its result with JavaScript in the browser, so this file holds the reference text, worked examples and FAQ. Open the page to run it on your own input.
>
> Answer endpoint for agents: the same URL parameters on https://opspane.dev/cron/translate/answer.md return the computed result as Markdown, without JavaScript, e.g. https://opspane.dev/cron/translate/answer.md?expr=0%209%20*%20*%201-5&tz=Europe%2FBerlin&d=unix

# Cron Expression Converter

Convert one schedule to crontab, Quartz, AWS EventBridge, GitHub Actions, Kubernetes and systemd — with next run times for each.

## Quick answer

- Fields: 5 in crontab, Kubernetes and GitHub Actions; 6–7 in Quartz (seconds first, optional year); 6 in AWS (year last); systemd uses a calendar event.
- Sunday: `0` or `7` in crontab, `0` in Kubernetes and GitHub, `1` in Quartz and AWS, `Sun` in systemd. So `1` is Monday in crontab but Sunday in Quartz.
- Quartz and AWS need `?` in one day field. When both day fields are set, crontab runs on either, which Quartz, AWS and systemd can only express as two expressions.
- Linux `0 9 * * 1-5` is `0 0 9 ? * MON-FRI` in Quartz and `cron(0 9 ? * MON-FRI *)` in AWS.

## How to use

1. Pick the platform your expression comes from and paste it.
2. Read the converted expression for each platform. A green badge means its next 20 runs match the original exactly.
3. Where a platform cannot express the schedule exactly, the notes explain what changes — read them before copying.

## What changes between platforms

| Platform | Fields | Sunday | Day fields | Extras |
| --- | --- | --- | --- | --- |
| crontab | 5 | `0` or `7` | OR when both are set | `@daily`, `@reboot` |
| Kubernetes | 5 | `0` only | OR when both are set | `spec.timeZone` |
| GitHub Actions | 5 | `0` | OR when both are set | `timezone:`, every 5 min at most |
| Quartz | 6–7 (seconds, year) | `1` | one must be `?` | `L W #` |
| AWS EventBridge | 6 (year) | `1` | one must be `?` | `L W #`, `rate()` |
| systemd | calendar event | `Sun` | weekday AND date | `~` from month end |

## Conversions that need care

### Both day fields set: OR, not AND

`0 0 1 * 1` runs on the 1st and on every Monday — either day field matching is enough. Quartz, AWS and systemd cannot express that OR in a single expression; the converter writes two expressions and their union is the original schedule.

`0 0 1 * 1` crontab → Quartz pair · July 2026

Quartz cannot **OR** the two day fields, so the converter writes two triggers: line 1 runs on the 1st, line 2 on every Monday — together the pair fires the same **5 runs in July 2026**.

### Weekday numbers shift by one

`1` is Monday in crontab but Sunday in Quartz and AWS. The converter writes names (`MON-FRI`) for Quartz and AWS so nothing is misread.

Same digits, different days: `1-5` is Monday–Friday for crontab but Sunday–Thursday for Quartz. AWS counts from Sunday like Quartz, which is why its `2-6` means Monday to Friday.

### Other differences

- **Last day of the month.** Quartz `L` becomes systemd `~01`; the 5-field dialects have no equivalent.
- **Seconds.** Quartz and systemd can fire at a given second; crontab, Kubernetes, GitHub and AWS run at most once a minute.
- **Daylight saving.** The same expression can behave differently when clocks change: crontab runs a repeated time twice, Quartz and AWS once at the later occurrence, systemd once at the earlier one, and GitHub moves a skipped time to the next valid one.

## How the results are verified

Each platform's parser on this site is checked against the real implementation — robfig/cron for Kubernetes, Quartz 2.3.2 for Quartz and AWS, and `systemd-analyze calendar` for systemd — on more than 700 expression, time-zone and start-time combinations. The converter then re-parses every result with the target's rules and compares 20 upcoming runs with the original.

## FAQ

### How do I convert a Linux cron expression to Quartz?

Add a seconds field in front, replace * with ? in whichever day field you do not use, and shift numeric weekdays by one (Quartz counts 1 = Sunday). 0 9 * * 1-5 becomes 0 0 9 ? * MON-FRI. Paste it above and the converter does all three steps.

### How do I convert cron to an AWS EventBridge expression?

AWS uses cron(minutes hours day-of-month month day-of-week year): no seconds, a year field at the end and ? in one day field. 0 9 * * 1-5 becomes cron(0 9 ? * MON-FRI *).

### Why do some conversions produce two lines?

Linux cron runs when either day field matches, for example the 1st OR every Monday. Quartz, AWS and systemd cannot express that OR in one expression, so the converter gives two expressions — two Quartz triggers or two OnCalendar= lines in the same timer — that together run at the same times.

### What cannot be converted exactly?

Seconds have no place in 5-field cron or AWS, rules such as the last day of the month (L) or the nearest weekday (W) have no Linux cron equivalent, and systemd has no nearest-weekday rule. The converter lists every such loss instead of guessing.

### How do I know the converted expression is right?

Every result is parsed again with the target platform's rules and its next 20 runs are compared with the original's. A green “Same next runs” badge means they match exactly.

## Related tools

- [Cron Expression Explainer](https://opspane.dev/cron/explainer/): Understand any cron expression in plain English, with timezone-aware next run times and warnings for schedules that never fire.
- [AWS EventBridge Cron](https://opspane.dev/cron/aws-eventbridge/): Validate AWS EventBridge cron and rate expressions, see next run times in UTC and generate Terraform, CloudFormation or AWS CLI snippets.
- [Quartz Cron Expression](https://opspane.dev/cron/quartz/): Explain and build Quartz and Spring @Scheduled cron expressions — 6 or 7 fields, L, W, # and ? — with next run preview.
