Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

School timetable maker

Make a clash-free school timetable: classes, teachers, rooms and periods a week, subjects spread over the days, views per class, teacher or room.

One per line: class, subject, teacher, periods a week, room (the room is optional; leave it out for the class's own room).

How to use it

  1. Set the days in your week and the periods in a day.
  2. List every lesson: which class, which subject, who teaches it, how many periods a week, and the room if it needs a special one (lab, gym, art room).
  3. Press Make the timetable. Pick a class, a teacher or a room to see its week. Save the whole timetable as a CSV or print the one on screen.

The maker never puts a class, a teacher or a room in two places at once. With spread on, a class has each subject at most once a day (a subject with more periods than days gets two on some days).

Keyboard

TabMove between the boxes and buttons
Enter in the listNew line for the next lesson

Tips

  • Check the totals first: no class, teacher or room can have more periods than the week has slots. The maker tells you if one does.
  • The tightest resources are shared ones: one lab, one gym, a part-time teacher. If something cannot be placed, look there first.
  • Leave some room to move: a teacher or class booked for every single slot of the week is much harder to fit than one with a few free periods.
  • The same lessons with a different seed give a different timetable: press the button again after a small change to see other options.

About this tool

Timetabling is a hard puzzle, the kind that computers cannot always solve perfectly in reasonable time. The maker uses a simple, sturdy method: it places the hardest periods first (the busiest teacher, class and room), picks a free slot on the day the class has least, and, when a period has nowhere to go, tries moving one blocking period somewhere else. It repeats this up to 80 times with different random choices and keeps the best result.

For a real school you will also want things this tool does not handle, such as teachers’ days off, double periods and lunch duties: use it for a first draft, a club or a small school.

The tests make random schools whose lessons are known to fit, and a separately written Python check confirms every timetable: every period placed, no class, teacher or room double-booked, and the spread rule kept.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product