ImportCSV

React & JS Embeddable CSV importer with validation and large dataset support

A production-ready React component for importing CSV, XLS, and XLSX files with intelligent column mapping, validation, and support for large datasets.

Why ImportCSV?

⚡ High Performance

Handle 10,000+ rows with virtual scrolling and progressive validation

📦 Lightweight

~100KB gzipped bundle, optimized with Preact

🎨 Zero Config

CSS auto-injected, no separate imports needed

🛠️ Production Ready

Built-in validation, transformations, and error handling

Installation

npm install @importcsv/react zod
import { CSVImporter } from '@importcsv/react';
import { z } from 'zod';

const schema = z.object({
  name: z.string().min(1),
  email: z.string().email()
});

<CSVImporter
  schema={schema}
  onComplete={(data) => {
    // data is typed: { name: string; email: string }[]
    console.log(`Imported ${data.length} rows`);
  }}
/>

Try It Now

Key Features

Get Started in 5 Minutes

Next Steps