Skip to content
100% local

Game of Life

Simulate Conway's Game of Life step by step and generate the resulting grid as text.

Output

Game of Life

Conway's Game of Life is a classic cellular automaton: a grid of cells, alive or dead, evolving one generation at a time under three rules. A live cell with two or three live neighbors survives, a dead cell with exactly three live neighbors is born, and every other cell dies or stays dead. This tool runs the simulation in your browser and prints the result as a plain-text grid, ready to paste into a README, a forum post or a terminal.

Pick a starting pattern from the classic set — glider, blinker, toad, beacon and pulsar — switch to random for a fresh board each run, or choose custom to draw your own. A custom pattern is rows separated by a slash (or a line break), using the characters set by the custom pattern format, either "." and "#" or "0" and "1". Width, height and generations set the grid size and how many steps the simulation runs; wrap edges turns the grid into a torus, so a shape that would run off the border reappears on the opposite side instead of dying at the wall.

By default the output shows only the final generation. Batch mode instead prints every generation from the start, each labeled with its step number and separated by a blank line, so you can follow the evolution or copy a single step. The output format sets which characters represent alive and dead cells — dots, digits or small blocks. An invalid pattern, such as mismatched row lengths or a shape larger than the grid, produces a plain-language error instead of a broken result.

Everything runs locally in your browser; nothing you generate is sent anywhere. Copy the result, download it as a .txt file, or send it back into the input to keep exploring.

FAQ

What rules does the simulation use?
The standard Conway's Game of Life rules: a live cell survives with two or three live neighbors, a dead cell is born with exactly three live neighbors, and every other cell dies or stays dead.
How do I enter my own starting pattern?
Set the starting pattern to custom, then type rows separated by "/" (or a line break) using the characters chosen in the custom pattern format — "." for dead and "#" for alive by default, or "0" and "1" in binary format.
What does wrap edges do?
It turns the grid into a torus: a cell that moves off one edge reappears on the opposite edge instead of dying, so patterns like the glider can travel indefinitely on a small board.
What is batch mode for?
Batch mode prints every generation from the start, each one labeled with its step number in brackets, instead of only the final result — useful for watching a pattern evolve or copying out one specific step.
Is my pattern or the grid it generates uploaded anywhere?
No. The whole simulation runs locally in your browser using JavaScript — nothing is ever sent to a server.