How to Import a Quiz Into Moodle From a PDF With AI

2026/06/27

Click to upload or drag and drop

PDF, DOCX, PPTX, TXT, JPG, JPEG, PNG, HEIC, ODP, ODT, BMP, or TIFF

up to 20MB

Please wait, your quiz is being created...

Uploading...

To import a quiz into Moodle from a PDF, write the questions and answers first with an AI quiz maker that reads your document, then bring the finished set into Moodle's question bank using a supported import format such as GIFT, Aiken, or Moodle XML. Moodle has no built-in feature that writes questions from a file, so the fast path is to draft the items in a dedicated tool, review them, save them in one of Moodle's plain-text formats, and import that file. That turns an afternoon of typing a quiz into a few minutes of generating, checking, and importing.

Moodle runs the assessments at a large share of US universities, community colleges, and corporate training programs. The quiz engine is genuinely strong: question banks, random question draws, timers, multiple attempts, and automatic grading. The slow part is everything that comes before it. You still have to read the source, decide what to test, and type each question, each correct answer, and each distractor into the Moodle editor one field at a time. That data entry is the part nobody has time for mid-term. This guide covers both the manual Moodle build and the faster route: let AI draft the questions from your existing PDF, slides, or lecture notes, then import them straight into your Moodle question bank.

How do you make a quiz in Moodle?

You make a quiz in Moodle by turning on editing in your course, adding a Quiz activity, setting its options, and then either typing each question into the question bank or importing a question file. Here is the full sequence:

  • Add the Quiz activity. Turn editing on, click Add an activity or resource, and choose Quiz. Give it a name and instructions.
  • Set the rules. Choose timing, attempts allowed, grading method, question behavior, and review options.
  • Build the question bank. Open the question bank for the course and add each question, or import a file of questions (the fast path).
  • Add questions to the quiz. Open the quiz, click Add, and pull questions from the bank or add a random set from a category.
  • Save and preview. Preview the quiz, set it to show to students, and Moodle auto-grades the objective items.

None of these steps are hard on their own. The work is upstream: reading the chapter and writing items that actually test understanding. That is the part you can hand to AI.

How do I import a quiz into Moodle from a PDF?

Import a quiz into Moodle from a PDF by generating the questions and answers with an AI quiz maker first, then saving them in a format Moodle can read and importing that file into the question bank. This keeps the part Moodle is good at (delivery, grading, and analytics) and removes the part it is slow at (writing every question). The workflow looks like this:

  • Upload your PDF, lecture notes, or textbook chapter to a PDF to quiz tool that reads documents end to end.
  • Generate questions and answers and choose how many you want and which types. The AI pulls the key facts from the file and writes plausible distractors.
  • Review and edit the draft so every item tests what your course objectives actually require.
  • Save the questions in a Moodle import format (GIFT, Aiken, or Moodle XML), then import that file into your course question bank.

If your source is a slide deck, the same path works after you export it to PDF, and our slides to quiz tool is built for exactly that. Instructors who want a tool tuned to classroom assessment can start from our quiz maker for teachers. The advantage of generating outside Moodle is control: a dedicated tool reads the whole document, not a fragment, and you can regenerate weak questions before any of it reaches your gradebook.

How do I import questions into the Moodle question bank?

You import questions into the Moodle question bank by going to the question bank in your course administration, choosing Import, selecting the file format, dragging in your file, and clicking Import. Moodle reads the file and builds each question for you in the category you pick. The catch is saving the questions in a format Moodle accepts, so the next section covers which format to use.

Because the AI already pairs each question with its correct answer and distractors, you copy those into the right text layout, save the file, and import it. That is far faster than retyping a hundred questions inside the Moodle editor. You can import into a fresh category named for the quiz, then pull from that category when you build the activity, which keeps a reusable bank for next term.

What file formats can Moodle import?

Moodle can import Aiken, GIFT, Moodle XML, Blackboard, Examview, Embedded Answers (Cloze), Missing Word, WebCT, and a few others. For AI-generated questions, three formats cover almost every need, and the table below shows when to use each.

