esolang
Languages · Families138 languages

Two-dimensional languages

138 languages in the esolangs.org category Two-dimensional languages, by group.

Turing tarpits

Functional and concatenative

Rewriting

Spatial (2D and up)

Befunge

Code on a grid. The instruction pointer walks in four directions, wraps at the edges, and can rewrite the grid it walks on.

1993●●○runnable

Befunge-96 and Funge-97 (MTFI)

The drafts between Befunge-93 and Funge-98, from one line up to seven dimensions, with a stack that can be worked from the bottom.

1993●●●runnable

Fish (><>)

A fish swims through a 2D codebox, bouncing off mirrors, carrying a stack of stacks. One wrong move and something smells fishy.

2009●●○runnable

Piet

Programs are pictures that look like Mondrian paintings. A command is not a colour but a change of colour.

2001●●○runnable

Aheui

A Befunge written in Korean. Each Hangul syllable is one command, and its vowel decides where the cursor goes next.

2005●●○runnable

AsciiDots

The program is a drawing of pipes. Dots carrying numbers run along them, all at once, and meet at operators.

2017●●○runnable

SNUSP

Brainfuck drawn as a railway map. Loops are real loops of track, and the train stops when it runs off the edge.

2003●●○runnable

Befunge-98

Befunge without walls. The grid never ends, a program can hold a stack of stacks, and one instruction splits the pointer in two.

1998●●●runnable

Unefunge and Trefunge

Befunge’s commands on a line (Unefunge) and in three dimensions (Trefunge), from the Funge-98 family.

1998runnable

Unefunge-98 and Trefunge-98

Funge-98 on a line and in a cube. The same instructions as Befunge-98, with one direction pair fewer or one more.

1998●●●runnable

Funciton

Programs drawn with box-drawing characters. Boxes are functions, lines carry numbers, and the one loose wire is the output.

2011●●●

Brainloller

brainfuck as a picture. Each colour is a command, and two more colours turn the pointer. This implementation writes the colours as letters.

2005runnable

PATH

brainfuck drawn on a grid. Arrows turn only when the cell is not 0, so a loop is a closed path with an exit.

2003runnable

Wierd

The program is a drawing of wires; the angle of each turn in the wire is the instruction.

1997runnable

Hexagony

The source is folded into a hexagon. Six instruction pointers wait in its corners, and memory is a hexagonal grid too.

2015●●●runnable

Argh!

A Befunge where the letter case says which way to look: uppercase reads the cell above, lowercase the cell below.

2004●●○runnable

"*><> (Starfish)"

><> with functions, a way to swim past code without running it, and a fisherman who pulls the fish down a line and back.

2016●●○runnable

LNUSP

Five commands on a two-dimensional grid of code, steering through a two-dimensional grid of memory.

2004●●●runnable

Half-Broken Car in Heavy Traffic

You are a car on a chaotic highway. Every road sign you obey also changes your memory, and you cannot turn left.

2011●●●runnable

MarioLANG

The program is a Super Mario level. Mario walks over it, falls off ledges and rides elevators, and the items he touches are brainfuck.

2009●●○runnable

Re:direction

Four arrows and a diamond. Every arrow the pointer runs is remembered on a queue, and the queue is all the memory there is.

2018●●●runnable

SuperMarioLang

A brainfuck tape worked by Mario, who walks along the ground, falls into holes and rides elevators.

2009●●○runnable

Archway and Archway2

Brainfuck on a grid where the only loops are arches, drawn so that no wire ever crosses another.

2005●●○runnable

Dig

A mole crawls over a grid. Above ground it can only turn; to do any work it has to dig.

2020●●○runnable

Fishing

A fisherman walks along a dock, casts his line, and whatever fish he catches is the instruction.

2013●●○runnable

HZCode

A Befunge of Chinese characters, run by a queue of instruction pointers.

2023●●○runnable

Labyrinth

The program is a maze. There are no arrows: the instruction pointer follows corridors, and at every junction the stack decides which way to turn.

2015●●○runnable

MineFriff

Befunge and ><> brought into Minecraft. Each command is a block, and a program can be built in a world as well as typed.

2018●●○runnable

Minimal-2D

brainfuck on a grid with direction letters U D L R, and / to skip the next command when the cell is 0.

2009runnable

RASEL

A Befunge that cannot write to its own code, and gets random access to its stack instead.

2020●●○runnable

Stackowey

A wrapping grid, one stack, and mirrors that only reflect when a comparison says so.

2025●●○runnable

(top, height)

The stack is the instruction pointer. Its top value picks the column and its height picks the row.

2021●●●runnable

ADJUST

A Divergent Jumble of Unrelated Symbolic Terms. Every printable character is an instruction, and what it does depends on its prime factors.

2005●●●runnable

Cardinal

Pointers fly out of every % in all four directions, and each carries only two numbers.

2010●●○runnable

Eso2D

A fungeoid that wraps at every edge, steering one pointer along a tape of bytes.

