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
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
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.
Related tools
Grading scale chart generator
School & classroom
The full score-to-grade chart for your test, on your country's scale.
OpenGrade Calculator
Math
Your weighted grade, what is still ungraded and your letter.
OpenFinal Grade Calculator
Math
What you need on the final exam for the grade you want.
OpenMean, Median and Mode Calculator
Math
Paste your numbers: mean, median, mode, range and standard deviation.
OpenPrintable calendars and planners
Everyday
Print-ready calendars, timetables, lists and planners as PDF
OpenAbout 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
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.