Importing and exporting media metadata with CSV
You can export file metadata to a comma-separated values (CSV) file, edit it in a spreadsheet, and import the changes back into PhotoDeck. Both the export and import work on the files in the view you choose.
If you have connected an AI chatbot to your account, using it to directly batch-update metadata may be more practical than dealing with a CSV file.
Choose the right scope: gallery, media library, or All files
You will find the CSV export/import from My images & videos / More / CSV export and CSV metadata import.
The view you export/import from determines which media are exported and which media can be updated by an import:
- A gallery: the CSV contains media in that gallery. Importing from that gallery can update only matching media that are published in that gallery.
- All files in library: the CSV contains (and applies to) all media in one media library, whether or not they are published in a gallery.
- All files (visible if there are multiple media libraries in your account): the CSV contains and applies to all media available to you across the account.
- A collection view is limited to media in that collection.
Active search terms and filters limit the exported CSV. On import, those filters are ignored.
Media metadata belongs to the media, not to a gallery: if the same file appears in several galleries, changing its metadata through one gallery updates that media everywhere it appears.
Keep the CSV formatting accurate
We recommend exporting a fresh CSV from the scope you intend to update and using it as your template. Keep a backup of the original export before editing it.
- Keep the
uuidcolumn and each file’s original UUID unchanged. The UUID is what identifies each file in PhotoDeck and is unique. - Keep the exported column headers exactly as they are. PhotoDeck uses them to identify fields, so a misspelled or renamed header may prevent that value from being imported.
- Leave cells blank when you want to keep existing values. Blank cells do not erase metadata. Remove a column when you do not want to update that field.
- Save the file as a UTF-8-encoded CSV with commas as separators, not as an Excel workbook. Check that your spreadsheet did not save it with semicolons or another delimiter.
- Use valid CSV formatting. Let your spreadsheet application handle quotes and commas inside a cell instead of editing the raw CSV structure by hand.
For custom metadata, use the exact custom-field name as the column header and existing tag names as values. In a multiple-choice field, separate the tags with |, for example Portrait|Editorial. To replace a field’s tags, include every tag you want to keep.
An incorrectly formatted file can cause the import to fail completely, or rows or values to be interpreted incorrectly. CSV imports are limited to 10 MB.
Available media fields
For the full list of media fields available for CSV updates, please refer to the media API documentation.
Import the CSV and check the results
Open the gallery or media-library view that contains the files you want to update, then choose CSV metadata import and upload the CSV. The import runs in the background. Refresh the results page to see which rows were updated: if some rows failed, correct those rows and import only those rows again.
How media CSV imports count as microjobs
Metadata imports are counted as 1 microjob per group of up to 100 succesfully processed media rows. If your quota runs out during an import, completed updates remain in place and the remaining rows are not processed. Please refer to the help on microjobs for details about monthly quotas.