TabularJS
All examples
basics

Browser: parse from a file input

Accept any spreadsheet via <input type=file>.

Wire up a file input to TabularJS — the File object is passed straight through, no FileReader required.

html
<input type="file" id="file" />
<pre id="out"></pre>

<script type="module">
  import tabularjs from 'https://cdn.jsdelivr.net/npm/tabularjs/dist/index.js';

  document.getElementById('file').addEventListener('change', async (e) => {
    const result = await tabularjs(e.target.files[0]);
    document.getElementById('out').textContent = JSON.stringify(result, null, 2);
  });
</script>

Live Preview

Sample output rendered in Jspreadsheet — upload your own file to try it.

sample-output.xlsx
Drag a file anywhere on this card to replace the sample data