HTML Table to JSON Converter

Convert HTML tables to JSON.

📊 How it works

The extractor looks for `<table>` tags in your input and follows these rules:

  • Headers: It first looks for `<th>` elements in `<thead>` or the first `<tr>`.
  • Rows: It maps subsequent `<tr>` rows to JSON objects using the identified headers as keys.
  • Cleaning: Extra whitespace, nested tags, and HTML entities are automatically stripped from cell values.
  • Multiple Tables: If your HTML contains multiple tables, it extracts data from all of them into separate arrays.