# The EDU text format

> Write EduBase questions as plain-text EDU files that hold every setting, keep them in version control or generate them with AI, then upload them in a ZIP.

An EDU file is a plain-text file that holds one EduBase question with all of its settings: type, text, answers, parameters, scoring, hints and the rest. Because it is plain text, EDU suits questions too complex for a spreadsheet cell, question banks kept in version control such as git, and questions written by an AI assistant. Upload EDU files one at a time, or many together in a ZIP with their images.

## What an EDU file looks like

Each field starts with a marker line, `%------FIELD------%`, and its value follows on the next lines. This file is a parameterized numeric question:

```text
%------LANGUAGE------%
en
%------QUESTION!!------%
A forklift carries {n} pallets of {w} kg each. What is the total load in kg?
%------ANSWER!!------%
{n}*{w}
%------TYPE!!------%
% [X] NUMERICAL
%------PARAMETERS------%
{n; INTEGER; 2; 6}
% &&&
{w; INTEGER; 150; 400}
%------POINTS------%
2
%------TOLERANCE------%
% [5%] RELATIVE:N
%------HINT------%
Multiply the number of pallets by the weight of one pallet.
%------EXTERNAL_ID------%
forklift-load-1
```

Uploaded to EduBase, it becomes one question worth 2 points, with new numbers for every participant and answers within 5% accepted.

## Rules of the format

| Rule | Example |
|---|---|
| A field begins with its name between `%------` and `------%`. Everything up to the next marker is its value, on as many lines as needed. | `%------QUESTION!!------%` |
| Marks after a name are reminders in the template, `!!` on the required question, answer and type, `!` on subject and category. EduBase ignores them when reading. | `QUESTION!!`, `SUBJECT!` |
| Fields you do not need can be left empty or deleted. The order does not matter. | |
| Several values (answers, options, hints, parameters) are separated by a line holding `% &&&`. | `% &&&` |
| Fields with fixed choices list them as `% [ ]` lines. Put an `X` in the brackets of the one you want. | `% [X] MULTIPLE-CHOICE` |
| A choice ending in `:N` takes a number: write the number in the brackets instead of the `X`. | `% [5%] RELATIVE:N` gives `RELATIVE:5%` |
| Field names can be English or Hungarian; EduBase detects the language from them. | `QUESTION` or `KÉRDÉS` |

The field names are the same as the column names of the [Excel template](https://help.edubase.net/questions/import-excel/) and the fields of the API, so the same values work everywhere: parameters as in [Parameter types and constraints](https://help.edubase.net/questions/parameters-reference/), scoring options as in [Tolerance, partial credit, penalties, rubrics and skills](https://help.edubase.net/questions/scoring/).

## Get a template

The upload window (**Tasks → add questions → Upload as file** in a Quiz set) has a **sample EDU** button. It downloads a template listing every field, in the language of your EduBase interface, with the choices of each choice field ready to mark. Most questions need only a handful of fields: `QUESTION`, `ANSWER`, `TYPE`, usually `OPTIONS` for choice questions, and `POINTS`.

## Images and attachments

An EDU file refers to images and attachments by file name, in fields such as `IMAGE` and `ATTACHMENT`. To upload them together, put the EDU files and the files they refer to in one ZIP and upload the ZIP. File names must differ by more than accents or special characters; EduBase ignores clashing names and lists them.

## Updating questions

`EXTERNAL_ID` gives the question a stable identifier. Uploading a changed file with the same `EXTERNAL_ID` into the same folder or Quiz set updates the existing question, and EduBase reports it under **Updated questions**. Uploading the unchanged file again adds nothing: "We did not find any new questions." This makes a folder of EDU files in git a workable source of truth for a question bank.

## Export to EDU

A question exported to EDU keeps every setting, so EDU is also the format for moving questions between EduBase accounts or editing them outside EduBase. In **My Quiz questions**, select questions or folders and choose **[EDU]**. See Export questions.

## Writing EDU files with an AI assistant

EDU is plain text with fixed field names, which AI assistants handle well. Give the assistant the template and an example, ask for one file per question, and review the result before uploading. See [Create tailored questions and materials with AI](https://help.edubase.net/guides/ai-assisted-content/).

## Limits

- One question per EDU file.
- Up to 500 questions per upload, so up to 500 EDU files in one ZIP.
- The full field list is in the [EDU format reference](https://help.edubase.net/reference/edu-format/).

## Related

- [Import questions in bulk](https://help.edubase.net/questions/import/)
- [Import from Excel](https://help.edubase.net/questions/import-excel/)
- Export questions
- [Get your training ready for AI](https://help.edubase.net/guides/ai-ready-training/)
