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.