Skip to content

Bubble sheet generator and camera scanner

Design the bubble answer sheet for your test, download it as a PDF and photocopy it. Then enter the answer key once and grade each sheet with a photo: the tool reads the bubbles, counts the correct answers, shows you the marked sheet and builds a class results table you can download as CSV. Everything happens in your browser.

Works anywhere in the world, wherever you are.

Bubble sheet and grader

Step
Paper
Options per question

Sheet code: L20-4

It's printed at the top right of every sheet. The key and the grader use this same layout.

Sheet preview

Sheet preview L20-4

Print at “Actual size” or “100%”, not “Fit to page”, and don't trim the margins: the four black squares must print in full. Photocopies work too.

About this calculator

How it works, in three steps

1. Print: choose how many questions the test has (10 to 100), how many options (2 to 5, A to E) and the paper (Letter or A4). Add a title if you like and download the PDF. Every sheet has a name box and an ID or class box, four black squares in the corners and a code such as L40-5 (Letter, 40 questions, 5 options).

2. Answer key: tap the correct answer for each question, or type it in one go, for example “ABDCA…” or “1A 2C 3B”. The key is saved in this browser under the sheet code, so you can close the page and carry on another day.

3. Grade: take a photo with the camera from the page or upload an image. In a second or two you see the percentage, the number correct, blank questions and the sheet with every answer circled in green (correct), red (wrong) or orange (needs a look). Type the student's name and add them to the table.

How the bubbles are read (no artificial intelligence)

This is classic optical mark recognition, the same idea behind the scanner sheets schools have used for decades. The photo is turned to grayscale and an adaptive threshold is applied: each point is compared with the brightness around it, which is why uneven light and soft shadows are tolerated.

Next it finds the four black corner squares and the small square next to the top-left one, which tells the orientation. From those four positions it computes a perspective transform (a homography) that maps every bubble on the printed sheet to its place in the photo, even if the sheet is turned, tilted or upside down.

Finally it measures how much of the centre of each bubble is filled and compares it with the other bubbles of the same question. A single dark bubble is the answer; two or more dark ones are marked “several”; a very partial mark, or a badly erased answer next to another, is marked “unclear”. Those questions earn nothing until you pick the answer by hand.

How to take a good photo

Lay the sheet on a table with all four black squares inside the frame and hold the phone roughly parallel to it. It doesn't need to be perfectly straight: a moderate tilt, or the sheet lying sideways, is corrected automatically.

Look for even light. A sharp shadow from your own phone or hand is what confuses any mark reader the most; if a shadow crosses the bubbles, those questions usually end up flagged for a look. Avoid flash glare on glossy paper too.

If the tool can't find the squares it tells you what to do: move closer, frame the whole sheet or uncover a corner. If the bubbles don't line up with the chosen layout it says so; nearly always the code printed on the sheet isn't the one selected.

Reading the result and using the table

The percentage only counts questions that have an answer in the key. A question with no key answer (one you dropped, say) counts neither for nor against. Blank, “several” and “unclear” answers score zero until you fix them in the “Answer by question” list.

Example: a 40-question test with 34 correct is 85%. If one of the unclear questions was actually right and you pick it by hand, it becomes 35 out of 40, or 87.5%.

The results table only lives in the open tab. Download the CSV before closing it: one row per student with correct, possible, percentage and the letter read for every question (empty if blank, * for several marks and ? for unclear), ready for a spreadsheet. To convert the score to a grade, use the grading scale tool.

Paper, printing and photocopies

Pick Letter if you print in the United States, Canada, Mexico and much of the Americas, and A4 almost everywhere else. The layout changes slightly with the paper, which is why the code starts with L (Letter) or A (A4).

Print at “Actual size” or 100%. Scaling a little up or down doesn't stop the reading, because everything is measured from the corner squares, but trimming the margins does if a square is lost. Black-and-white photocopies work well as long as the squares come out solid black.

Important limitations

  • It only reads sheets made with this tool: it needs the corner squares and the layout code. It can't read other systems' sheets.
  • It reads one answer per question (multiple choice, A to E). It doesn't read open questions, handwritten names or bubbled ID numbers: you type the name when you save the result.
  • Hard shadows, strong glare, very blurry photos or photos taken from far away can produce questions to check. Always look at the orange ones before recording a grade.
  • A bubble with a very faint mark or a big smudge may be read differently from what the student meant. The tool flags it as unclear, but the final call is the teacher's.
  • The key is stored only in this browser and the table only in the open tab; clearing browser data or closing the tab removes them.

Frequently asked questions

No. The image is processed on your device and not stored: it's gone when you read another sheet or close the page. Names and answers aren't sent anywhere either.

No. It uses classic image processing: an adaptive threshold, detection of the corner squares, a perspective transform computed with linear algebra and a comparison of how filled each bubble is. The same photo always gives the same result.

The question shows in orange as “several” or “unclear” and scores zero until you choose the right answer in the list. A light smudge next to a clear answer is ignored.

Yes, both, as long as the mark is dark and fills the circle. A soft graphite pencil (HB or No. 2) or a black or dark blue pen gives the clearest readings. A cross or a check mark covers little of the circle and is usually flagged as unclear.

Yes. The sheet only depends on the number of questions, the options and the paper. Two tests with the same layout share a code; when you switch tests, update the key in step 2 before grading.

No. You can also scan the sheets or photograph them with any camera and upload the images from a computer. JPG, PNG and WebP work.

This calculation runs in your browser and is never sent to a server. Your last values may be saved on your device only, for convenience. Results are estimates and are not financial, tax, accounting or legal advice.