Import CSV into Strapi

How CSV and TSV imports into Strapi work, what changes when rows become entries, where data gets lost, and when a scripted import beats a plugin.

Moving spreadsheet data into Strapi looks like a single step, but it is really a transformation. Flat rows of text become typed entries with validation rules, relations, media links and publication states. This review explains what that transformation changes, where meaning or usability can be lost, and how to decide whether a CSV-based import fits your project. No product tests or measurements were available for this article, so it relies on general, verifiable behavior of the CSV format and of Strapi's content model. Points that depend on your Strapi version or on a specific plugin are flagged as things to confirm.

Short verdict: is a CSV import suitable for your use?

A CSV import works well when your content is mostly flat: titles, short text, numbers, booleans, dates and simple categories that map cleanly to fields in one collection type. The main benefit is speed. Editors can prepare or clean data in a familiar spreadsheet tool and load hundreds of rows without retyping them.

The decisive tradeoff is structure. CSV has no native concept of data types, nested objects, relations, components, dynamic zones or media files. Strapi has all of these. Each mismatch has to be handled by mapping logic, either in a plugin or in your own script. Where that logic guesses wrong, data is silently converted, rejected or attached to the wrong entry.

CSV is a poor fit, and JSON or a scripted migration from the original source is preferable, when your content relies heavily on relations, repeatable components, rich text with formatting, localized variants or uploaded media. CSV is also a poor fit when you need a repeatable, lossless round trip between environments. For moving a whole project between Strapi instances, Strapi's own data transfer and export tooling is designed for that job. It uses its own archive format rather than CSV.

How CSV gets into Strapi: the realistic options

Based on general knowledge of the project, the Strapi core admin panel has not shipped a general-purpose CSV importer for content entries. Check the current documentation for your version before relying on that. In practice, teams use one of three routes.

  • A community import/export plugin that adds an upload screen to the admin panel and maps CSV columns to fields.
  • A script that parses the CSV and creates entries through Strapi's REST or GraphQL API, authenticated with an API token.
  • A script or custom command that runs inside the Strapi project and uses the server-side data APIs. In Strapi 5 this is the Document Service; in Strapi 4 it was the Entity Service.
Route | Main strength | Main limitation
Admin plugin | No code; editors can run it themselves | Mapping rules, supported field types and version compatibility vary by plugin and must be checked
REST or GraphQL script | Runs from anywhere; goes through the same validation and permissions as other API clients | Relations and media need extra requests; you write and maintain the mapping
In-project script | Full access to the content model, with no network or permission setup | Runs with server-level access, so mistakes skip the safeguards an API token would impose

No specific plugin was evaluated for this review. Before choosing one, confirm in its own documentation that it supports your Strapi major version and the field types you use, and that its handling of draft and published states matches your needs.

What the import actually changes

Unlike a visual effect, a CSV import changes stored data. Every cell starts as a plain string, and the importer decides what each string becomes. These are the conversions that matter.

  • Delimiters and quoting: a CSV uses commas and a TSV uses tabs, but spreadsheets in some locales export semicolons. Fields that contain the delimiter, quotes or line breaks must be quoted. A parser that ignores quoting will split one field into several and shift every column after it.
  • Type coercion: number, integer, decimal, boolean, date and enumeration fields in Strapi expect real types or valid values. The string 0012 may lose its leading zeros as a number. The string TRUE may or may not become a boolean. A date like 03/04/2025 is ambiguous between US and other formats, so ISO 8601 dates avoid guesswork.
  • Empty cells: an importer may treat an empty cell as an empty string, as null or as a missing value. On update, that difference determines whether an existing value is cleared or kept.
  • Relations: a CSV can only hold a reference such as an ID, a slug or a name. The importer must look up the target entry and connect it. In Strapi 5, relations are identified by document IDs rather than the numeric IDs used in Strapi 4.
  • Media: a CSV cannot contain the file itself. Images and attachments must be uploaded to the media library first, then linked by their resulting IDs.
  • Rich text: a Markdown-style rich text field accepts a string. The structured Blocks editor stores a JSON structure, so plain or HTML text from a spreadsheet needs conversion before it fits.
  • Publication state: with Draft and Publish enabled, imported entries may land as drafts. How the published state is set differs between Strapi versions and between plugins, so confirm this behavior before a large import.

Character encoding and styled text