2020●●○runnable

Jolverine

One symbol does everything. Which thing it does depends on a wheel of seven instructions that reshuffles itself each time it is used.

2012●●●runnable

Madbrain

The program runs down the lines, but each line runs only one of its characters. Which one is up to a second pointer.

2010●●○runnable

Reflecto

A stack language drawn as a room of mirrors.

2025●●○runnable

Trajedy

Befunge with the stack taken out. All that is left to remember with is where the pointer is.

2017●●●runnable

Alice

Two languages on one grid. Moving straight it works on integers, moving diagonally on strings.

2017●●●runnable

axo

A Befunge relative whose strings still obey the arrows, so a message can turn a corner in the middle of a word.

2004●●○runnable

Beam

A beam of light carries one byte across a grid of mirrors, and a store beside it counts the loops.

2012●●○runnable

Beeswax

Bees crawl over a hexagonal honeycomb, each carrying a stack of three numbers.

2015●●●runnable

But Is It Art?

A program is a box of tiles. It succeeds when they tile a rectangle that spells its input.

2017●●●runnable

Pirandello

Six signs of arithmetic, and not one of them does arithmetic the way you think.

2011●●○runnable

Shove

A 2D language that never overwrites code. It shoves strings in, and the rest of the row slides out of the way.

2008●●●runnable

Spiral

The pointer rolls along tracks of code like a train, and at every cell it tries to turn.

2003●●●runnable

Wumpus

A Fungeoid on a grid of triangles, with twenty registers on a die that rolls across the code.

2018●●●runnable

Ziim

Arrows that point at arrows. An arrow's instruction is whatever points at it, and at what angle.

2011●●●runnable

2Deadfish

Deadfish laid out on a grid, where every command also turns the pointer.

2021●○○runnable

A Slow Language

A turtle walks the grid and works a stack, and being a turtle, it takes its time.

●●○runnable

Befalse

FALSE's stack, Befunge's grid and SNUSP's mirrors and calls, glued together without a single letter.

2005●●○runnable

Blockfunge

Befunge cut into boxes. Each box is a function, and an arrow points at it from its name.

2019●●○runnable

BooleanFunge

A fungeoid where every turn leaves a boolean on the stack.

2023●●●runnable

Brafunge

Brainfuck's tape, steered by Befunge's pointer.

2025●●○runnable

Clockwise

A pointer that can only turn right, and a program that ends when it comes home.

2020●●○runnable

CSL

Command Stack Language. Instructions are not run when they are read; they are stacked up and run later, last one first.

2016●●○runnable

Cubix

The code is folded onto a cube, and the pointer walks over its edges onto the next face.

2016●●○runnable

Electra

You wire it like a circuit. Currents run along cables, split at every junction and die on bare ground.

●●●runnable

Excellerated Short-Term Memory Loss

A spreadsheet that forgets. Each cell has a stack of three, and keeps one value when the program moves on.

2021●●○runnable

Flobnar

Befunge turned functional. Nothing moves; every cell is an expression that asks its neighbours for values.

2011●●●runnable

Klein

A 2D language that runs on a surface of your choosing: a torus, a Klein bottle, a projective plane.

2017●●○runnable

Lost

The pointer starts on a random cell, moving in a random direction. A program has to find it and lead it home.

2017●●●runnable

Manufactoria

A factory floor drawn in letters. A robot rides the belts with a queue of colours, and the machine decides where it ends up.

2014●●○runnable

Marbelous

A marble run. Byte-valued marbles fall down a board of two-character devices, all at once, tick by tick. Whatever falls off the bottom is printed.

2014●●○

Mazerunner

A rat solves the maze with its left hand on the wall. The instructions are what it steps on.

2023●●○runnable

MiLambda

A two-dimensional language written in Greek. The program ends at λ.

2015●●○runnable

Nhohnhehr

One small square room that never changes. Walk out of it and a turned copy of the room appears on the other side.

2010●●●runnable

Planes

Every line is a little program of its own, and each one remembers where it stopped.

2025●●○runnable

Quipu

Knotted cords, after the recording devices of the Inca. Each cord is a column of knots and works out one value.

2013●●○runnable

Rail

The program counter is a train. It can only go where track has been laid, and it cannot turn sharper than 45 degrees.

2005●●●runnable

Recurse

Befunge cut into boxes. Each box is a function, and a call keeps the way the pointer was going.

2006●●●runnable

refract

><> with blocks, a portal and stacks inside stacks.

2015●●○runnable

Reversible-2D

Threads crawl over a grid and trade values with it. Every step is meant to run backwards as well as forwards.

2010●●○runnable

Simplefunge

Befunge with the clever parts taken out: arrows, a stack, and two ways to dig into it.

2014●○○runnable

Surface

The program and its memory are both drawn on a Klein bottle, and every arrow moves both pointers at once.

2011●●●runnable

Swordfish

A smaller ><>. Whatever the pointer swims past that is not a command sticks to the var.

2013●●○runnable

