GIFT format converter: convert questions to Moodle GIFT
GIFT is a plain-text question format that Moodle can import. If you have questions in a document or a chatbot reply, this free tool turns them into a GIFT file you can download.
What GIFT looks like
Each question is one block: an optional title in double colons, the question text, then the answers in curly braces. A correct answer starts with =, a wrong one with ~. Feedback goes after #### inside the braces. Blocks are separated by a blank line.
::Q1:: What is the capital of France? {~Berlin =Paris ~Madrid ~Rome ####Paris has been the capital of France for centuries.}
::Q2:: The Earth is flat. {FALSE}
::Q3:: What process do plants use to convert light into chemical energy? {=Photosynthesis}
These are a multiple choice, a true/false and a short answer question.
Special characters need a backslash
In GIFT the characters ~ = # { } : have special meaning, so when they appear in your text they must be escaped with a backslash. The tool does this for you, and also escapes the backslash itself. For example, a question about equality operators becomes:
::Q1:: Which operator tests equality in most programming languages? {~\= =\=\= ~\:\= ~\~\=}
Line breaks inside a question are turned into spaces, because a blank line would end the question in GIFT.
How to use the tool
- Open the converter and paste your questions (numbered, with A) B) C) options and an
Answer: Bline), or load a CSV file. - Choose GIFT as the output format.
- Check the question count and the "Problems found" list. Questions with problems are left out of the file.
- Download the GIFT file.
Importing into Moodle
In Moodle 5.3: open your course, choose Question banks, open the question bank, choose Import from the menu, select GIFT format, upload the file and select Import. Menu names differ between Moodle versions, so follow your own site's labels. We tested this import in Moodle 5.3 on Moodle's public demo site with a 10-question set and the answers came through correctly. Other Moodle versions and larger files are untested, so import a small batch first and check the answers.
Limits
- Free version: at most 25 questions per run. Extra questions are not converted.
- Question types: single-answer multiple choice, true/false and short answer only. No images, maths, numerical, matching or essay questions.
- Parsing pasted text is heuristic. Unusual layouts can be misread, so check the question count and the problems list.
- The true/false feedback form (
{TRUE ####feedback}) has not been checked against Moodle. - Tested only in Moodle 5.3 (public demo site). Not tested in Canvas or other systems. Check your answer keys yourself.
Prefer a different format? See the Aiken guide, or learn how to get questions from ChatGPT into Moodle.
Back to the tool
Open the free quiz converter. It runs in your browser and nothing is uploaded.