Encoding problems are the most common way meaning gets corrupted on the way in. Save the file as UTF-8. Some spreadsheet tools add a byte order mark at the start of a UTF-8 file. If the parser does not strip it, the first column header gains an invisible character and no longer matches the field name. Files saved in a legacy encoding turn accented letters and non-Latin scripts into garbled sequences, and that damage is stored permanently once imported.

Watch for Unicode "font" text in the source data. Cells sometimes contain decorative lettering copied from a text-styling generator, such as bold or script-looking letters taken from the mathematical alphanumeric range. These are not formatting. They are different characters. Strapi stores them exactly as given. On your site they will not match ordinary-letter searches, sorting or filters, and screen readers may announce them oddly or skip them. If emphasis is needed, normalize these characters back to plain letters before import, and apply styling in the front end instead.

Right-to-left text such as Arabic or Hebrew is stored as ordinary characters in logical order, which is correct. Whether it displays properly depends on the admin panel and on your front end setting text direction. The import step itself does not reverse or mirror anything. If right-to-left text looks backwards after import, check the display layer before assuming the data is damaged.

Will the imported content stay readable and usable?

If the mapping is correct, imported entries are ordinary Strapi content. They can be edited in the admin panel, queried through the API, copied out and rendered by any front end, with no special behavior on copy and paste. Usability problems come from what was imported, not from the fact that it arrived by CSV.

  • Search and filtering only work on normalized, consistently typed values. Mixed formats in one column, such as some dates in ISO form and some written out, break range filters and sorting.
  • Accessibility depends on content quality. Alternative text for images is usually missing from spreadsheets unless you add a column for it. Decorative Unicode letters, discussed above, reduce screen reader clarity.
  • Editing in the admin panel is straightforward for flat fields. Content that was forced into a single text field, such as a list of tags joined by semicolons, stays awkward to edit until it is restructured into a proper relation or component.
  • Re-exporting to CSV will not reproduce the original file exactly. Relations, components and rich text have to be flattened again, so plan around one-way import rather than a lossless round trip.

A minimal scripted import

The sketch below shows the core of an API-based import in Node.js: parse a UTF-8 CSV with header names that match field names, coerce types explicitly, and create one entry per row. It is illustrative, not a tested tool. The endpoint and token come from environment variables, and the field names are placeholders. Strapi's REST API expects the field values wrapped in a data object.

import { readFileSync } from 'node:fs';
import { parse } from 'csv-parse/sync';

const rows = parse(readFileSync('products.csv', 'utf8'), {
  columns: true,          // first row holds field names
  bom: true,              // strip a UTF-8 byte order mark if present
  skip_empty_lines: true,
  delimiter: ','          // use '\t' for TSV
});

for (const row of rows) {
  const data = {
    title: row.title.trim(),
    sku: row.sku,                        // keep as text to preserve leading zeros
    price: row.price === '' ? null : Number(row.price),
    inStock: row.inStock.toLowerCase() === 'true',
    releaseDate: row.releaseDate || null // expects ISO 8601, e.g. 2025-03-04
  };

  const res = await fetch(process.env.STRAPI_ENDPOINT, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      Authorization: `Bearer ${process.env.STRAPI_TOKEN}`
    },
    body: JSON.stringify({ data })
  });

  if (!res.ok) console.error(row.sku, res.status, await res.text());
}

Relations and media would need extra steps in this loop: look up or upload the target first, then include its identifier in the data object. Logging failures per row, as shown, matters more than speed. Strapi's validation errors tell you exactly which values did not fit the content model.

Checks before a full import

  • Back up the database, or run the import against a staging copy first.
  • Import five to ten representative rows, including the messiest ones, and inspect them in the admin panel and through the API.
  • Confirm that numbers, dates, booleans and empty cells came through as intended, not just that the request succeeded.
  • Verify that relations point to the right entries and that media is attached.
  • Check non-English text and any special characters for encoding damage.
  • Decide how reruns behave. Without a unique key such as a slug or SKU to match on, running the import twice creates duplicates.

Gaps in this review

No hands-on testing, performance figures or plugin comparisons were available, so this article does not rate specific tools or claim throughput limits. Version-specific details, especially publication-state handling, relation identifiers and Blocks field structure, should be confirmed against the official documentation for the Strapi release you run. The same applies to the documentation of any plugin you consider, including what it does with uploaded files and data, which cannot be judged from its interface or description.