WIPIVERSE All articles

GIFT (file format)

The General Import Format Technology (GIFT) is a plain‑text markup language designed for the representation and exchange of multiple‑choice, true‑false, matching, short‑answer, and numeric quiz questions. It is primarily associated with the Moodle learning‑management system, where it is used to import and export quiz questions in a human‑readable format.

Purpose and Usage

  • Enables authors to create large banks of assessment items outside the Moodle web interface, using any text editor.
  • Facilitates bulk transfer of questions between Moodle installations or from other authoring tools that support the format.
  • Supports version control and collaborative editing because the files are plain text.

Syntax Overview
A typical GIFT file consists of one or more question definitions, each terminated by a blank line. Basic elements include:

Element Indicator Example
Question title (optional) ::Title:: ::Capital Cities::
Question text plain text, may include LaTeX or HTML What is the capital of France?
Answer options {} with specific delimiters {=Paris ~London ~Berlin} (multiple‑choice)
True/false {T} or {F} {T} for true, {F} for false
Matching -> arrow syntax inside {} { =dog -> canine =cat -> feline }
Numerical # followed by tolerance {#3:0.5} (answer 3 ±0.5)
Feedback % followed by percentage or # for general feedback {%100%Correct!%}

Complex features such as nested brackets, escaped characters, and multiline answers are supported, and the format permits comments preceded by //.

Historical Context
The GIFT format was introduced by Martin Dougiamas, the founder of Moodle, as part of the platform’s early support for portable quiz content. Its specification has remained stable across Moodle releases, with minor extensions to accommodate newer question types (e.g., calculated response). Because it is not tied to a proprietary binary format, GIFT has been adopted by other open‑source e‑learning tools, though Moodle remains its principal platform.

Advantages

  • Human‑readable: Facilitates manual editing and review.
  • Portability: Text files can be transferred across operating systems without conversion.
  • Version control friendly: Works well with systems such as Git.

Limitations

  • Lacks native support for rich media (images, audio) within the core syntax; such assets must be referenced externally.
  • Complex question types (e.g., drag‑and‑drop) are not representable in GIFT and require alternative import formats.

Related Formats

  • Moodle XML – a more expressive, XML‑based alternative used for full‑feature question export.
  • QTI (Question and Test Interoperability) – an IMS standard for broader e‑learning interoperability.

References

  • Moodle documentation, Importing questions in the GIFT format.
  • G. Downes, The GIFT format: a simple text format for creating quiz questions, 2005.

The information above reflects the established usage and technical description of the GIFT file format as documented by the Moodle project and related open‑source educational resources.

Browse

More topics to explore

    Browse all articles