> Updated for version 6.0.30

The **Export** window gathers everything that leaves your project as a file: the book, the modules, the variables, the translations and the project files. It replaces the former "Import/Export modules" window. This article covers the **Modules**, **Data** and **Files** tabs; the **Book** tab has its own help article.

![Export window, Modules tab: list of modules to tick with their graphs, Export as ZIP card, then Import modules section with the drop zone](https://chatwoot.fr.nocodespacelab.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBazRLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--798ea8fcf6acb20a9652350ccf2618244a313558/project-exporter--exporter-modules.en.png)

## Open the Export window

1. Open the project menu (the blue button at the top left, which shows the name of the project);
2. click **Export**, or use the shortcut **Cmd + Shift + S** (Mac) or **Ctrl + Shift + S** (Windows, Linux).

The window opens on the **Book** tab. Click another tab to switch to another export.

| Tab | What it exports | What it imports |
|---|---|---|
| **Book** | your story as a book (PDF, EPUB, HTML page, DOCX or Markdown) | nothing |
| **Modules** | the chosen modules and graphs, in a ZIP file | a ZIP made by this tab |
| **Data** | the variables (JSON) and each translation language (.po) | variables (JSON) |
| **Files** | every file of the project, in a ZIP file | nothing |

At the bottom of each tab, a line reminds you: "For a playable app (web, mobile, desktop, SCORM, VR), open Publish." The **Publish** link opens the publishing window.

> 💡 **Tip:** an export started in one tab goes on when you switch to another tab. Keep the window open until the download ends.

## Modules tab: take modules with you in a ZIP

The ZIP holds the chosen modules with their resources, variables and files. Keep it as a backup, or import it into another project to reuse these modules.

### Export modules

1. In the **Export modules** section, tick the modules to take with you. Each module shows its number of graphs and, below it, its **Start graph** then its other graphs;
2. if needed, tick or untick graphs one by one. Graphs that belong to no module are grouped under **Other graphs**;
3. check the summary at the top of the list, for example "2 modules selected, 1 other graph". A module is counted only once, even when you tick several of its graphs;
4. click **Export as ZIP**.

During the export, the card shows "Exporting…" and the number of files already added, for example "12 of 40 file(s)". Your browser then downloads a `.zip` file named after the project, the date and the time of the export.

What each box does:

| Action | Effect |
|---|---|
| Tick a module | also ticks all its graphs |
| Tick a graph | also adds its module to the export |
| Untick the Start graph | removes the module and all its graphs |
| **All** | ticks every module, their graphs and the other graphs |
| **None** | clears the selection |

You have nothing else to tick: everything the chosen modules and graphs use (resources, variables, files, graphs they open) comes along automatically. The **Export as ZIP** button stays greyed out while nothing is ticked.

If the project has no module and no graph yet, the tab says so and suggests adding some from a ZIP exported from another project, with the import.

### Import modules

1. Open the **Modules** tab in the destination project;
2. in the **Import modules** section, drop your ZIP file on the dotted area, or click it to choose the file;
3. wait for "Importing…" to end: a message tells how many modules were imported, for example "2 modules imported.", or "No module added." when every module of the ZIP is already in the project.

The graphs, resources and variables of the ZIP are added to the project. Their files are stored in a new **Import-…** folder of the file browser, named after the export. The import counts as a single step in the project history.

> 🔺 **Good to know:** a module that is already in the project (for example when you import an export of this same project again), or that has the same name as a module of the project, is not added a second time. The message reports it ("Already in the project, not added:" followed by the names). Its graphs, resources and variables are still imported, and replace those with the same identifier. If another module has the same name, rename it in one of the two projects to keep both.

### If the import or the export fails

| Message | What to do |
|---|---|
| This file is not a ZIP. | Choose a `.zip` file made by **Export as ZIP**. |
| This ZIP cannot be read or is not a modules export (the expected data.json file is missing). | The ZIP does not come from the Modules tab (for example, it is the ZIP of the Files tab): export again from the **Modules** tab of the original project. |
| An error occured while importing | Try again; if the message comes back, export again from the original project. |
| An error occured while exporting | See the note below about Visual Novel modules, then try again. |

> 🔺 **Good to know:** as the export currently works, only **Chatbot** modules can be exported. If your selection holds a **Visual Novel** module (or one of its graphs), the export stops on "An error occured while exporting". Untick it and start again.

## Data tab: variables and translations

The **Data** tab has two sections: **Variables** and **Translations**.

![Export window, Data tab: Variables section with the counter and the Export (JSON) and Import (JSON) buttons, then Translations section with one card per language and its Export (.po) button](https://chatwoot.fr.nocodespacelab.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBam9LIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--54bebfa3af02d3291831bdf4c136bd4bdc2fc3b7/project-exporter--exporter-donnees.en.png)
*the Data tab: the variables at the top, one card per translation language at the bottom*

### Variables (JSON)

The section shows how many variables the project has (with the number of lists and objects) and offers two buttons:

- **Export (JSON)** downloads a file with every variable of the project and its value;
- **Import (JSON)** adds the variables of a file exported from another project. If a name already exists here, nothing is imported.

All the details (content of the file, import, error messages) are in [Importing and exporting variables as JSON](https://documentation.celestory.io/hc/celestorydoc/articles/1795347829-importing-and-exporting-variables-as-json).

### Translations (.po)

A `.po` file is the standard format of translation tools: it holds every text of the project and its translation. The tab offers one per translation language.

Each language has its card:

- the name of the language (in English, for example "Spanish") and its code (`es`), with its own name when it differs ("Español");
- a progress bar and the translation rate, for example "35% translated (133 of 380)", or "No text to translate yet.";
- the **Export (.po)** button, which downloads the file `export-es.po` (the language code changes with the card).

To have your project translated:

1. click **Export (.po)** in the card of the language;
2. send the file to a translator, or open it in your translation tool;
3. import the translated file back in the **Translate** window of the project menu (see [The Translations Window](https://documentation.celestory.io/hc/celestorydoc/articles/en-discover-celestory-the-translations-window-968788)).

If the project has no translation language yet, the section says so: open **Translate** in the project menu, pick the language of the project then a first translation language. Each language will then show up here.

## Files tab: every project file in one ZIP

The **Files** tab puts every file of the project (images, sounds, videos…) in a single ZIP, to back them up or reuse them elsewhere.

![Export window, Files tab: total of files and weight, breakdown bar, four tiles Images, Sounds, Videos and Others, ZIP archive of every file card with the Large download warning and the Download all files (ZIP) button](https://chatwoot.fr.nocodespacelab.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBandLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--85f4b6f2b181556ba49606ff524223b20de1d453/project-exporter--exporter-fichiers.en.png)
*the Files tab of a project with 236 files: breakdown by weight, tiles by type and ZIP archive*

### What the tab shows

- **The total**: the number of files and their weight, for example "236 files, 842 MB in total";
- **the breakdown by weight**: a colored bar showing the share of each type of file in the total weight;
- **four tiles**, each with the number of files and their weight:

| Tile | Files counted |
|---|---|
| Images | images, icons included |
| Sounds | audio files |
| Videos | videos |
| Others | everything else (fonts, documents…) |

Folders are not counted. A file whose weight is unknown counts in the number, not in the weight.

### Download every file

1. In the **ZIP archive of every file** card, click **Download all files (ZIP)**;
2. follow the preparation: "Preparing the ZIP: 120 / 236". The **Cancel** button stops it, without saving anything;
3. your browser downloads the file `My project - files.zip` (the name of the project, followed by "- files.zip").

A message then confirms the number of files added to the ZIP, for example "236 files added to the ZIP."

In the ZIP:

- the folders of the file browser are kept, even empty ones;
- names are cleaned up to open on every system: a character refused by one of the common systems (for example `:` or `?`) becomes `_`;
- duplicates are numbered: if two files would end up with the same name in the same folder (ignoring upper and lower case), the second gets a number, for example `scenery (2).png`.

### Large download and missing files

- Above about 315 MB, the **Large download** box warns that the ZIP is prepared in the browser: it may be slow, or fail if memory runs out. You can still download it.
- If some files could not be downloaded, the ZIP is saved anyway, and the message (for example "2 files could not be downloaded.") opens with a click to list them.
- If the message "The ZIP could not be prepared and nothing was saved." shows up, try again in a moment.

If the project has no file, the tab shows "This project has no files.": add images, sounds or videos from the file browser (project menu, **Files**).

> 🔺 **Good to know:** closing the Export window during the preparation stops the export, and nothing is saved. The ZIP of the Files tab is for backing up or getting back your media: it cannot be imported again in the Modules tab.

## Example: copy a chapter into a new project

You want to reuse the module "Chapter 2: the dungeon" in a sequel:

1. in the original project, open **Export** (Cmd + Shift + S), **Modules** tab;
2. tick "Chapter 2: the dungeon": its graphs are ticked with it;
3. click **Export as ZIP**;
4. in the new project, open **Export**, **Modules** tab, and drop the ZIP on the **Import modules** area;
5. the module shows up in the project, and its images and sounds are in the **Import-…** folder of the file browser.

## See also

- [Importing and exporting variables as JSON](https://documentation.celestory.io/hc/celestorydoc/articles/1795347829-importing-and-exporting-variables-as-json)
- [The Translations Window](https://documentation.celestory.io/hc/celestorydoc/articles/en-discover-celestory-the-translations-window-968788)
- [Export your app on HTML5](https://documentation.celestory.io/hc/celestorydoc/articles/en-exports-export-your-app-on-html5-a6b982)
