# Shift Schedule Maker - Auto Roster & Rotation Generator

> Free shift scheduler: set staff, shifts and daily headcount, then auto-build a fair roster that respects rest and weekly-off rules. Rotations, print, CSV.

- URL: https://qilingtools.com/en/shift-schedule
- Category: Productivity (https://qilingtools.com/en/office)
- Tags: [Date & Time](https://qilingtools.com/en/tags/time), [Everyday Life](https://qilingtools.com/en/tags/life), [Productivity](https://qilingtools.com/en/tags/office)
- Last updated: 2026-10-26
- Price: Free, no sign-up
- Privacy: Runs locally in the browser; files are never uploaded

Scheduling a store, a factory line, a ward or a support team means juggling many rules at once: how many people each shift needs, how many days in a row someone may work, rest after night shifts, a minimum number of days off per week, leave requests, people who can’t do nights — and keeping shift counts, nights and weekends fair. This tool hands those rules to a solver. It first fills each day greedily with whoever should work next, then runs a seeded simulated-annealing search that swaps and adjusts assignments, putting hard rules first and fairness second; a month for a few dozen people usually takes a blink. If your settings simply can’t be staffed — a day with fewer available people than required, or not enough capacity once weekly days off or the consecutive-day limit are taken into account — it tells you exactly which days fall short instead of producing a roster that quietly breaks the rules. You can also switch to a fixed rotation with presets such as a four-crew three-shift cycle (D D S S N N off off), 2-on-1-off, 1-on-1-off or alternating 6- and 5-day weeks, with each person’s starting point staggered automatically. Click any cell to pin a shift, a day off or leave; pinned cells survive regeneration. Chinese public holidays and make-up workdays are marked in the header. Per-person stats show shifts, hours, each shift type, weekend and holiday work, plus a rule-check list. Print an A4 landscape roster or save it as PDF, export PNG and CSV, and everything autosaves in your browser.

## How to use

1. Pick a preset (store early/mid/late, 3-shift rotation, duty roster…) and set the start date and number of days
2. Edit shift times and headcounts, add people and shifts they never work, and set consecutive-day and rest rules
3. Click cells to mark leave or pin shifts, press Generate roster, check the rule list and stats, then print or export

## Features

- Rule-based auto scheduling: headcount per shift, max consecutive days, rest after nights, min hours between shifts, weekly days off
- Greedy start plus simulated annealing, seeded and reproducible, one-click alternatives
- Pinpoints days that can’t be staffed
- Rotation presets: 4-crew 3-shift, 2-on-1-off, 1-on-1-off, alternating weeks
- Pin leave, days off or specific shifts
- Chinese public holidays and make-up workdays marked
- Per-person shifts, hours, nights, weekend counts and fairness spread
- A4 landscape print / PDF, PNG and CSV export, local autosave

## FAQ

### How does the auto scheduler work?

It first fills each day shift by shift, preferring people with fewer total shifts, fewer of that shift type and fewer weekend shifts who won’t break the consecutive-day or rest rules. Then a simulated-annealing search makes tens of thousands of small changes — swapping two people on the same day or changing one person’s shift — with hard rules weighted far above fairness, and keeps the best roster found. The random generator is seeded, so the same settings always give the same roster; Try another changes the seed.

### Why does it say the roster can’t be fully staffed?

Before solving it checks capacity: whether a day needs more people than are available, whether enough people can work a particular shift (for example nights), whether a week has enough capacity after everyone’s required days off, and whether any window of N+1 days can be covered under a limit of N consecutive days. If any check fails, no valid roster exists, so it lists the days and shortfalls. Add people, lower headcounts or relax a rule.

### How do rotation patterns work?

Choose a preset and it sets up the shifts, rules and sequence — for example D D S S N N off off, which gives two people on each shift every day with eight staff. The sequence starts on the Monday of the first week, and with staggering on, each person begins at a different point so coverage is even. You can type your own sequence using shift codes separated by spaces.

### Is my data uploaded?

No. All scheduling runs in your browser, and staff names and rosters are stored only in this browser’s localStorage; you can export a JSON backup. Holiday marks follow China’s official public-holiday arrangements, currently for 2025 and 2026.

## Related tools

- [QiLing Mind](https://qilingtools.com/en/mindmap): QiLing Mind is a free online mind map editor: add nodes with Tab/Enter, drag to restructure, import and export XMind and Markdown, export PNG/SVG/PDF.
- [Password Generator](https://qilingtools.com/en/password): Free online random password generator: choose length, character sets and look-alike exclusions, generate several at once with a strength meter, all locally.
- [QR Code Generator](https://qilingtools.com/en/qrcode): Free online QR code generator: turn URLs, text, Wi-Fi or contact cards into QR codes with custom size, colour and error correction. Crisp PNG or vector SVG.
- [Word Counter](https://qilingtools.com/en/word-count): Free online word counter: live counts of characters with and without spaces, words, CJK characters, lines, paragraphs, sentences, bytes and reading time.
- [Case Converter](https://qilingtools.com/en/case-convert): Free online case and naming converter: get UPPERCASE, lowercase, Title Case, camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE at once.
- [Lorem Ipsum Generator](https://qilingtools.com/en/lorem): Free online Lorem Ipsum generator: classic Latin placeholder text or Chinese filler by paragraph, sentence or word, with one-click copy for mockups.
- [Sort & Dedupe Text](https://qilingtools.com/en/text-sort): Free online text tool: sort lines alphabetically or by length, remove duplicate and empty lines, trim whitespace, optionally ignoring case. Runs locally.
- [Sign & Stamp PDF](https://qilingtools.com/en/pdf/sign): Free online PDF signing tool: drop in a handwritten signature or company stamp, drag it into place on a page preview, adjust size and opacity, then export.
