TabularJS
All formats

HTML to JSONHTML Tables

Scrape tables from HTML.

Convert any HTML <table> element — from a file, URL response, or string — into structured worksheet JSON. Supports data-formula attributes, merged cells (colspan/rowspan), and inline styles.

Feature support

Data values
Formulas
Styles
Merged cells
Comments
Column metadata

Example

js
import tabularjs from 'tabularjs';

const html = `<table>
  <tr><th>Name</th><th>Score</th></tr>
  <tr><td>Alice</td><td data-formula="=SUM(A1:A10)">90</td></tr>
</table>`;

const result = await tabularjs(html, { format: 'html' });

Why TabularJS for HTML Tables?