Skip to content
UniKit

Table column extractor

Extract a whole column from an HTML table or delimited text by index or header name: tab, comma, semicolon and pipe separators are detected automatically, quoted fields and colspan are handled, empty values can be dropped, and rows, columns and missing values are counted.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Paste an HTML table fragment, or delimited text copied from Excel / CSV; with "auto" the delimiter is detected from the first row.

Extracted column

HTML cells are matched with a regular expression (not a full DOM parse); delimited text follows CSV quoting rules. One value per line.

Paste a table to see the extracted column

Data rows: 0 · Columns: 0 · Values: 0 · Missing: 0

What this tool does

  • Take just one column out of a table copied from a web page (tags included), e.g. only the "City" column
  • Turn multi-column text copied from Excel / CSV into a single-column list for bulk lookups or mail merges
  • Address a column by header name instead of counting indexes, and use the missing-value count to spot empty rows

Example

Input

<table><tr><th>姓名</th><th>城市</th></tr><tr><td>张三</td><td>北京</td></tr><tr><td>李四</td><td>上海</td></tr></table>

Output

北京
上海

Column 2 with "first row is a header" enabled: the header row is excluded. You can also type the header name, e.g. 城市.

Frequently asked questions

Is the HTML parsed with a DOM?

No. Cells are matched with a regular expression over `<tr>` / `<td>`, which keeps the logic pure and testable; the trade-off is that nested tables or fake tags inside `<script>` are not guaranteed to parse. For complicated pages, copy as plain text from the browser first. `<br>` becomes a space and common entities such as `&nbsp;` are decoded.

How is delimited text split?

Tab, comma, semicolon and pipe are supported; with "auto" the delimiter that yields the most fields in the first row wins. Double-quoted fields follow CSV rules (`""` is one quote), so commas inside a field are not split.

Index versus header name?

Indexes are 1-based and must not exceed the real column count, otherwise you get a "column index out of range" error. A header name only applies when "first row is a header" is on; an unknown name reports "header name not found" instead of silently returning nothing.

How do empty and missing values work?

The missing count is the number of rows whose value in that column is empty. "Drop empty values" (on by default) removes those empty strings from the output; turn it off to keep positions aligned with row numbers. A `colspan` shifts later columns to the right and pads the spanned cells with empties, matching how browsers render the table.

How large a table can it handle?

It is plain text processing, so tables in the hundreds of thousands of characters still compute in the browser; watch the rendering, since the output is one long text. The tool never reads files or uses the network, so pasted content stays local.

Keywords:Table column extractorcsvoffline

Related tools