How to convert a document to a Google Form with Doc2Form

Google Forms doesn't have a built-in import feature. You can't upload a file and get a form. That's the problem Doc2Form solves - it reads your document, extracts the questions, and creates a real Google Form in your Drive.

Here's how it works:

  1. Go to doc2form.dev and sign in with your Google account
  2. Choose "Upload" for a file, or "Describe" if you don't have a document yet
  3. For uploads: select a PDF or Word file (up to 5 MB). For descriptions: type what you need in plain English
  4. Doc2Form sends your content to Gemini AI, which identifies questions, answer options, field types, and section breaks
  5. The Google Forms API creates a native Google Form in your Drive with the extracted structure
  6. You get an edit link and a share link - review, tweak anything, and share

The process takes under a minute for most documents. Your files aren't stored after the form is created.

Supported document types

Doc2Form handles different input types, each with its own processing path:

Format How it's processed Best for
PDF (.pdf) Sent as binary to Gemini AI for text + structure extraction Surveys, applications, quizzes, intake forms
Word (.docx) Mammoth.js extracts text and formatting, then AI analyzes structure Tests, questionnaires, checklists, templates
Google Doc Export as .docx or PDF, then upload (see Google Doc to Google Form) Team templates and drafts that live in Docs
Plain text Your description goes directly to Gemini as a prompt Building forms from scratch without a source document
Scanned PDF OCR-style processing through Gemini's vision capabilities Paper forms with clear printed text

For detailed guides on each format, see PDF to Google Form, Word to Google Form, and Google Doc to Google Form.

What Doc2Form detects in your document

The AI maps document content to Google Form question types:

  • Multiple choice (A/B/C/D options, radio buttons) → multiple-choice fields
  • Checkboxes ("select all that apply") → checkbox fields
  • Short answer (name, email, ID number) → short text fields
  • Long answer ("describe your experience") → paragraph fields
  • Dropdowns (predefined option lists) → dropdown menus
  • Rating scales (1-5, 1-10, Likert) → linear scales
  • Date and time → date/time pickers
  • Grid/matrix (rate multiple items on one scale) → grid fields
  • Sections (page breaks, section headers) → form sections

11 question types are supported - the full set that Google Forms offers.

Do it yourself - free with Google Apps Script

Doc2Form is open source. You can self-host it for free using Google Apps Script and a Gemini API key.

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 script handles both upload mode (PDF and Word) and describe mode. PDFs are sent as base64 binary to Gemini, Word files are processed through Mammoth.js first, and descriptions go directly as prompts. All three paths end with the Google Forms API creating the form.

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

Limitations - what to expect

  • File size: 5 MB max per document (Google Apps Script constraint)
  • Image-only content: Text embedded in images, charts, or diagrams isn't extracted. The document needs readable text.
  • Complex layouts: Multi-column forms, heavy graphics, or non-standard formatting may produce less accurate results. Simple, linear layouts convert best.
  • Not 100% perfect: Always review the generated form before sharing. Think of it as a first draft that saves you 90% of the manual work.

Common questions

Which format produces the best results?

Word (.docx) documents tend to convert most accurately because they carry rich formatting information. Digitally-created PDFs are a close second. Scanned PDFs depend heavily on scan quality.

Can I convert multiple documents at once?

Currently Doc2Form handles one document at a time. Upload one, get a form, then upload the next.

What happens to my document after conversion?

Documents are processed to extract the form structure and then discarded. Doc2Form doesn't store your files.

Does the generated form look exactly like my document?

The form preserves the question structure - field types, options, sections - but not the visual layout. Google Forms has its own styling. If you need exact visual replication, Google Forms isn't the right tool.

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.