Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Display any CSV file as a searchable, filterable, pretty HTML table — 100% JavaScript, no backend.
CSV to HTML Table is a 100% JavaScript template that converts any CSV file into a searchable, filterable, Bootstrap-styled HTML table in the browser. Created by Derek Eder, this open-source project (MIT License) reads a CSV from a local path and renders it with DataTables, so users get instant search, sorting, pagination, and column formatting without any server-side code.
CSV to HTML Table is a client-side web template that displays the contents of a CSV file inside a DataTables-enhanced HTML table. You provide a path to a CSV file, an HTML container element, and optional configuration like separator, delimiter, and download behavior; the template handles the rest with jQuery and jQuery CSV parsing. It runs on any static web server, including GitHub Pages, and requires no build step or database. The project's public repository is maintained by Derek Eder and has 1760 stars.
datatables_options) so you can enable paging, change page length, customize language, and more.separator, delimiter, and other parsing options through the csv_options parameter.custom_formatting; for example, turn a plain URL in column 4 into a clickable hyperlink.allow_download: true to display a link that downloads the original CSV file.data/ folder.index.html and set options in the CsvToHtmlTable.init() function: csv_path, element, allow_download, csv_options, datatables_options, and optional custom_formatting.python -m http.server (or python -m SimpleHTTPServer on Python 2) and open localhost:8000.gh-pages for GitHub Pages, or upload the folder to any web server.Open your browser's developer console and look for JavaScript errors. Common causes are an incorrect csv_path, CSV parsing options like separator that don't match your file, or the CSV file not being in the expected folder.
Yes. In the csv_options object, set separator to a character like a semicolon for European CSVs and delimiter to the quote character. These options are passed directly to the jQuery CSV library.
Once deployed, you can insert the table into any webpage using an iframe. The README includes a sample iframe pointing at the hosted GitHub Pages table.
Yes. CSV to HTML Table is open-source and released under the MIT License, so you can use, modify, and redistribute it freely, even for commercial projects.
