Go to example tasks

Extract HTML tables from a page to CSV and JSON

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.

Try for free
HTML Table Extractor: tables to rows, CSV and JSON
HTML Table Extractor: tables to rows, CSV and JSONexamsens.ai/html-table-extractor
URL
Extracted
Table
Caption
+6 fields
Text
Number
Boolean
List
Object

Input

Page URLs
url:https://en.wikipedia.org/wiki/List_of_largest_companies_by_revenue
Header rows:auto

Output fields

URL
Extracted
Table
Caption
Heading
Rows
Columns
CSV
JSON
Error

How it works

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.

Image

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

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay