← All text tools

Cron to Quartz Expression Converter

Convert a standard 5 field Unix cron expression to Quartz 6 or 7 field format and back, with the question mark rule and weekday numbering handled.

  • Free
  • No sign-up
  • Works on any device

About Cron to Quartz Expression Converter

Move a schedule between Unix cron and Quartz, the scheduler behind many Java and Spring applications. A standard crontab line has five fields: minute, hour, day of month, month and day of week. Quartz has a seconds field in front, an optional year at the end, needs a question mark in either the day-of-month or day-of-week field, and counts weekdays from 1 for Sunday, while Unix uses 0 or 7 for Sunday. This converter handles those differences, writes weekdays as names to prevent mix-ups, warns when both day fields are set, and converts back from Quartz when it can be expressed in Unix cron.

How to use Cron to Quartz Expression Converter

  1. Choose the direction, then type or paste the cron expression.
  2. For Unix to Quartz, set the seconds value, an optional year, and which day field to keep if both are used.
  3. Copy the converted expression and compare the field table to see how each field moved.

Why use this tool?

Also known as

Frequently asked questions

Why does Quartz need a question mark?

Quartz does not allow both the day-of-month and the day-of-week field to be restricted at once, so exactly one of them must be ? meaning no specific value. Unix cron has no such rule.

Is 0 30 2 ? * 1 Monday or Sunday in Quartz?

Sunday, because Quartz numbers days from 1 for Sunday to 7 for Saturday. Unix cron uses 1 for Monday, which is why the converter writes MON instead of a number.

What cannot be converted from Quartz to cron?

Seconds and years are dropped, and L, W and # (last day, nearest weekday, nth weekday) have no Unix equivalent, so those expressions give an error.

Is Cron to Quartz Expression Converter free?

Yes. Cron to Quartz Expression Converter on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put Cron to Quartz Expression Converter on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

Related tools