Upload your PDF quiz. Get a graded Google Form ready to share.

Teachers, trainers, and instructors often have years of quizzes in Word and PDF format. Rebuilding them in Google Forms means retyping every question, adding every answer option, and setting up quiz mode manually. A 50-question final exam is a long afternoon in the Forms editor.

Doc2Form does the heavy lift in under a minute:

  1. Go to doc2form.dev and sign in with your Google account
  2. Choose "Upload" and select your quiz file (PDF or Word, up to 5 MB)
  3. Doc2Form sends the document to Gemini AI, which identifies questions, answer choices, question numbers, and section breaks
  4. The Google Forms API creates a Google Form with the right question types: multiple choice, checkboxes, short text, paragraph
  5. You review the form, enable quiz mode in Google Forms settings, set point values, and mark correct answers

The conversion handles the structure - you handle the grading settings. Google Forms quiz mode (assign points, mark correct answers, show feedback) is available on any form after creation.

Based on a sample of 1,775 Google Forms generated by Doc2Form users, containing 55,761 questions across 47 languages. That is an average of 31 questions per form - roughly 21 minutes saved per form versus rebuilding each question by hand in the Forms editor (assuming ~40 seconds per question).

What Doc2Form detects in your quiz

The AI looks for exam-specific patterns:

  • Numbered questions with lettered options (A, B, C, D) become multiple-choice fields
  • True/False questions become two-option multiple choice
  • "Circle the correct answer" prompts are treated as multiple choice
  • Fill-in-the-blank (underlines, blank spaces) become short text fields
  • "Explain" or "describe" prompts become paragraph fields
  • Section headers ("Part I: Vocabulary", "Section 2: Reading Comprehension") become form sections
  • Point values (if listed) are noted but need to be set manually in quiz mode

Quizzes with consistent formatting - numbered questions, clearly labeled options, visible sections - convert most accurately.

Do it yourself - free with Google Apps Script

Doc2Form is open source. You can run it for free using Google Apps Script.

Here's the setup:

  1. Get a free Gemini API key from Google AI Studio
  2. Go to Google Apps Script and create a new project
  3. Copy the files from the Doc2Form GitHub repo: code.gs, Prompts.gs, Index.html, and appsscript.json
  4. Add your API key as a script property (GEMINI_API_KEY)
  5. Deploy as a web app

The open-source version handles all 11 question types including short answer, paragraph, multiple choice, checkboxes, and scales.

Full setup takes about 5 minutes. Instructions are in the README.

Limitations - what to expect

  • Answer keys: Doc2Form extracts the questions and options but doesn't automatically mark correct answers. You set the answer key manually in Google Forms quiz mode after conversion.
  • Image-based questions: Questions that use diagrams, charts, or images (common in science and math) won't transfer. You'll need to re-add images to the form manually.
  • Randomization: Google Forms can randomize question order and option order, but this needs to be enabled after conversion.

Sources

  • Google Forms API - programmatic form creation after AI extracts structure from your file.
  • Google Apps Script - runtime for the open-source self-host path in your Google account.
  • Gemini API - document structure analysis for question and field detection.

Common questions

Does it mark the correct answers automatically?

No. Doc2Form creates the question structure - the right number of fields with the right options. You then enable quiz mode in Google Forms, set point values, and mark the correct answers. This takes a few minutes but is much faster than rebuilding the entire quiz from scratch.

Can I use it with Google Classroom?

Yes. The generated Google Form is a standard form that works with Google Classroom's assignment feature. Create the form with Doc2Form, then assign it through Classroom as you would any quiz.

What about matching or ordering questions?

Google Forms doesn't natively support matching or drag-and-drop ordering. Doc2Form can't create question types that Google Forms doesn't have. Matching questions are best approximated with dropdown grids.

Will it work with scanned paper tests?

Scanned tests can work if the text is clear and legible. Blurry scans, handwritten tests, or low-resolution copies won't convert well. For best results, use a digitally-created PDF or Word file. See our scanned PDF guide for tips.

Is it really free?

Your first form is free - no credit card needed. After that, credit packs are available. Or self-host the open-source version for unlimited free conversions.