← All text tools

Maze Game and Solver

Play a generated maze with the keyboard, buttons or a swipe, with a timer and four sizes, or paste your own maze drawing and get the shortest path through it.

  • Free
  • No sign-up
  • Works on any device

About Maze Game and Solver

Two maze tools in one. Play mode builds a perfect maze, one with exactly one route between any two squares, from a maze number you can repeat: the same number always gives the same maze. Walk from the top-left to the bottom-right with the arrow keys, W A S D, on-screen arrows or a swipe, with a timer and move counter beside the shortest possible route. Solve mode takes a maze you draw with # for walls plus S and E for start and end, and finds the shortest path by breadth-first search. The built-in example has a shortest path of 14 steps.

How to use Maze Game and Solver

  1. Pick Play and a size, or paste your own maze drawing in Solve mode.
  2. In Play mode click the maze and move with the arrow keys, W A S D, the buttons or a swipe; use Show the way for a hint.
  3. In Solve mode read the shortest path length and copy the drawing with the route marked.

Why use this tool?

Also known as

Frequently asked questions

Does the same maze number always give the same maze?

Yes. The number is the seed of the generator, so you can share a size and number with a friend and race on identical mazes. New random maze picks a fresh number for you.

What can I use in a maze I paste to be solved?

Use # for walls, spaces or dots for open squares, one S for the start and one E for the end. Mazes may branch and loop. Only up, down, left and right moves are allowed.

Why can I not walk through some gaps?

Only the gaps between squares that the maze generator opened are passable. The thin lines are walls, and every wall counts, even where two passages seem to touch at a corner.

Is Maze Game and Solver free?

Yes. Maze Game and Solver on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put Maze Game and Solver on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.