Extract HTML tables from a page to CSV and JSON
Ed Rayyis
Pulls every table from the sample page into rows keyed by column header, lines up merged cells, and saves each table as a CSV file and a JSON file. Swap in your own pages.
Input
Output fields
Sign up on Apify or log in
The HTML Table Extractor: tables to rows, CSV and JSON Actor is ready to run with the inputs already set for "Extract HTML tables from a page to CSV and JSON". Sign up or log in and you'll land in Apify Console with a copy of this exact task.
Start the "Extract HTML tables from a page to CSV and JSON" task
The HTML Table Extractor: tables to rows, CSV and JSON Actor will start running based on the input automatically. You can also change all the input fields, like page urls and header rows, to match your specific use case.
Receive the "Extract HTML tables from a page to CSV and JSON" output
Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as URL, extracted, table, and more.
Integrate into your workflow
The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Extract HTML tables from a page to CSV and JSON" task via API.

Integrate "Extract HTML tables from a page to CSV and JSON" into your workflow
Connect "Extract HTML tables from a page to CSV and JSON" with 100+ integrations, or run it via API or MCP.
Webhook
n8n
Make
Zapier
Airbyte
Keboola
IFTTT
Hubspot
GDrive
Gmail
Apify MCP
GitHub
Slack
LangChain
LlamaIndex
Flowise
Pinecone
OpenAI
Mastra
Clay