Whole apps that fit in a square

Every game and tool on this page lives entirely inside one QR code. No server. No download link. The square is the program. Scan it, save the text as an .html file, and it runs.

39programs
175 Bsmallest real app
2,953byte limit
Cartridge

This square is a whole dice game299 bytes · 61×61 · scan it and roll

How to play a square

1

Scan it

Long-press the QR code with your phone camera, or any QR reader. You'll see the program's code as plain text.

2

Save it as .html

Copy the text into a note, save it to Files, then rename it from .txt to .html. On a computer, paste it into any text file named game.html.

3

Play

Tap the file. Pink-tagged apps run right on an iPhone. Blue-tagged ones use JavaScript and need a computer browser.

The gallery

Every card is running live. Flip between styled and bare to see what the polish costs in bytes, or tap a QR code to scan it from your screen.

The size ladder

QR codes grow in steps, from 21×21 up to 177×177. Each bar shows how big a square the bare version of each program needs. The full width is the biggest QR code there is.

21×21 · smallest177×177 · 2,953 bytes max

Make your own square

Write or paste HTML and CSS. It runs as you type, and the QR code updates with it. Stay under 2,953 bytes and it fits in a single code.

Start from:

0 bytes

Questions

Is the whole program really inside the QR code?

Yes. The QR code holds the program's full source as text. Nothing is fetched from a server and there is no link inside. However you get the text out, the software came from the square.

Why do some only work on a computer?

iPhone's file preview runs HTML and CSS but blocks JavaScript. So the pink "Runs on iPhone" apps use only HTML and CSS tricks: animations, hidden checkboxes as memory, and CSS counters. The blue ones use JavaScript and need a computer browser.

How is the dice random without JavaScript?

The numbers spin past very fast in a CSS animation. Tapping Stop pauses it wherever it happens to be. Nobody can time a tap to a tenth of a second, so it lands fairly.

Does it count if it uses built-in buttons?

Our rule: the phone can draw a checkbox, but the behaviour has to come from the program. A plain text box or date picker on its own doesn't count. A timer, a dice roll or a score counter does.

Is it safe to run these?

HTML and CSS can only draw things on screen. They can't touch your files, contacts or camera. The JavaScript ones run inside your browser's normal sandbox, the same as any web page. Read the code first if you like: it's short.

How big can a program be?

The largest standard QR code is 177×177 and holds 2,953 bytes at the lowest error correction. The smallest a phone camera reads is 21×21, which holds just 17 bytes.

All 39 programs: Metronome, 1-minute timer, Pomodoro, Breathing guide, Torch, Coin flip, Rock, paper, scissors, Dice, 10-second countdown, Yes, no, maybe, Dinner decider, Water tracker, Score counter, Business card, Packing checklist, Fortune cookie, Bubble wrap, Flashcards, Scratch card, Memory match, Greek phrasebook, QR code quiz, Pixel pad, QR Dungeon, Tic-tac-toe, Calculator, Km to miles, Autosave notepad, Word counter, Stopwatch, Password generator, Tip splitter, Drawing pad, Reaction timer, Mini piano, Breakout, Snake, 2048, Tetris.