Google Docs to Forms - Formswrite.com logo
BlogPricing

Moodle XML Converter: Turn Documents into Quizzes

AD

Adele

Nov 09, 2025

Moodle XML Converter: Turn Documents into Quizzes

Moodle XML Converter: Turn Documents into Quizzes

Convert documents into a Moodle XML quiz file with Formswrite
Convert documents into a Moodle XML quiz file with Formswrite
To convert your questions into Moodle XML, upload your document to Formswrite and click Convert. Formswrite reads each question, its answer options, and the correct answers, then gives you a Moodle XML file you import straight into the Moodle question bank. There is no manual XML editing.
Building a Moodle quiz by typing every question into the question bank is slow. The Moodle XML format lets you import a whole quiz at once, but writing that XML by hand is fiddly. A converter does it for you.

What is the Moodle XML format

Moodle XML is the file format Moodle uses to import questions into the question bank. One file can hold many questions, each with its text, answer options, correct answers, and feedback. Once a quiz is in Moodle XML, you import it into any course in a few clicks, and you can reuse it across courses.

What a Moodle XML file looks like

A Moodle XML file wraps each question in a question tag with a type, such as multichoice, truefalse, or shortanswer. Each answer carries a fraction value that sets its mark, so the correct option scores full marks. Here is roughly what a multiple choice question looks like before and after conversion:
textWhat is the capital of France?
*Paris
Lyon
Marseille
xml<question type="multichoice">
  <name><text>What is the capital of France?</text></name>
  <answer fraction="100"><text>Paris</text></answer>
  <answer fraction="0"><text>Lyon</text></answer>
  <answer fraction="0"><text>Marseille</text></answer>
</question>
Formswrite writes all of these tags for you, so you never edit XML by hand. Moodle also supports a plain text format called GIFT, but Moodle XML carries more, including per question feedback, which is why Formswrite exports XML.

How to convert a document to Moodle XML

Step 1: Prepare your document

Write your questions in a Word file, PDF, or Google Doc. Put each question on its own line, list the answer options under it, and mark the correct answer, for example with an asterisk.

Step 2: Upload it to Formswrite

Open the documents to Moodle converter and upload your file. Formswrite accepts Word, PDF, Google Docs, and Google Sheets.

Step 3: Convert to Moodle XML

Click Convert. Formswrite reads your questions, answer options, and correct answers, and builds a Moodle XML file you can download.

Step 4: Import into Moodle

In your Moodle course go to the question bank, choose Import, select the Moodle XML format, upload the file, and confirm. Your questions appear in the bank, ready to drop into a quiz.

Step 5: Review and test

Check the imported questions and run a quick test attempt so you know the options and answer keys came through correctly.

What carries over

  • Multiple choice and true or false questions, with their options
  • Short answer questions
  • The correct answers, so a graded quiz stays graded
  • Question order

Convert Word, Excel, or PDF to Moodle XML

To convert Word to Moodle XML, upload your document and Formswrite turns each question into the Moodle XML format, ready to import. Spreadsheets and PDFs work the same way. For step by step guides, see the word to Moodle XML converter, the Excel to Moodle quiz guide, and the PDF to Moodle quiz guide.

FAQ: converting documents to Moodle XML

What is the Moodle XML format?
Moodle XML is the file format Moodle uses to import questions into the question bank. A single file can hold many questions with their options, correct answers, and feedback, so you import a whole quiz at once instead of typing each question.
Can I convert Word to Moodle XML?
Yes. Upload a Word document to Formswrite and click Convert, and you get a Moodle XML file ready to import. PDF, Google Docs, and Google Sheets work the same way.
Can I import questions from Excel into Moodle?
Yes. Put your questions and answer options in an Excel or Google Sheet, convert it with Formswrite, and import the resulting Moodle XML file into your question bank.
What question types does it support?
Multiple choice, true or false, and short answer questions all carry over, with the correct answers marked so a graded quiz stays graded.
Do I need to edit XML by hand?
No. Formswrite writes the Moodle XML for you. You upload a document, click Convert, and download a file that imports straight into Moodle.
How do I import the XML file into Moodle?
In your Moodle course open the question bank, choose Import, select the Moodle XML format, upload the file, and confirm. The questions appear in the bank, ready for a quiz.
Is there a limit to how many questions I can convert?
Formswrite handles long documents, so you can convert an exam with hundreds of questions in one pass rather than splitting it up.
Why will my Moodle XML file not import?
Most import errors come from a malformed file or the wrong import type. Make sure you pick the Moodle XML format on the question bank import screen. Because Formswrite writes the XML for you, the structure stays valid, which avoids the common hand editing mistakes.

Turn your document into an LMS quiz

Convert a PDF, Word, or Google Doc into a Moodle, Canvas, or Blackboard quiz import.

Convert for your LMS

Or go straight to a converter: Google Docs to Forms, PDF to Google Form, Word to Google Form, Google Forms Quiz Generator


Share this post with your network

Back to Blog
Formswrite

Ask AI to compare Formswrite for you:

ChatGPTClaudeGeminiPerplexityGrok

Company

About usPricingContact usTerms of ServicePrivacy PolicyRefund PolicyAffiliate Program

Formswrite is the AI-powered form builder for educators, training centers, and businesses that need to convert documents into Google Forms, quizzes, and assessments without rebuilding from scratch. Upload a Google Doc, Word, PDF, image, or spreadsheet - Formswrite extracts the questions, structure, and grading rules, then exports to Google Forms, Canvas, Moodle, Kahoot, Quizizz, and more.

Trusted by educators, training teams, and HR departments worldwide. Formswrite's AI tools - quiz generator, worksheet generator, lesson-plan generator, rubric generator, and flashcard builder - are centralized in one platform.

Our brands

Docswrite logo

Docswrite

Zoral logo

Zoral

JobsPipe logo

JobsPipe

Parsley logo

Parsley

© 2026 Formswrite. All rights reserved.

Terms
Privacy
llms.txt
llms-full.txt