<//>

HTML Table to CSV Extractor

Extract HTML table markup and convert it to clean CSV format. Paste any HTML snippet or full page source — the tool finds the table, parses thead and tbody rows, handles colspan and rowspan merging gracefully, and outputs a properly quoted CSV ready to download or paste into a spreadsheet. When multiple tables are found, switch between them with a click.

Data ToolsDevelopment
Loading tool...

How to Use HTML Table to CSV Extractor

How to Use the HTML Table to CSV Extractor

Step 1: Paste Your HTML

Paste any HTML containing a <table> element into the input panel. You can paste:

  • A single <table>...</table> snippet
  • A section of a page with surrounding elements — the tool will find the table automatically
  • The full HTML source of a webpage (right-click → View Page Source → copy all)

The tool uses the browser's own HTML parser, so it handles real-world HTML including missing closing tags, inline styles, and nested elements.

Step 2: Configure Options

Fill colspan cells with repeated value — when a header cell spans multiple columns using colspan="2", the tool can either repeat the header value across all spanned columns or leave the extra columns blank. Enable this option to produce a column for every spanned position with the same label.

Step 3: Select a Table (if multiple found)

If the HTML contains more than one <table>, numbered table selector buttons appear. Click a number to switch the extraction to that table. The total count of tables found is shown next to the selector.

Step 4: Copy or Download

  • Copy CSV — copies the extracted CSV to your clipboard
  • Download — saves a .csv file named table.csv

Paste directly into Excel, Google Sheets, LibreOffice Calc, or any tool that accepts CSV.

How Merged Cells Are Handled

Merge typeBehavior
colspan="2"Cell value repeated across all spanned columns (if option enabled)
rowspan="2"Cell value repeated in the rows below that would otherwise be empty
Both combinedBoth expansions applied correctly

Tips

  • To extract a table from a live webpage: right-click the page → View Page Source → Ctrl+A → Ctrl+C → paste here
  • Alternatively, right-click the table → Inspect → copy the <table> element's outer HTML

Frequently Asked Questions

Most Viewed Tools

🔐

TOTP Code Generator

2,953 views

Generate time-based one-time passwords from a TOTP secret key. Enter your base32 secret, choose a period and digit length, and get the current and next codes with a live countdown timer. Useful for testing and debugging 2FA integrations.

Use Tool →
{ }

JSON to Zod Schema Generator

2,947 views

Generate Zod validation schema code from a JSON sample object. Infers z.string(), z.number(), z.boolean(), z.array(), z.object(), and z.null() types automatically. Handles nested objects, arrays of objects with optional field detection, and outputs copy-ready TypeScript with import and z.infer type alias.

Use Tool →
{}

JSONL / NDJSON Formatter

2,877 views

Format, validate, and inspect JSON Lines (JSONL) and NDJSON files. Validates each line individually, reports parse errors by line number, outputs compact JSONL or a pretty-print preview, and lets you download the cleaned file.

Use Tool →
🔍

Secret and Credential Scanner

2,488 views

Scan pasted text, code, or config files for accidentally exposed API keys, tokens, passwords, and private keys. Detects 50+ secret types across AWS, GitHub, Stripe, OpenAI, and more — all client-side, nothing leaves your browser.

Use Tool →
🔑

Password Entropy Calculator

2,425 views

Calculate the information-theoretic bit entropy of any password or API key. Detects character set pools automatically, shows the total number of possible combinations, and estimates crack time across five attack scenarios from rate-limited web logins to GPU cracking clusters.

Use Tool →
🔐

TLS Cipher Suite Checker

2,396 views

Check TLS protocol version compatibility and cipher suite strength ratings against current best practices. Supports IANA and OpenSSL cipher names — rates each suite as Strong, Weak, or Deprecated and explains why.

Use Tool →
🔒

Content Security Policy Generator

2,085 views

Build Content Security Policy headers interactively. Toggle directives like script-src, style-src, and img-src, select allowed source tokens, and add custom origins. Instantly outputs your CSP as an HTTP header, meta tag, Nginx directive, or Apache header.

Use Tool →
📺

Screen Size Converter

1,882 views

Calculate screen width and height from diagonal size and aspect ratio. Convert between inches and centimeters for displays, TVs, and monitors with instant dimension calculations.

Use Tool →

Related Development Tools

📱

QR Code Generator

Featured

Create custom QR codes for URLs, text, and contact info

Use Tool →
{}

JSONL / NDJSON Formatter

Format, validate, and inspect JSON Lines (JSONL) and NDJSON files. Validates each line individually, reports parse errors by line number, outputs compact JSONL or a pretty-print preview, and lets you download the cleaned file.

Use Tool →
{ }

JSON to TypeScript Interface

Generate TypeScript interfaces from JSON objects instantly. Infers types for strings, numbers, booleans, arrays, and nested objects. Detects optional fields from array element merging, handles null values, and outputs clean, ready-to-use interface definitions.

Use Tool →

CSV Pivot Table Generator

Group and aggregate CSV data by one or more columns to create summary pivot views. Supports Count, Sum, Average, Min, and Max aggregations with multi-column grouping. Paste or upload any CSV, select group-by columns and aggregation type, and download the pivot summary as a new CSV file. Runs entirely in your browser.

Use Tool →
{ }

JSON to Zod Schema Generator

Generate Zod validation schema code from a JSON sample object. Infers z.string(), z.number(), z.boolean(), z.array(), z.object(), and z.null() types automatically. Handles nested objects, arrays of objects with optional field detection, and outputs copy-ready TypeScript with import and z.infer type alias.

Use Tool →
{ }

JSON String Escaper / Unescaper

Escape and unescape special characters in JSON string values. Handles double quotes, backslashes, newlines, tabs, carriage returns, and Unicode \u sequences. Real-time bidirectional conversion with a built-in escape sequence reference.

Use Tool →

CSV to Markdown Table

Convert CSV data to formatted Markdown table syntax instantly. Supports quoted fields, embedded commas, and escaped quotes. Choose left, center, right, or auto alignment (auto right-aligns numeric columns). Output is properly padded and ready to paste into any Markdown document, README, or GitHub wiki.

Use Tool →
🪙

JSON to TOON Converter

Convert JSON to TOON (Token Oriented Object Notation) and reduce LLM token usage by 30–50%. Free, instant, browser-based.

Use Tool →

Share Your Feedback

Help us improve this tool by sharing your experience

We will only use this to follow up on your feedback