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_viewer
You can open the file directly in your browser:
open docs/index.html
Or use a simple HTTP server to serve the file:
python -m http.server
Then, 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
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 (
main
ormaster
) and the root directory. - Access your site at
https://your-username.github.io/csv_viewer/
.
This project is licensed under the MIT License.
- Satoru Nakamura
GitHub Profile