About Table Format Converter
Paste a table in one format and get it back in another: a spreadsheet export as a Markdown table for a README, a database console result as CSV, a JSON array as a LaTeX tabular for a paper, or an HTML table as a neat text table for a code comment.
The input format is detected from its shape, or you can choose it. Cells stay exactly as written: nothing is turned into numbers or dates, and every format escapes what it must (pipes in Markdown, ampersands and percent signs in LaTeX, angle brackets in HTML), so the result reads back to the same cells.
How it works
- The input is read as CSV, TSV, a Markdown pipe table, HTML, a JSON array, a LaTeX tabular or a text table drawn with | and - (as MySQL and psql print them) or with box-drawing lines.
- Markdown tables, HTML heading cells and JSON object keys mark the header row by themselves. For other formats, the "First row is a header" switch decides.
- Merged HTML cells are repeated across the rows and columns they cover, and LaTeX \multicolumn cells are followed by empty cells, so every row has the same width.
- Markdown and text tables are padded so the columns line up in a monospaced font, counting wide characters such as Chinese and emoji as two columns.
Questions
Are numbers converted in JSON output?
No. Every cell is written as a string, exactly as it appeared, so leading zeros, codes and dates survive. Use the CSV to JSON converter if you want numbers and true/false typed.
What happens with several tables in one HTML page?
Only the first is converted, and the result says how many there were. HTML Table to CSV Extractor takes every table at once.
Can a text table hold line breaks or pipes inside a cell?
No. A row of a text table is a single line, so line breaks inside cells become spaces, and a | inside a cell cannot be told apart from a column border when reading one back.
Is there a size limit?
The input can be up to 5 MB of text and the table up to 2 million cells. Everything happens in your browser; nothing is uploaded.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.