Skip to content
PDFGame

● Insert PDF ▸ Press start

Play games inside a PDF!

Doom, Tetris, Snake and Flappy Bird — running as real PDF files in your browser. Got a boring PDF of notes? Turn it into a game.

10
PDF games
6
Study games
0
Installs
snake.pdfScore 000
374 cells — each one a PDF form field
LV.01 Collection

Pick a game.

Every one of these is a real .pdf file. Open it in desktop Chrome or Edge and the document starts running.
All 10 games
LV.02 Convert

Got a PDF? Play it.

Drop in lecture notes, a textbook chapter or a manual. We pull out its key terms and build a game from them — right in your browser, without uploading the file.
▶ Open the converterFree · no sign-up · file stays on your device
LV.03 Printables

Or play it on paper.

Download our free Paper Games Pack — Dots and Boxes, Sea Battle, Tic-Tac-Toe, SOS and Hangman — plus open-source print-and-play gems from GitHub.
Get the printables
Dots and Boxes printable sheetTic-Tac-Toe printable sheetUltimate Tic-Tac-Toe printable sheet
LV.04 How it works

How does a PDF play?

PDF files can carry JavaScript. It was meant for validating tax forms — game makers noticed it has everything a game needs.
  1. 1

    Fields are pixels

    A form field can be shown or hidden from script. Lay out hundreds in a grid and toggle them — that's a screen.

  2. 2

    A text box is the controller

    A text field hears every key you type as event.change. Read it, move the player.

  3. 3

    app.setInterval is the game loop

    Call a function every 15–100 ms, update the state, redraw the fields.

  4. Read the full explainer
pdftris.pdf — inside
% a text field that eats keystrokes
12 0 obj
<< /Type /Annot  /Subtype /Widget
   /FT /Tx  /T (input)
   /AA << /K << /S /JavaScript
           /JS (handle_input(event)) >> >>
>>
endobj

% document script
function handle_input(event) {
  switch (event.change) {
    case 'w': rotate_piece(); break;
    case 'a': move_left();    break;
    case 'd': move_right();   break;
    case 's': lower_piece();  break;
  }
}
app.setInterval('game_tick()', 100);
The real input handler from Thomas Rinsma's PDFtris, simplified. The PDF viewer calls it for every key you press.
LV.05 Guides

Learn the tricks.

LV.06 FAQ

Questions?

Q1How can a PDF run a game?

PDF files can carry JavaScript. Viewers like Chrome's PDFium support a subset of Adobe's Acrobat JavaScript API: scripts can show and hide form fields, change their text, run timers and react to typing. Use hundreds of fields as pixels, a timer as the game loop and a text box as the controller — and the document plays.

Q2Which browser should I use?

A desktop Chromium browser — Chrome, Edge, Brave, Opera, Arc. They use PDFium, which runs the scripts. Firefox uses PDF.js, which runs a smaller subset, so only some games work there. Safari and mobile browsers don't run PDF JavaScript.

Q3What is “PDF to game”?

Our tool that turns your own document into a study game: drop a PDF of notes or a textbook chapter and get a quiz, flashcards, a matching game, a word search, hangman or a word scramble built from its key terms. It runs in your browser — the file isn't uploaded.

Q4Are PDF games safe?

The games run inside the browser's PDF viewer, which is sandboxed and only exposes a limited scripting API — scripts can't read your files or install anything. As with any file, only open PDFs from sources you trust; the ones here are hosted by us and you can inspect them.

Q5Can I download the PDF games?

Yes. Every game page has a download button. Open the downloaded file in Chrome or Edge (drag it into a tab) to play offline.

Q6Can I submit a PDF game I made?

Please do. Email [email protected] with the file and a link to the source; we credit every author on the game page.

Player 1 ready?

Open a PDF. Press play.