Adds import and export buttons to collections in the Payload 3 admin so records can be downloaded or updated in bulk from JSON or CSV files. Parsing and transformation run on the client. It follows Payload access control, supports field selection, and can be configured to exclude collections or restrict who may import.
A plugin for [Payload CMS 3](https://payloadcms.com) to import and export JSON and CSV files.
Installation
npm i payload-plugin-import-export23
Stars
3
Forks
0
Open Issues
1 years ago
Last Updated
1.2k
Weekly Downloads
v3.0.20
npm Version
110.1 KB
Unpacked Size
1
Dependencies
230 since Sep 7
| Date | Stars |
|---|---|
| Dec 6, 2026 | 23 |
| Dec 5, 2026 | 23 |
| Dec 4, 2026 | 23 |
| Dec 3, 2026 | 23 |
| Dec 2, 2026 | 23 |
| Dec 1, 2026 | 23 |
| Nov 30, 2026 | 23 |
| Nov 29, 2026 | 23 |
| Nov 28, 2026 | 23 |
| Nov 27, 2026 | 23 |
| Nov 26, 2026 | 23 |
| Nov 25, 2026 | 23 |
| Nov 24, 2026 | 23 |
| Nov 23, 2026 | 23 |
| Nov 22, 2026 | 23 |
| Nov 21, 2026 | 23 |
| Nov 20, 2026 | 23 |
| Nov 19, 2026 | 23 |
| Nov 18, 2026 | 23 |
| Nov 17, 2026 | 23 |
| Nov 16, 2026 | 23 |
| Nov 15, 2026 | 23 |
| Nov 14, 2026 | 23 |
| Nov 13, 2026 | 23 |
| Nov 12, 2026 | 23 |
| Nov 11, 2026 | 23 |
| Nov 10, 2026 | 23 |
| Nov 9, 2026 | 23 |
| Nov 8, 2026 | 23 |
| Nov 7, 2026 | 23 |
| Nov 6, 2026 | 23 |
| Nov 5, 2026 | 23 |
| Nov 4, 2026 | 23 |
| Nov 3, 2026 | 23 |
| Nov 2, 2026 | 23 |
| Nov 1, 2026 | 23 |
| Oct 31, 2026 | 23 |
| Oct 30, 2026 | 23 |
| Oct 29, 2026 | 23 |
| Oct 28, 2026 | 23 |
| Oct 27, 2026 | 23 |
| Oct 26, 2026 | 23 |
| Oct 25, 2026 | 23 |
| Oct 24, 2026 | 23 |
| Oct 23, 2026 | 23 |
| Oct 22, 2026 | 23 |
| Oct 21, 2026 | 23 |
| Oct 20, 2026 | 23 |
| Oct 19, 2026 | 23 |
| Oct 18, 2026 | 23 |
| Oct 17, 2026 | 23 |
| Oct 16, 2026 | 23 |
| Oct 15, 2026 | 23 |
| Oct 14, 2026 | 23 |
| Oct 13, 2026 | 23 |
| Oct 12, 2026 | 23 |
| Oct 11, 2026 | 23 |
| Oct 10, 2026 | 23 |
| Oct 9, 2026 | 23 |
| Oct 8, 2026 | 23 |
| Oct 7, 2026 | 23 |
| Oct 6, 2026 | 23 |
| Oct 5, 2026 | 23 |
| Oct 4, 2026 | 23 |
| Oct 3, 2026 | 23 |
| Oct 2, 2026 | 23 |
| Oct 1, 2026 | 23 |
| Sep 30, 2026 | 23 |
| Sep 29, 2026 | 23 |
| Sep 28, 2026 | 23 |
| Sep 27, 2026 | 23 |
| Sep 26, 2026 | 23 |
| Sep 25, 2026 | 23 |
| Sep 24, 2026 | 23 |
| Sep 23, 2026 | 23 |
| Sep 22, 2026 | 23 |
| Sep 21, 2026 | 23 |
| Sep 20, 2026 | 23 |
| Sep 19, 2026 | 23 |
| Sep 18, 2026 | 23 |
| Sep 17, 2026 | 23 |
| Sep 16, 2026 | 23 |
| Sep 15, 2026 | 23 |
| Sep 14, 2026 | 23 |
| Sep 13, 2026 | 23 |
| Sep 12, 2026 | 23 |
| Sep 11, 2026 | 23 |
| Sep 10, 2026 | 23 |
| Sep 9, 2026 | 23 |
| Sep 8, 2026 | 23 |
| Sep 7, 2026 | 23 |
1.1K+407 since Sep 7
| Date | Weekly downloads |
|---|---|
| Dec 6, 2026 | 1,119 |
| Dec 5, 2026 | 951 |
| Dec 4, 2026 | 904 |
| Dec 3, 2026 | 914 |
| Dec 2, 2026 | 897 |
| Dec 1, 2026 | 899 |
| Nov 30, 2026 | 905 |
| Nov 29, 2026 | 1,074 |
| Nov 28, 2026 | 1,224 |
| Nov 27, 2026 | 1,251 |
| Nov 26, 2026 | 1,239 |
| Nov 25, 2026 | 1,252 |
| Nov 24, 2026 | 1,263 |
| Nov 23, 2026 | 1,270 |
| Nov 22, 2026 | 1,142 |
| Nov 21, 2026 | 1,153 |
| Nov 20, 2026 | 1,074 |
| Nov 19, 2026 | 1,184 |
| Nov 18, 2026 | 1,145 |
| Nov 17, 2026 | 1,139 |
| Nov 16, 2026 | 1,118 |
| Nov 15, 2026 | 1,110 |
| Nov 14, 2026 | 1,110 |
| Nov 13, 2026 | 1,390 |
| Nov 12, 2026 | 1,402 |
| Nov 11, 2026 | 1,473 |
| Nov 10, 2026 | 1,474 |
| Nov 9, 2026 | 1,490 |
| Nov 8, 2026 | 1,478 |
| Nov 7, 2026 | 1,503 |
| Nov 6, 2026 | 1,290 |
| Nov 5, 2026 | 1,141 |
| Nov 4, 2026 | 1,203 |
| Nov 3, 2026 | 1,199 |
| Nov 2, 2026 | 1,214 |
| Nov 1, 2026 | 1,245 |
| Oct 31, 2026 | 1,218 |
| Oct 30, 2026 | 1,400 |
| Oct 29, 2026 | 1,218 |
| Oct 28, 2026 | 890 |
| Oct 27, 2026 | 987 |
| Oct 26, 2026 | 1,016 |
| Oct 25, 2026 | 1,125 |
| Oct 24, 2026 | 1,039 |
| Oct 23, 2026 | 689 |
| Oct 22, 2026 | 964 |
| Oct 21, 2026 | 1,215 |
| Oct 20, 2026 | 1,113 |
| Oct 19, 2026 | 1,061 |
| Oct 18, 2026 | 1,001 |
| Oct 17, 2026 | 1,058 |
| Oct 16, 2026 | 1,303 |
| Oct 15, 2026 | 1,257 |
| Oct 14, 2026 | 1,260 |
| Oct 13, 2026 | 1,267 |
| Oct 12, 2026 | 1,266 |
| Oct 11, 2026 | 1,150 |
| Oct 10, 2026 | 1,122 |
| Oct 9, 2026 | 1,075 |
| Oct 8, 2026 | 1,060 |
| Oct 7, 2026 | 987 |
| Oct 6, 2026 | 982 |
| Oct 5, 2026 | 1,038 |
| Oct 4, 2026 | 1,081 |
| Oct 3, 2026 | 1,060 |
| Oct 2, 2026 | 998 |
| Oct 1, 2026 | 844 |
| Sep 30, 2026 | 734 |
| Sep 29, 2026 | 768 |
| Sep 28, 2026 | 751 |
| Sep 27, 2026 | 651 |
| Sep 26, 2026 | 554 |
| Sep 25, 2026 | 497 |
| Sep 24, 2026 | 506 |
| Sep 23, 2026 | 537 |
| Sep 22, 2026 | 548 |
| Sep 21, 2026 | 522 |
| Sep 20, 2026 | 538 |
| Sep 19, 2026 | 571 |
| Sep 18, 2026 | 707 |
| Sep 17, 2026 | 781 |
| Sep 16, 2026 | 763 |
| Sep 15, 2026 | 710 |
| Sep 14, 2026 | 697 |
| Sep 13, 2026 | 691 |
| Sep 12, 2026 | 692 |
| Sep 11, 2026 | 653 |
| Sep 10, 2026 | 601 |
| Sep 9, 2026 | 672 |
| Sep 8, 2026 | 690 |
| Sep 7, 2026 | 712 |
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/768040561-root)<a href="https://payloaddirectory.dev/plugins/768040561-root"><img src="https://payloaddirectory.dev/badge/768040561-root.svg" alt="Payload Directory"></a>README
A plugin for Payload CMS to import and export JSON and CSV files. You can use this to change data for many records e.g. translate content... from collections.
All parsing and transformations are done on the client keeping the load from the server.
Current version is for Payload CMS 3. For Payload 2 please install version 0 of this plugin.
npm i "payload-plugin-import-export"
yarn add "payload-plugin-import-export"
pnpm add "payload-plugin-import-export"
import importExportPlugin from 'payload-plugin-import-export';
import type { User } from "payload/generated-types";
export const config = buildConfig({
serverUrl: process.env.PAYLOAD_PUBLIC_SERVER_URL //Required!
plugins: [
importExportPlugin({
enabled: true,
excludeCollections: ["users"],
canImport: (user:User) => user.roles.includes("admin")
}),
]
});
| PROP | TYPE | DEFAULT | DESCRIPTION |
|---|---|---|---|
| enabled | boolean | true | Enable/disable plugin |
| excludeCollections | string[] | undefined | List of collection slugs to not display the buttons |
| redirectAfterImport | boolean | true | Redirect back to collection after import |
| canImport | (user:unknown) => boolean | () => true | Restrict access to import. You have access to the user. |
Update data or create new items - and you can download csv or json with the failed items. Items fail usually due to permission issues or that required fields are not set.
On import and export you can select fields.
The filters set on the collections will also be used for exporting items.
This plugin obeys all access control rules, so exports will only include the fields with read access. On import missing permission on field level will not result in an error. The fields will just be ignored.
If localization is configured imports and export will be done in current selected locale. Caution: If field is not localized the "global" value will be overwritten.
When importing / exporting JSON the data will be shaped like via the REST API.
For CSV exports the data will be "flattened" for any field type which contains nested data (arrays,rows,tabs). e.g.:
[
{
"id": "65e",
"title": "Foo",
"array": [
{
"title_array": "Bar"
},
{
"title_array": "Baz"
}
],
"tab": {
"title_tab": "Boz"
}
}
]
will become
| id | title | array.0.title_array | array.1.title_array | tab.title_tab |
|---|---|---|---|---|
| 65e | Foo | Bar | Baz | Boz |
When importing the data will get "unflattened". Make sure to not change any header names.
MIT
Topics
import export
Import and export Payload collection data from within the admin panel
9757.1k/wk46.1kv3 v4
payload exportcollections plugin
Export collection data to CSV or JSON from list views in the admin panel
78448/wk41v?
payload portable plugin
Export all collections and globals to one JSON file and import them back from the Payload admin panel
43247/wk0v3
payload extended import export plugin
Import CSV, JSON, Excel and TSV files into Payload collections with field mapping and preview
3526/wk31v3
payload wordpress
WordPress MySQL database adapter and migration tool for Payload with PostgreSQL support
135v3
payload
Immutable phylogenetic reference panels, sample and sequence registration, and GenBank import for Payload collections
76475/wk0v3