Skip to content

Moodle GIFT validator & quiz converter

Validate Moodle GIFT question banks and convert them cleanly to Moodle XML, Canvas QTI or classroom game spreadsheets.

0 questions

How to use Moodle GIFT converter

  1. Open or paste your GIFT bank. Paste Moodle GIFT text into the editor, click Load sample to inspect a chemistry bank, or click Open quiz file to load a .gift, .txt, .docx, or .xml file.
  2. Check parsed items and warnings. Review the live question count, Parsed items breakdown pills, and Check or Note alerts to catch unescaped braces or missing answer markers.
  3. Choose your destination format. Pick Moodle XML (.xml), Canvas / Blackboard QTI 1.2 (.zip), IMS QTI 2.1 package (.zip), Moodle GIFT (.gift.txt), or a spreadsheet target under Output format.
  4. Export your validated bank. Click Export Moodle XML, Export QTI 1.2 ZIP, or Export GIFT file to save the converted package to your device.

Your exam questions, student work and manuscripts stay in this browser tab on your device. Nothing is uploaded or logged.

When should you use Moodle GIFT instead of Aiken or XML?

Use Moodle GIFT when authoring mixed-format exams in a plain-text editor where you need ::Title:: labels, per-choice # feedback, partial-credit %50% weights, {#value:tolerance} numerical problems, and -> matching pairs without writing verbose XML tags. Choose Aiken only for basic single-answer multiple choice, and choose Moodle XML for final LMS transport.

Because GIFT relies on compact punctuation delimiters, a single unescaped colon or missing closing brace can break an entire bank import. Compiling validated GIFT blocks into well-formed markup under the W3C Extensible Markup Language (XML) 1.0 specification protects UTF-8 symbols, HTML CDATA blocks, and category paths during Moodle uploads.

If your faculty draft consists strictly of A. through D. multiple-choice questions copied from Word without curly braces, use the Aiken validator & Moodle XML converter instead. Every standard GIFT construct maps cleanly into both Moodle XML and IMS QTI structures.