Track

Brainfuck's cells, laid out as a railway. The only switch reads a number.

2009●●○runnable

Watnoxt

What? 1? Next line! Three instructions on a row of bits, and the line you are on decides what happens at its end.

2022●●○runnable

2DFIM

Two instructions on a grid, and the only jump is a step down.

2026●●●runnable

Aceto

The pointer does not move in lines. It follows a Hilbert curve through a square of code.

2017●●○runnable

Bouncy

Four mirrors, four modes. The same wall bounces, vanishes, steers along or steers across.

2024●●○runnable

BrainSpace 1.0

Brainfuck's tape, steered by a Befunge pointer that bounces off PingPong mirrors.

2008●●○runnable

Cuboid

Draw a box in ASCII art, and its volume is the character it prints.

2022●○○runnable

DOBELA

Dots of 0 and 1 fly across the grid, bounce off walls and crash into each other. The only memory is one queue of bits.

2008●●●runnable

Fission

Atoms fly over the grid, splitting and fusing, and the program ends when the last one is gone.

2014●●○runnable

Flux (Esolangist)

Befunge's playfield, with loops you can name and a way back to where you were.

2025●●○runnable

Foldy

A 2D language that starts out as a single line, and folds itself into a grid as it runs.

2025●●○runnable

Grok

Befunge as a Vim user would write it. hjkl steer, i starts typing and a backtick escapes.

2021●●○runnable

Hanabi

Every instruction is a dot, and what it does is the empty space around it.

2018●●●runnable

Hive

Every ant carries one number. To add two numbers, two ants have to meet.

2023●●●runnable

Interlude

A program in acts, split by pipes. Each act is a small program of its own, and a run has to pass through at least two.

2021●●●runnable

Javagrid

A program is a table of cells, and each cell calls a neighbour, carrying a cube that rolls on the way.

●●○runnable

Left Curly Brace Symbol

Its real name is {. A pointer walks a path of braces, and a digit picks what each } does.

2022●●○runnable

Lenta

Befunge's grid on top of brainfuck's tape, with one buffer in between.

2011●●○runnable

Malfunge

Befunge where the arrows are retroreflectors. Run into the open side of one and you bounce straight back.

2021●●○runnable

OW-1

Two cells, one buffer and a grid of arrows. Every sum lands in the buffer first.

2022●●○runnable

Rain

The pointer only falls or climbs. To move sideways it has to make a call.

2017●●●runnable

Ropy

The program is a rope of characters, and the pointer crawls along it.

2012●●●runnable

Snake Shit

A snake crawls over the program. The only number it has is the length of its tail.

2022●●○runnable

Suich

Every step moves one line down and one column right, so the program runs along a diagonal that wraps.

2019●●●runnable

Triangular

The code is folded into a triangle, and the pointer walks it in eight directions.

2017●●●runnable

Uzumaki

Every program is a square, and the code runs round it in one spiral towards the middle.

2022●●○runnable

v³

A two-dimensional program folded onto a cube, and the instruction pointer falls with gravity.

2021●●●runnable

Versert

What happens to Befunge when you take away its stack? Two registers and a pointer into the code are left.

2005●●○runnable

Virage

A program is a drawing of a graph. Each vertex does what the angles of its edges say.

2019●●●runnable

YATDEL

Yet another two-dimensional esoteric language. Pointers walk a grid with a stack each, split in two and step down into other files.

●●○runnable

At some land

A Befunge-like grid without wrap around. Step off the edge and the program is over.

●●○runnable

Bot Engine

Bots carrying queues of symbols roll over a grid of instructions, as in the game Manufactoria.

2015●●○runnable

Direction

A 2D language where every arrow is gone once you have stepped on it.

2024●●○runnable

Forked

A two-dimensional language whose only conditional is a fork in the road.

2017●●○runnable

JollyScript

Every program is a Christmas tree, and the cursor falls through it from the star to the trunk.

●●○runnable

Laser

A beam of light with a colour and a brightness. What a mirror or a sign does depends on which way the beam is going.

●●○runnable

Mail

A two-dimensional language where a string is written as a string and 256 as 256.

●○○runnable

Minkolang

A 2D language with time as a third dimension. On a space, the pointer falls to the next layer.

2015●●●runnable

Moving donut

A donut rolls through a maze and runs whatever it rolls over.

2023●○○runnable

Nix

Befunge squeezed onto one line. The pointer runs left or right, and the line wraps around.

●●○runnable

Number2D

Seven digits on a grid. Two of them turn, three work the tape of bits, one prints a byte and 0 stops.

2022●●○runnable

Ratsize

A program read from the bottom up, one queue, and a pointer that can only climb.

●●●runnable

Super SNUSP

SNUSP's mirrors and tape, with a command for almost every printable character.

●●○runnable

Timeline

A grid that is really a stack of grids. Every letter shows another value on every layer, and the pointer can only go down.

2025●●●runnable

Hostile

Strange time

Jokes

Artificial life