Seat Change Tool (Make a Seating Chart With Conditions: Front Seats for Eyesight, Keep Pairs Apart, Boy-Girl Alternating, Avoid Last Time's Seats)
Completely free, with no extra charges. You may freely use the output commercially.
About this tool
Paste your class list and press "Shuffle seats". The tool assigns seats at random to fit the layout of your classroom desks and builds a seating chart. It looks for an arrangement that meets conditions that a plain draw would need many redraws to satisfy: "front row because of eyesight", "back row because tall", "keep these two apart", "boy-girl alternating", and "not the same seat or the same neighbor as last time". People who must stay in a particular seat can be locked there while everyone else is shuffled.
(In Japanese schools, "seki-gae" is the regular reshuffling of seats in a homeroom class, and the "kyotaku" is the teacher's desk at the front of the room.) The result can be switched to the teacher's point of view, shown one seat at a time for a reveal, copied as a table for Excel, saved as CSV or PNG, and printed. Random numbers come from the browser's cryptographic generator (crypto.getRandomValues), so the order of the list does not bias the result. All processing happens entirely in your browser (no data is sent).
1. Classroom desk layout
Click a seat in the diagram below to mark it "×" if it is not used (no desk, or an aisle). The diagram is seen from the students' side (the teacher's desk is at the top).
2. Class list
Tags: #前 = front rows, #後 = back rows, #男 = male, #女 = female. The tags are written exactly as shown (also #m and #f for gender).
3. Seating conditions
4. Seating chart
Click two seats in a row to swap them. Select a seat and press "Lock to this seat" and that person stays in that seat the next time you shuffle.
The class list, conditions and confirmed chart are stored only in this browser (localStorage) for your next visit.
How to use it, and how it differs from a draw
Your first seat change
- In "1. Classroom desk layout", enter the number of rows and the seats per row. For a row with only 5 desks, or a spot used as an aisle, click the seat in the diagram to mark it "×".
- In "2. Class list", paste one name per line. You can also select the Name and Gender columns in an Excel sheet, copy them and paste them as they are (a gender column of M / F or 男 / 女 works the same as #男 #女). If you do not want names shown, use "Use roll numbers" to get a chart with numbers only.
- For people who need consideration because of eyesight or height, add #前 or #後 after the name. Write any pairs to keep apart in "3. Seating conditions".
- Press "Shuffle seats" and the chart appears. If you do not like it, press again for a different arrangement that still meets the conditions.
- When you have decided, press "Confirm these seats". The next shuffle looks for an arrangement without the same seats or the same neighbors as this chart.
Why a draw takes so long with conditions
If you draw numbers and then fix things by hand ("swap with the person in front", "move these two apart"), each swap can break another condition. This tool takes the people with the most conditions first (#前 #後, and people in pairs to keep apart), tries empty seats at random, and when a condition fails it goes back one step and tries another seat (backtracking). That way it looks for an arrangement that meets all conditions at once. It then picks one at random from the arrangements that meet the conditions, so the conditions hold however many times you press the button, and the result differs every time.
A "neighbor" is the seat to the left or right in the same row. With two-person desks, only the partner at the same desk is a neighbor. "Adjacent in any direction, including diagonals" means the 8 surrounding seats, regardless of desk boundaries. The boy-girl condition applies only among people tagged #男 #女. People without tags and empty seats can sit next to either.
When no arrangement is found
- If there are more #前 people than seats in the front area, the reason is shown immediately. Widen the area to "Up to row 3" or review the number of #前 people.
- A checkerboard cannot be made if the numbers of #男 and #女 differ a lot. For example, with 40 seats in a 5 x 8 grid and 22 girls, there is no way to seat them without girls next to each other in front, back, left or right. When the numbers differ, use "Neighbors are a boy and a girl", or mix in empty seats or people without a gender tag.
- It can also fail when there are many pairs to keep apart and few spare seats. The search stops after about 2.5 seconds, so loosen the conditions one at a time, for example by setting the distance to "Only avoid sitting side by side".
Adjusting by hand and locking
Click two seats in a row on the chart to swap those two people. If the result breaks a condition (two people who should be apart end up close), a warning appears above the chart, but you can still use it. To fix someone's seat first, such as an aisle seat for a wheelchair user or a person who needs consideration, select that person's seat, press "Lock to this seat", and then press "Shuffle seats". Only the people who are not locked are shuffled.
Printing and the reveal
"Print" prints only the seating chart. Use "Students' view" for a copy to post in the classroom and "Teacher's view" for the teacher's desk before printing. With "Hide names and reveal one seat at a time", you can show the chart on a projector and flip over one seat at a time from the front row with "Reveal next seat".
Notes
- The class list and chart are stored only in this browser and are not shared with other computers or devices. After using a shared computer, press "Erase saved data".
- The only "previous" chart used for comparison is the last one you confirmed with "Confirm these seats". Even if you change the desk layout, the seat at the same "row from the front, seat from the left" counts as the same seat.
- The layout can be up to 15 rows by 15 seats (225 seats).