ScreenToolsScreen.tools

Maze Screensaver

Endless maze, drawing itself.

Press F for fullscreen

About Maze Screensaver

Recursive backtracker maze that draws itself step-by-step, then clears and regenerates. A living piece of algorithmic art that combines generative design with cognitive puzzle aesthetics.

What the Maze Screensaver Does

A maze generates itself in real time using the recursive backtracker algorithm — a depth-first search that carves corridors through a grid by exploring randomly and backtracking at dead ends. Each corridor segment appears one cell at a time as the algorithm works, building the maze progressively until the entire grid is filled. Once complete, it holds briefly for viewing before clearing and starting a new, unique maze. Every maze is a perfect maze — exactly one path between any two points. The rendering uses clean, high-contrast lines on HTML5 Canvas at 60fps.

STEM Teaching and Algorithm Visualization

The recursive backtracker is one of the fundamental maze generation algorithms taught in computer science courses. This screensaver makes the abstract concept tangible — students can watch the algorithm explore, backtrack, and build in real time. STEM educators project it during lessons on graph theory, procedural generation, or data structures. The visual progression from empty grid to complete maze is far more intuitive than a textbook diagram. Escape room venues and puzzle-themed businesses use it on lobby displays to reinforce the puzzle-solving atmosphere.

Ambient Wallpaper for Puzzle and Logic Lovers

Even without actively solving the maze, the visual complexity of corridors and dead ends provides gentle cognitive stimulation that many find more interesting than static patterns. Programmers and logic enthusiasts use it as ambient wallpaper on secondary monitors — the constantly changing pattern prevents visual fatigue while providing more structure than random noise animations. Art galleries and digital art exhibitions include it as an example of generative and algorithmic art, where the code itself is the creative medium.

Pro Tip: Watch the Algorithm Think

The most interesting moments are when the algorithm reaches a dead end and has to backtrack. Watch for long exploratory runs that suddenly reverse — these backtracks reveal the depth-first search strategy in action. The longest corridors are typically created during extended forward runs, while the densest clusters of dead ends appear during backtracking phases.

How to use it

  1. 01

    Open the Maze screensaver

    Navigate to the tool. The algorithm begins drawing immediately.

  2. 02

    Go fullscreen

    Press F. The generating maze fills your display.

  3. 03

    Watch the algorithm build

    Observe the recursive backtracker exploring and backtracking in real time.

  4. 04

    Use as a teaching visualization

    Project during CS lessons on maze generation algorithms.

Frequently asked

The shortest path between you and the answer.

What algorithm generates the maze?

The recursive backtracker — a depth-first search that produces perfect mazes with exactly one path between any two points.

Does the maze repeat?

No. Random choices at each branching point ensure every maze is unique.

Is this tool free?

Yes. Every ScreenTools.co tool is free, with no account, no paywall, and no install.

Does it work on mobile?

Yes. Layouts adapt to phone and tablet screens. Mobile Safari restricts true fullscreen, but the page fills the viewport and you can add the page to your Home Screen for an app-like experience.

Does it work offline?

Once a tool's page has loaded once, the runtime is local. A few tools that fetch fonts or icons need the first hit online; after that, refresh works offline.

Does this collect my data?

No personal data leaves your browser. The site has lightweight, privacy-respecting analytics for aggregate counts (which tool was opened) and nothing else.