---
title: "Update decks from files"
description: "Keep decks and quizzes in step with the files you edit them in, without losing review history, for one deck or a whole folder at once."
---

> 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.

# Update decks from files

If you write your cards in files, such as notes you keep in a text editor or a folder of decks you share with a class, you can edit the file and bring the changes into NeuroCards. Cards the file still has keep their review history, and you see every change before it is made.

## Update one deck

1. **Open the deck**

   Open the deck, then the **⋯** menu, and choose **Update from file**. The
   deck needs at least one card.
2. **Add the file**

   Add the newer `.txt` or `.csv` file with **+** or by dropping it on the box,
   or paste its cards. Before you add one, the page sums up what happens to
   your cards. If the file uses other separators, set them under the box, as
   for an [import](/guides/import-export). When a line can't be read, **How
   they read** shows the first cards as the separators split them.
3. **Check the changes**

   The page compares the file with the deck and lists what would change,
   grouped as below. Make a choice where it asks. The cross on the file's tile
   takes it away, so you can add another.
4. **Update the deck**

   Select **Update deck**. If cards would be removed, NeuroCards asks first,
   with **Update and remove**.

The steps show at the top of the page, as three bars on a phone.

## Update many decks at once

From **Library** or a folder page, open the **⋯** menu and choose **Update from files**. Add the files, or a whole folder of them, to the box, and choose which part of your library to update with **Update decks in** under it. Each file shows as a row in the box saying what it changes.

NeuroCards pairs each file with its deck: the deck last updated from that file, then a deck of the same name, then, when the file was renamed or moved, a deck that shares most of its cards (**Found by its cards**). For each file you can:

- **Review** the changes before updating.
- Pick another deck under **This file updates**, or **Add it as a new deck** if the file is not an update.
- **Choose a deck** for a file that matched none, when it belongs to a deck that shares too few cards to be found.
- **Match to a deck again** to let NeuroCards pair a file you set to be added as a new deck.

Files that match no deck are added as new decks. Decks with no file stay as they are.

**Apply all from files** skips the deck-by-deck choices. Every deck takes what its file has: its cards and wording, its name and folder, and the file's version of cards you changed in the app. Cards the file no longer has are removed. NeuroCards asks first, and says how many cards would go.

### Renamed and moved files

When a deck was found by its cards or picked by hand, its file may have a different name or sit in a different folder. The review then shows **Name and folder**, with the deck's name and folder next to the file's. The deck keeps both unless you choose to rename it or move it. A move to a folder your library does not have yet creates it.

A deck paired by its file or its name is never offered a rename or a move, as a name or folder you changed in the app was changed on purpose.

## What the review shows

| Group                   | What it holds                                                                      | What happens by default                           |
| ----------------------- | ---------------------------------------------------------------------------------- | ------------------------------------------------- |
| **Needs you**           | Cards changed in both places, or gone from the file                                | Left as they are until you choose                 |
| **Only in the app**     | Cards you added in the app that the file does not have                             | Kept                                              |
| **Check these matches** | Lines reworded so much that NeuroCards matched them by position or similar wording | Updated, but you can choose **Not the same card** |
| **Reworded**            | Cards whose wording changed in the file                                            | Updated, keeping review history                   |
| **New in the file**     | Cards the file has and the deck does not                                           | Added                                             |
| **Changed in the app**  | Cards you edited in the app since the last update                                  | Your app version is kept                          |

Above the groups, chips count the changes: **All changes**, then how many are new, reworded, need you or changed in the app. Select a chip to see only that group, and select it again to see them all. The line under the chips says how many cards stay as they are.

Each group has buttons to choose for every card in it at once, such as **Keep all** or **Remove all**. A reworded card shows as one line, with the old words struck through and the new ones after them. Other changed cards mark the words put in and the words taken out.

> **Caution**
>
> A removed card goes to [Trash](/guides/trash) with its review history, and you
> can restore it within 30 days. Keep any card you still want to study.

## The first update and later ones

The first time you update a deck from a file, NeuroCards links the file to the deck. From then on it can tell which changes came from the file and which from the app, so later updates ask fewer questions.

If the file has its cards in a new order, the deck follows it.

A file's [tags](/guides/tags) change a card's tags only where the file changed them since the last update, so tags you added in the app stay. The first update only adds tags. The summary counts the cards it retagged.

## After the update

The page shows what changed, folder by folder, and leaves out decks that stayed as they were. Select a deck to open it. A long update folds to one row per folder, which opens to its decks.

If a deck couldn't update, its folder stays open at the top with the reason, and **Try again** sends only what failed. A deck that changed somewhere else in the meantime can't be sent again, so add its file once more to see what is different now.

## When the app is ahead of your file

If you changed cards in the app that your file does not have yet, the page says your file is behind and offers **Download updated file**. It saves the file back with the app's changes, laid out as before, so the file and the deck match again.

A text file cannot hold a card that contains a line break or the separator. If a deck has such cards, the page leaves it out and suggests exporting it as CSV instead. A gap card is written as its marked sentence, as in an [import](/guides/import-export#gap-cards).

## Quizzes

Quizzes update from their `.toml` or `.json` files the same way. Open the quiz, then the **⋯** menu, and choose **Update from file**. The review lists questions instead of cards, with each question's choices and explanation. A question whose choices are only in a new order counts as unchanged.

**Update from files** takes quiz files and deck files together. A quiz file only ever pairs with a quiz, and a deck file with a flashcard deck. A quiz file that matches no quiz is added as a new quiz, named by the file's own `name`. When the quiz is ahead of your file, **Download updated file** saves it back in the file's own format.

## Limits

One update can add or edit up to 2,000 cards or questions. For a bigger change, update in parts or import a new deck.

[Discover](/guides/discover) decks update the same way when a newer version comes out.

Source: https://docs.neurocards.net/guides/update-from-files/index.mdx