Question type Moodle GIFT syntax pattern Moodle XML <question> output Canvas QTI 1.2 equivalent
Single choice ::Title:: Stem { =Right #fb ~Wrong } type="multichoice" (single=true) multiple_choice_question
Multiple select Stem { ~%50%Right A ~%50%Right B ~%-100%Wrong } type="multichoice" (single=false) multiple_answers_question
True / False Stem {TRUE} or Stem {F #Explanation} type="truefalse" (100 / 0) true_false_question
Short answer Stem { =mitochondrion =mitochondria } type="shortanswer" (usecase=0) short_answer_question
Numerical Stem {#18.015:0.05} or Stem {#10..12} type="numerical" (<tolerance>) numerical_question (vargte/varlte)
Matching Stem { =Boyle -> Constant temp =Charles -> Constant P } type="matching" (<subquestion>) matching_question (response_lid)
Essay & Cloze tail Stem {} or Prefix { =word } suffix. type="essay" or blanked _____ stem essay_question / short_answer_question

Migrating Moodle GIFT to Canvas QTI and game spreadsheets

Institutions transitioning from Moodle to Canvas, Blackboard Ultra, D2L Brightspace, or Schoology often hold years of .gift text banks that target platforms refuse to read natively. A local Moodle GIFT converter bridges those formats without uploading proprietary departmental exams to external web hosts.

Packaging GIFT banks into QTI 1.2 and QTI 2.1 ZIP archives

Selecting Canvas / Blackboard QTI 1.2 (.zip) or IMS QTI 2.1 package (.zip) translates every parsed GIFT block into a standards-compliant ZIP archive governed by the 1EdTech Question and Test Interoperability (QTI) specification. Question titles inside ::...:: carry over to <item title="...">, general feedback after #### maps to <itemfeedback>, and numerical tolerances become <vargte> and <varlte> scoring bounds.

In QTI 1.2 mode, the archive compresses imsmanifest.xml, the questestinterop assessment XML, and Canvas assessment_meta.xml using level 6 Deflate compression. Missing-word GIFT questions that include text after the closing } brace automatically join the prefix and suffix around a visible _____ blank so the prompt reads naturally in Canvas.

Turning GIFT questions into Kahoot, Blooket, and Quizizz files

Existing Moodle banks double as live lecture review games when exported to spreadsheet templates. You can convert question banks into Kahoot and Blooket spreadsheets or select Kahoot spreadsheet (.xlsx), Blooket import (.csv), Gimkit import (.csv), or Quizizz / Wayground (.xlsx) directly under Output format with a configurable 30 seconds default timer.

Platform character caps apply automatically so game uploads never fail mid-class: Kahoot trims prompts to 120 characters and choices to 75 characters, while Blooket trims prompts to 300 characters and choices to 150 characters. Any skipped non-choice items such as matching or numerical problems are tallied in a summary banner after export.

Linting unescaped GIFT braces, weights, and STEM formulas

Writing chemistry, algebra, or programming questions in GIFT is error-prone because formulas routinely contain colons, equals signs, and curly braces. Depth-aware tokenization separates escaped literal characters from active GIFT control delimiters.

Escaping special characters and numerical tolerances

Backslash sequences (\~, \=, \#, \{, \}, \:, and \n) are preserved during brace scanning and unescaped only after ::Title:: headers, = or ~ option splits, and # inline feedback comments have been isolated. Format prefixes such as [html], [markdown], [plain], and [moodle] at the front of stems are cleaned automatically so raw tags never leak into exported choices.

Numerical questions starting with {# accept both value:tolerance pairs ({#18.015:0.05}) and min..max ranges ({#17.965..18.065}), plus optional #### general feedback explanations. Instructors preparing quantitative lab exams can also pair exported problem sets with printable coordinate plane and STEM grid sheets for student scratch work.

Generating escaped GIFT syntax from Word, CSV, or Quizlet

Conversion runs in both directions when you need to build a clean .gift.txt archive from non-GIFT drafts. Paste numbered questions, open a .docx Word test, or load a comma-separated table formatted under the IETF RFC 4180 CSV format specification, then choose Moodle GIFT (.gift.txt) and click Export GIFT file to escape all 6 reserved characters automatically.

Tip: Click Load sample to inspect chemistry-bank.gift.txt, which combines a $CATEGORY: header, inline # distractor feedback, {TRUE}, {#18.015:0.05} molar mass tolerance, and -> gas-law matching pairs before testing Export GIFT file or Export Moodle XML.

Diagnosing malformed GIFT blocks in private local memory

Moodle’s server-side GIFT importer often aborts or silently drops items when a blank line or unclosed { splits a question block in half. Inspecting item counts and lint alerts before upload prevents incomplete exams.

Catching missing braces and zero-credit choice blocks

Every paragraph block separated by blank lines is scanned for balanced, unescaped { and } delimiters. Blocks lacking braces trigger a visible Note alert showing the first 55 characters of the skipped text, while multiple-choice blocks with zero = prefixes and zero positive %weight% tags raise an explicit Check error.

Empty prompts before {...} and non-numeric typos inside {#...} blocks are flagged immediately alongside the live Parsed items pill counters (Single choice, Multiple select, True / False, Short answer, Numerical, Matching, and Essay). You can edit the raw GIFT text directly in the monospace editor and watch the pill counts update on every keystroke.

Reusing GIFT pairs for offline flashcards within 25 MB

Uploaded .gift, .xml, .docx, .xlsx, .csv, and .zip files up to 25 MB (25,000,000 bytes) process 100% locally inside a browser Web Worker, transmitting 0 bytes over the network. For paper review packets, you can also export universal CSV tables or print double-sided vocabulary cards privately on your device from the same study terms.

Questions

How do I write partial-credit multiple-select questions in Moodle GIFT?

Prefix every option inside the curly braces with a tilde followed by a percentage weight, such as ~%50%Option A ~%50%Option B ~%-100%Distractor. Options with positive weights count as required selections, and weights map directly to Moodle XML answer fractions.

Which special characters must be escaped with a backslash in GIFT files?

Six control characters carry structural meaning inside Moodle GIFT: tilde (~), equals (=), hash (#), opening brace ({), closing brace (}), and colon (:). Prefix any literal occurrence in math or chemistry prompts with a backslash so the parser treats it as text.

Can I migrate a Moodle GIFT question bank directly into Canvas or Blackboard?

Yes. Canvas, Blackboard Ultra, Brightspace, and Schoology do not accept raw .gift files, so open your GIFT bank here, select Canvas / Blackboard QTI 1.2 (.zip) under Output format, and upload the exported ZIP through your LMS course import tool.

How does GIFT represent both colon tolerances and min-max numerical ranges?

You can write a target value plus tolerance like {#18.015:0.05} or a closed interval like {#17.965..18.065}. Both notations normalize into a central numerical value and symmetric tolerance for Moodle XML and QTI 1.2 range conditions.

Can I convert a Word document or CSV spreadsheet into Moodle GIFT format?

Yes. Open a .docx, .xlsx, or .csv quiz or paste numbered questions into the editor, then choose Moodle GIFT (.gift.txt) under Output format and click Export GIFT file. Reserved GIFT characters in stems and choices are backslash-escaped automatically.

How are $CATEGORY lines and // comments handled during conversion?

Lines starting with // are stripped cleanly as author comments before parsing. Standalone $CATEGORY: Course/Unit lines assign category metadata to all subsequent questions and populate the default quiz title when exporting.

Updated