A simple, responsive web-based CSV viewer that supports URL-based CSV loading, built with Tailwind CSS, PapaParse, and DataTables.
- Load CSV data via a direct URL or through a query parameter (
?u=). - Display CSV data in a responsive and interactive table with pagination, search, and sorting (powered by DataTables).
- Modern and clean UI styled with Tailwind CSS.
- Automatically parses CSV headers and skips empty rows.
Check out the live demo here.
git clone https://github.com/nakamura196/csv_viewer.git
cd csv_viewerYou can open the file directly in your browser:
open docs/index.htmlOr use a simple HTTP server to serve the file:
python -m http.serverThen, open http://localhost:8000/docs in your browser.
- Paste a CSV file URL in the input field.
- Click the "Load CSV" button to load and display the CSV data.
Add ?u=CSV_FILE_URL to the URL to directly load a CSV file.
Example:
http://localhost:8000/docs/?u=https://example.com/sample.csv
The viewer ships with three quick-load sample CSVs (visible under "サンプル:" on the page):
| Label | Source | License |
|---|---|---|
Omeka S BulkImport item.csv |
omeka-j/Omeka-S-module-BulkImport-Sample-Data | CC0-1.0 |
iris.csv |
mwaskom/seaborn-data | (per upstream) |
titanic.csv |
datasciencedojo/datasets | (per upstream) |
The Omeka S sample illustrates the Dublin Core column layout (dcterms:title, dcterms:description, ...) used by the BulkImport module — handy for previewing a CSV before importing it into Omeka S.
All dependencies are loaded via CDN.
To customize the table styles, edit the inline <style> section in the docs/index.html file.
Modify the JavaScript section to add additional features such as:
- Custom CSV validation.
- Support for different file formats.
You can deploy this project easily on GitHub Pages:
- Push your code to a GitHub repository.
- Enable GitHub Pages in the repository settings.
- Select the branch (
mainormaster) and the root directory. - Access your site at
https://your-username.github.io/csv_viewer/.
Bug reports, feature requests, and pull requests are welcome. See CONTRIBUTING.md for the workflow.
This project is licensed under the MIT License.
Bundled sample data is distributed under its own license — see Sample Data above.
- Satoru Nakamura
GitHub Profile