Import Moodle questions in GIFT format

Many teachers have years of questions stored in Moodle. GIFT, a plain-text format, lets you take them to another platform without typing them again.

By Christophe Soares, university lecturer and creator of Clausa ·

What the GIFT format is

GIFT is Moodle’s plain-text format for questions. Each question has an optional title, the question text and the answers in curly braces: “=” marks the correct answer and “~” the wrong ones.

Example: ::Capital::What is the capital of Portugal? {=Lisbon ~Porto ~Coimbra}. True/false is written {T} or {F}, and an open question with empty braces {}.

How to export from Moodle

  1. In Moodle, open the course question bank.
  2. Choose “Export” and the “GIFT format”.
  3. Pick the category to export and download the .txt file.

Things to watch out for

  • Images embedded in questions do not travel in GIFT: they need to be added again.
  • Not every Moodle question type has an equivalent elsewhere (short answer, numerical, matching).
  • Review marks and wrong-answer penalties after importing.

With Clausa

Clausa imports GIFT files into an assessment or a question bank, with a preview before you confirm. It converts true/false, multiple choice (single answer or several correct ones, including weights and penalties such as -25%) and open questions, and accepts titles, categories, comments and Markdown or HTML text.

Questions without an equivalent (short answer, numerical and matching) are listed in a warning for the teacher to review. Once imported, they can be drawn at random so that each student gets a different test.

Frequently asked questions

Can I keep using Moodle?
Yes. Many institutions keep Moodle for course content and use a dedicated platform for the exams that need more security.
Does importing delete anything?
No. In Clausa, imported questions are added to the existing ones and can be edited afterwards.

More guides