---
title: "Back up your library"
description: "Save a deck, a folder or your whole library as one zip of readable files, with every card's schedule, your review history and your study settings, restore it into any account, and read the format to use it anywhere."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.neurocards.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Back up your library

A **backup** is one `.zip` file of a deck, a folder or your whole library. Inside are your decks as CSV files and your quizzes as quiz files, in the same folders as in NeuroCards. Beside them is everything the files can't hold: each card's schedule, your review history, the answers you had checked and your study settings. Every file is text, so you, a spreadsheet or an AI assistant can open and read it.

To save only the cards, without their history, export as **CSV** or **Text** instead. To move to Anki, see [Export to Anki](/guides/import-export#export-to-anki).

## Make a backup

1. **Open Export**

   For a folder, open its **⋯** menu and choose **Export**. For your whole library, open Library's **⋯** menu and choose **Export**. For one deck, open the deck's **⋯** menu and choose **Export cards**.
2. **Choose Backup**

   **Backup** is the first format. The card under it shows how many decks, quizzes, cards and reviews go, and where the cards stand. **In the backup** lists what goes, grouped by folder.
3. **Save the zip**

   Select **Download .zip** on the web, **Save .zip…** on a Mac, or **Save .zip** or **Share** on an iPhone or iPad. A large library can take a minute to prepare.

Backups, files exports and Anki exports count together, 20 an hour. Cards, decks and folders in [Trash](/guides/trash) are left out, with their reviews.

## Restore a backup

A restore brings a backup's folders, decks and quizzes back, each card with its schedule and its review history. Everything arrives as a new copy beside what is already in your library, so nothing there changes or is replaced.

1. **Open Import decks**

   In **Library**, open the **+** menu and choose **Import decks**. On a folder page, the same menu restores into that folder.
2. **Add the backup**

   Add the `.zip` with **+**, or drop it on the box. A backup goes in on its own. The card shows what was backed up and when, how many decks, quizzes, cards and reviews it holds, and where the cards stand. **In the backup** lists what comes, grouped by folder.
3. **Choose what comes with it**

   **Review history** brings each card's schedule and every review. Off, every card arrives new. **Use its settings**, shown when the backup's settings differ from yours, makes your scheduler, study pace and card settings the backup's. It starts on when your library has no cards. Off, your settings stay, and cards scheduled under other settings have their schedules worked out again from their reviews.
4. **Restore**

   Select **Restore**. A large backup can take a minute. The page then shows where everything landed, as after an import.

The pictures in `pictures/` upload into the account you restore into and count toward its room for pictures. If they would take it past its room, the restore stops and says so. A picture file NeuroCards can't take is left out, and its card shows the picture's description.

A backup that can't be read is refused whole, with where it broke, such as a card with an empty front. Pinned decks and folders past the five a library can pin arrive unpinned. A deck from [Discover](/guides/discover) keeps its link while the course is still listed. A deck you once updated from a file starts fresh, so its next **Update from files** treats the file as new.

## Export as CSV or Text

The same **Export** writes a folder or your library as a zip of deck files alone, without the history:

- **CSV** writes a CSV file for each deck, which opens in spreadsheets.
- **Text** writes a text file for each deck, with the separators you choose between question and answer and between cards. If a card holds a separator in its own text, the page says how many do and holds the download back, since those cards would split wrongly when read again. Choose other separators, or **CSV**.

Quizzes are written as quiz files in both. To bring the decks back, add the zip to [Import decks](/guides/import-export#import-several-decks-at-once), or unzip it and drop its folder there.

## What's in the zip

| File | What it holds |
| --- | --- |
| `neurocards.json` | Your settings, your folders and decks, and every card with its schedule. |
| `history.jsonl` | Every rating, oldest first, one on each line. |
| `answers.jsonl` | Every answer you had checked, oldest first, one on each line. |
| `sessions.jsonl` | The review sessions [Stats](/guides/stats) lists. In a backup of your whole library only. |
| `decks/` | A file for each deck and quiz, in your folders. |
| `pictures/` | The pictures your cards name, one file each, such as `9f3c....jpg`. |

A deck is a `.csv` file named after it, and a quiz is a `.toml` file, the same files [Import and export cards](/guides/import-export) describes. A character a file name can't hold, such as `/` or `:`, becomes `-`, and a second deck of the same name in one folder gets a number. The real names are in `neurocards.json`.

The `.jsonl` files are JSON Lines: one JSON object on each line, so a large history can be read a line at a time.

## The file format

Times are ISO 8601 in UTC, such as `2026-11-07T14:30:00.000Z`. Every folder, deck, card, review, answer and session has an `id` of its own in the file, such as `f1`, `d1` or `c1`, and the other parts point at it by that `id`. The ids are the file's, not your account's.

### neurocards.json

| Field | What it holds |
| --- | --- |
| `format` | Always `"neurocards-backup"`. |
| `version` | `1`. A later change to the format raises the number. |
| `exportedAt` | When the backup was made. |
| `scope` | What was backed up: `kind` is `deck`, `folder` or `library`, and `name` is its name. |
| `settings` | Your settings, in three parts below. |
| `tags` | The names of your own tags, so a tag on no card comes back too. Core and Flagged are on every account already. |
| `folders` | Your folders, parents before their subfolders. |
| `decks` | Your decks and quizzes. |
| `cards` | Every card and quiz question, deck by deck in their order. |

`settings` has three parts:

- `scheduling`: the scheduler and its settings, as [Download your data](/guides/download-your-data#scheduling) has them.
- `study`: `studyProfile`, `newPerDay`, `maxReviewsPerDay`, `reviewSortOrder`, `newReviewOrder`, `newCardOrder` and `coreFirst`, as set in [Study pace](/guides/study-pace).
- `cards`: `cardFont`, `cardTextSize`, `quizSounds` and `aiMarking`, as set in [Settings](/settings).

A folder has an `id`, a `name`, its `parent` (or `null` at the top of the backup), its `position` among the folders beside it, whether it is `pinned`, `createdAt`, and its `path` in the zip. A folder added from [Discover](/guides/discover) also has `listing` and `listingFolder`, Discover's own ids for the course and the folder it came from.

A deck has an `id`, a `name`, a `description`, its `kind` (`flashcards` or `quiz`), its `folder` (or `null`), its `position`, whether it is `pinned`, `createdAt`, and its `file` in the zip. A deck added from Discover also has `listingDeck`, Discover's id for it, so its updates can still reach it.

A card has:

| Field | What it holds |
| --- | --- |
| `id` | The card's id. |
| `deck` | The deck it belongs to. |
| `row` | Its place in its deck's file, from 1. |
| `front`, `back` | Its two sides. Markdown and maths are kept as you wrote them. A picture's mark names its file, as `![description](pictures/9f3c....jpg)`. |
| `choices`, `explanation` | Quiz questions only: each choice as `{ "text", "correct" }`, and the text shown after answering. |
| `cloze`, `explanation` | [Gap cards](/guides/write-cards#hide-words-as-gaps) only: the sentence with its gaps marked as `{{c1::words}}`, and the note shown with the answer, or `null`. A restore writes `front` and `back` again from them. |
| `source` | How the card was made, as Download your data lists. |
| `state`, `step`, `ease`, `due`, `interval`, `stability`, `difficulty`, `lastReviewedAt` | Its schedule. `interval` is in days. Each is described under [Cards](/guides/download-your-data#cards). |
| `paused` | `true` when the card is paused. |
| `tags`, `flagNote` | The card's [tags](/guides/tags) by name, and the note on its flag, when it has them. A restore matches tags by name. |
| `checklist` | The points [AI marking](/guides/study-and-ratings#ai-marking) marks the card's answer by, when it has them. |
| `createdAt`, `updatedAt` | When it was made and last changed. |

### history.jsonl

| Field | What it holds |
| --- | --- |
| `id` | The review's id. |
| `card` | The card that was rated. |
| `rating` | `again`, `hard`, `good` or `easy`. |
| `reviewedAt` | When it was rated. |
| `durationMs`, `thinkMs` | Milliseconds to the rating and to the reveal, or `null`. |
| `scheduleApplied` | `false` when the rating is kept in your history but did not change the schedule. |
| `pickedChoices` | Quiz answers only: the text of each choice you picked. |
| `answer` | The checked answer the rating followed, when there was one. |
| `session` | The review session it was part of, in a backup of your whole library. |

To work out a card's schedule again, replay its ratings in order, leaving out those with `scheduleApplied` set to `false`. See [SM-2 and FSRS](/guides/scheduler).

### answers.jsonl

Each answer has an `id`, its `card`, the `answer` as it was checked, whether it was `dictated`, the `verdict` (`right`, `partly` or `wrong`), its `points`, a `note` or `null`, the `suggested` rating and `checkedAt`. They are the fields [Download your data](/guides/download-your-data#answers) describes.

### sessions.jsonl

Each session has an `id`, its `deck` or `folder` (both `null` for the whole library), its `kind` (`flashcards` or `quiz`), `startedAt`, `lastActiveAt`, `reviewedCount`, `plannedCount`, the `device` (`iphone`, `ipad`, `mac` or `web`) and `endedAt` or `null`.

Source: https://docs.neurocards.net/guides/backup/index.mdx
