Export & Import

Export your collection data to CSV for backup or sharing, and import smart collections from .afoliocollection files. CSV export and import are available on both the free and Pro tiers; smart-collection import/export requires Pro since smart collections are themselves a Pro feature.

CSV Export

  1. Go to File → Export Data (⌘⇧E)
  2. Choose your export options:
    • Include reference IDs — adds the reference you gave each copy (for example “Shelf 3”)
    • Parts data — choose to include owned parts, missing parts, both, or none
  3. Click Export and choose a save location

You can also export from Settings → Data → Export Data…. If you upgraded from a version of Afolio before iCloud sync, Export Pre-iCloud Backup… in the same place saves a copy of your collection as it was before the upgrade — see iCloud Sync.

On iPhone and iPad

  1. Tap the gear on the home screen (iPhone) or at the top of the sidebar (iPad) to open Settings
  2. Tap Data, then Export Data…
  3. Choose where to save the CSV file in Files — for example iCloud Drive or On My iPhone

To export just the results of a smart collection, use its Export button — this works on iPhone and iPad too.

What's Exported

The CSV includes one row per set instance (if you own two copies of a set, that's two rows). Columns include:

Wishlist items and manually-added minifigures are also included with an entry_type column to distinguish them.

Parts Data Format

When parts data is included, it uses a compact format in the parts_owned column. Each part is encoded as partNum/colorID with quantities. For example: 3x3001/1 3002/5 means 3 of part 3001 in color 1, and 1 of part 3002 in color 5.

To export just the results of a smart collection, use the Export button in its toolbar — see Smart Collections.

CSV Import

  1. Go to File → Import Data (⌘I)
  2. Select a CSV file previously exported from Afolio
  3. Sets that are already in your collection are updated, not added again. Other rows are added as new copies

You can also drag and drop a .csv file onto the Afolio window to import it.

On iPhone and iPad: tap the gear on the home screen (or in the iPad sidebar), choose Data, then Import Data… and pick the .csv file from Files. With iCloud sync on, the imported sets appear on your other devices too.

Afolio recognises a set it exported by the identifier in the file’s uuid column, so importing a backup twice doesn’t double your collection. Files exported before version 2.0.6 have no uuid column: their rows are matched by set number and the time the set was added. Rows you type yourself (a set number with no date) are always added as new copies.

Importing from Brickset

From version 2.0.8, Afolio can import a CSV file exported from Brickset as it is. It reads the set number from Brickset’s Number and Variant columns. If the file says how many of a set you own, Afolio adds that many copies, marked new or used when Brickset records that. More than one copy of a set needs Afolio Pro. In earlier versions, rename the Number column to set_number first; each row then adds one copy. Your Brickset notes come across too; prices paid don’t.

Tip: If you edit an exported file in a spreadsheet, keep the uuid column. It’s how each row finds the copy it came from.

Smart Collection Export & Import

Smart collections use their own file format (.afoliocollection) which contains filter definitions, display settings, and icons — no personal inventory data. Exporting and importing these files is done on the Mac; your smart collections sync to iPhone and iPad through iCloud.

Exporting

A single file can contain multiple smart collections.

Importing

Before importing, a confirmation prompt shows how many collections will be added. Collections that already exist (same filter conditions) are detected as duplicates and skipped.

Afolio

Track every set you own on Mac, iPhone and iPad, with the whole LEGO catalog built in and free iCloud sync. Free to download.

Download on the App Store

Need help? Contact us at [email protected]
Pricing  ·  Terms  ·  Privacy  ·  Refunds
© The Half Bakery Pty Ltd