FormatFile typeBest forNotes
AikenPlain text (.txt)Multiple choice onlySimplest layout; answer line starts with "ANSWER:" and a capital letter
GIFTPlain text (.txt)Mixed question typesUses = for correct and ~ for wrong answers; leave a blank line between questions
Moodle XMLXML (.xml)Everything, including feedbackThe recommended format; carries the most question data

For a quick multiple-choice quiz, Aiken is the least fussy: question text, the lettered options, then an ANSWER line. For a mix of true/false, matching, and short answer, GIFT or Moodle XML is the better fit. When AI writes the questions, ask for a single, consistent structure so the file imports cleanly the first time. If your institution runs a different LMS, the same approach works on Blackboard and Canvas.

Can you import a quiz into Moodle from Word or Excel?

Not directly. Moodle cannot read a raw Word document or an Excel sheet as a quiz, so the questions have to be converted into GIFT, Aiken, or Moodle XML first. The practical path is to keep the AI-generated questions in a simple, consistent layout (stem, correct answer, then distractors), paste them into the text format that matches your question types, save it as a .txt or .xml file, and import that. Some campuses also license add-ins that turn a formatted Word table into GIFT, so check your own Moodle support pages.

The reason this matters: a clean, consistent source format is what makes the conversion painless. When AI writes the questions, you can request one question type at a time and a uniform structure, which keeps the formatting from breaking on import. That consistency is hard to hold when you type a long quiz by hand.

Can AI create a Moodle quiz?

AI can write every question, correct answer, and distractor for a Moodle quiz from your own material in under a minute, then you save the set in GIFT, Aiken, or Moodle XML and import it. Moodle itself does not generate questions from a document, so the AI step happens in a separate quiz tool that reads the entire source and lets you review before anything reaches the gradebook. That gives you a sharper assessment from a long PDF than typing items one by one in the Moodle editor.

Question quality tracks source quality. Clear notes with full sentences produce better items than a file that is mostly headings or images. For higher-stakes exams, generate more questions than you need, keep the strongest, and lean on a tool that writes solid distractors; you can draft a full set with an AI MCQ maker and carry the items into Moodle, or run them as a standalone online test for your class.

How many questions should a Moodle quiz have?

A Moodle quiz works best at 10 to 20 questions for a single topic or weekly check, and 30 to 50 for a unit test or final. Past that, students fatigue and timed sessions run long. Match the count to the weight of the assessment and the time you give: roughly one minute per auto-graded multiple-choice question is a safe planning estimate.

Aim for coverage over volume. A focused quiz that touches every learning objective beats a long one padded with trivia. When you generate from a file, start near that range and cut any question that tests a detail outside your objectives. For more on writing items Moodle can auto-grade fairly, see our guide to writing good multiple choice questions, and if you also deliver outside Moodle, our walkthrough on making a self-grading quiz in Google Forms.

What if my source is a scanned handout or textbook page?

If your material is a scanned handout or a photo of a textbook page, run it through OCR first so the text is machine-readable, then generate questions from the clean file. An AI quiz maker writes from text, not from a flat image, so a scan with no recognized characters gives it nothing to work with. Tools like docuocr.com convert a scanned document into selectable text you can then turn into a quiz.

Once the page is OCR'd, the rest of the flow is identical: upload, generate, review, save in a Moodle format, and import into your question bank. This is the path for older course packets, printed readings, and anything that started life on paper.

Importing a quiz into Moodle from a PDF comes down to two halves: write the questions, then deliver and grade them. Moodle handles delivery, grading, and analytics well and leaves you the writing, with no built-in reader for your file. Hand the question-writing to an AI quiz maker that reads your whole PDF, slides, or notes, review the draft, save it as GIFT, Aiken, or Moodle XML, and import it into your question bank. You keep Moodle for everything it does well while skipping the hours of typing. If the quiz doubles as a required-training or academic-integrity record, you can attach a signed acknowledgment with signsend.com, and course creators who want to turn the same lesson into a published article can do it with rankable.ai. Once you have run the loop once, every document you own is an assessment waiting to happen.