# Export All Collections Data to CSV

**URL:** <https://speciforum.org/t/export-all-collections-data-to-csv/3146>\
**Category:** Technical Docs\
**Tags:** Specify-7\
**Created:** [November 20, 2025, 3:13pm UTC](https://speciforum.org/t/export-all-collections-data-to-csv/3146 "2025-11-20T15:13:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lexiclevenger6](https://avatars.discourse-cdn.com/v4/letter/l/b9e5f3/32.png) [@lexiclevenger6](https://speciforum.org/u/lexiclevenger6)\
**Post date:** [November 20, 2025, 3:13pm UTC](https://speciforum.org/t/export-all-collections-data-to-csv/3146/1 "2025-11-20T15:13:00Z")

</div>

> 📖 This guide walks through how to export all collections data from a Specify database. To perform a full backup with all records included, see [How to Create a Full Database Backup in Specify](https://speciforum.org/t/how-to-create-a-full-database-backup-in-specify/2798).

# Export All Collections Data to CSV

All collections data from a database can be exported to CSV using the Create CSV feature in the Query Builder. To do this, you will need to build a query that includes every field in the database that contains the data you would like to export.

## 1. Identify Populated Fields

First, you will need to find out which fields contain data. One option for this is to run a query on every field using the 🚫 and Empty operators and note which fields return results.

![Example mapping to return not empty results](https://canada1.discourse-cdn.com/flex029/uploads/specifysoftware/optimized/2X/3/30cb16f25254a43d3d100d55b7b932f8717a1e76_2_517x33.png)

However, running a query on each field can be very time consuming. Instead, we recommend running a script to identify the fields for you. An IT Administrator will need to follow this guide:

> [@Find All Columns/Fields with Data in a Specify database](https://speciforum.org/t/find-all-columns-with-data-in-a-specify-database/3122):
>
> book This guide describes how to find all fields containing data in a Specify database using a SQL script run behind-the-scenes by an IT administrator. [!danger] Read Me First These steps should only be performed by an IT administrator. Before running any scripts on a database, always make sure to create a [complete backup](https://speciforum.org/t/how-to-create-a-full-database-backup-in-specify/2798) of the database. To find all of the columns in Specify that contain data, it is necessary to run a script behind-the-scenes. The following procedure can be used to fin…

## 2. Build Your Query

Now, you can build a query that includes all of the fields you identified. We recommend using Collection Object as the base table because it has multiple relationships with other tables.

The Database Schema page in User Tools displays the Specify data model, which may help you identify the correct relationships to use in your query.

## 3. Create CSV

After you have built your query, run the query and click Create CSV. Once Specify has finished generating the file, it will either automatically download or appear in the :bell_: Notifications tab.

 ![Query export to CSV completed notification](https://canada1.discourse-cdn.com/flex029/uploads/specifysoftware/original/2X/5/58b030fb6a62599d5f7ce2be7b004e0bbf30bcbc.png)
