Skip to content
R

react-papaparse

The fastest in-browser CSV (or delimited text) parser for React

by bunlongFree

#172in UI Libraries
0In stores

Description

react-papaparse is a CSV parser for React that runs in the browser. It provides components and hooks for reading delimited text, including a…

Highlights

  • In-browser CSV parsing for React
  • Multi-threaded worker for large files
  • Auto-detects the delimiter
  • Local and remote file reading with streaming
  • CSV to JSON and JSON to CSV
  • Detailed error reports for malformed rows

Ratings & Reviews

No ratings yet

Be the first to rate react-papaparse.

People also visit

R

react-json-to-csv

A react button component to easily generate csv downloads of your json data

UI Libraries
Launch
E

@extend-ai/react-xlsx

React components and hooks for viewing XLSX workbooks

UI Libraries
Launch
N

Node CSV

Full featured CSV parser with simple api and tested against large datasets

Developer Tools
Launch
I

@iamjariwala/react-doc-viewer

React document viewer with PDF tools, local DOCX and XLSX previews, images

UI Libraries
Launch
R

reactable

Fast, flexible, simple data tables in React

UI Libraries
Launch
R

react-virtualized

React components for efficiently rendering large lists and tabular data

UI Libraries
Launch

react-papaparse FAQ

What is react-papaparse?

A CSV and delimited text parser for React that runs in the browser, with components and hooks for reading and writing CSV.

How do I install it?

The install section of the site has the steps for adding the package to a React project.

Does it need a server?

No. The library runs in the browser. The docs note that when you use readRemoteFile in Next.js, the component should be rendered without server-side rendering.

Can it detect the delimiter?

Yes. It scans the first few rows to find the delimiter, and you can also set it yourself.

Can it handle large files?

The site says it is multi-threaded and can handle files gigabytes in size. Your browser's memory still sets the practical limit.

Does it export CSV?

Yes. There is a jsonToCSV function and a CSVDownloader component.

What are the best react-papaparse alternatives?

Popular alternatives to react-papaparse include react-json-to-csv, @extend-ai/react-xlsx and @iamjariwala/react-doc-viewer. See all react-papaparse alternatives

Developer Stuff

Badges