Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Light toggle puzzle

Each press flips a light and its neighbours. Switch every light off in as few presses as you can, with the exact fewest shown. 3 × 3 to 7 × 7.

How to play

  1. Lights that are on show a dot on a bright square.
  2. Pressing a light switches it and its four neighbours (up, down, left and right): on becomes off and off becomes on.
  3. Turn every light off. The counter shows your presses and the fewest needed from the start.
  4. With "wrap around", a light at the edge also switches the light on the opposite edge.

Keyboard and touch

Arrow keysMove between lights
Space or EnterPress the light
TapPress the light

Tips

  • The order of presses never matters, and pressing the same light twice does nothing. A fastest answer presses each light at most once.
  • "Chase the lights": go row by row, and for every light that is on, press the one just below it. Only the bottom row is left; then use a known pattern for the top row and chase again.
  • On 4 × 4 and 5 × 5 boards some patterns can never be solved. Puzzles here are made by pressing random lights, so they always can.
  • Show a fastest way marks every light to press in one go; Hint marks just one of them.

About this puzzle

Light toggle is the classic "lights out" puzzle, played with any board size. Each light is an equation modulo 2 (on = 1, off = 0): it ends up off exactly when the presses that touch it add up to its starting value. The page solves these equations by elimination and, where several answers exist, tries every free choice to find the fewest presses, so the "fewest possible" count is exact. A game number makes a new board the same way every time, so you can share it. Everything runs in your browser.

See you tomorrow!

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

Browse every product