HTML Table Extractor

2026-07-05 · page · source ↗ · source summary

Simon Willison's browser-based paste-conversion tool that extracts HTML tables from rich text, previews them, and exports to five formats — plus a Wikipedia search integration that auto-fetches pages via the open CORS API.


What It Is

A single-purpose browser tool at tools.simonwillison.net/html-table-extractor. Paste any rich text containing HTML tables (from a web page, a spreadsheet, a document) and it automatically detects each embedded table. You get a preview, then can export in any of five formats: HTML, Markdown, CSV, TSV, or JSON. A "Copy" button sits alongside each format tab.

Willison positions it as "yet another in my growing collection of paste-conversion tools" — a family that includes his recently-rebuilt Rich Text to Markdown converter. The tools share architecture and UI conventions.

Wikipedia Integration

The significant update in the post is a Wikipedia CORS discovery: Wikipedia exposes an open CORS API at en.wikipedia.org/w/api.php?action=parse that returns rendered HTML for any page. This means a browser-side tool can search Wikipedia and pull in tables without a server-side proxy.

"I had Codex add the ability to search Wikipedia for a page and then automatically import and display any tables from that page."

Willison wired this into the tool via a separate cors-fetch utility. The demo link pre-loads the Wikipedia API call for "List of cities and towns in the San Francisco Bay Area" — the resulting tables auto-populate the extractor.

Key Themes

Critical Analysis

The tool is unremarkable on its face but interesting as a pattern. A table extractor isn't novel — browser devtools have had "copy as CSV" plugins for years. What's worth noting is Willison's method: build a family of browser-side paste-conversion utilities that share UI conventions and don't require servers, accounts, or API keys. Each tool does exactly one transformation well. The sum is more valuable than any individual tool.

The Wikipedia CORS discovery is the real news here, not the table extractor itself. Wikipedia's parse API with origin=* means any browser-side tool can retrieve structured content from Wikipedia without authentication or a server proxy. This is a significant piece of open-web infrastructure that most developers building browser tools don't know exists. Willison's contribution is less the code than the connective tissue — wiring up an obscure API to a practical use case.

The agent-built feature is notable for what it isn't. Willison didn't have Codex build the whole tool — he had it add one feature to an existing tool he already understood. This is the correct granularity for agent-assisted development in mid-2026: agents as feature-level subcontractors, not system-level architects. The gist is worth reading as a case study in how to scope agent tasks.

The missing piece is persistence. These tools are ephemeral — paste, export, done. There's no history, no saved transforms, no way to chain tools together. That's a deliberate choice (simplicity over features), but it limits the suite's power. A local-first pipeline where table extraction feeds into CSV-to-SQL conversion, for instance, would require the user to manually shuttle data between tools.

Connections


Sources: HTML table extractor Last updated: 2026-07-05