Skip to content
Engyna

Table Generator

Convert spreadsheet data into Markdown, HTML or LaTeX tables.

How to use the Table Generator

  1. 1Paste data from a spreadsheet or CSV, or edit the grid.
  2. 2Set header row and column alignment.
  3. 3Copy the table as Markdown, HTML, LaTeX, ASCII, CSV or JSON.

About Table Generator

The Table Generator converts spreadsheet data into tables for documentation and code. Paste cells from Excel, Google Sheets or a CSV file into the grid, import CSV, TSV or an existing Markdown table, or type the cells directly. Then choose the output: Markdown, HTML, LaTeX, ASCII, CSV or JSON.

You can treat the first row as a header, set the alignment of each column, trim spaces from cells and escape special characters for the chosen format. The Markdown table generator can pad cells so the raw text lines up in columns. HTML output can get a class attribute, LaTeX tables can use booktabs rules, ASCII tables come with box-drawing or classic +-+ borders, and JSON output can turn numbers and booleans into real values. The result is ready to copy or download.

It is handy for README files, GitHub issues and pull requests, wiki pages, blog posts, LaTeX papers and theses, and plain-text emails or code comments. Developers can also use it to turn a quick spreadsheet into JSON test data.

Frequently asked questions

How do you make a table in Markdown?

Separate cells with pipes and put a line of dashes under the header row, for example | Name | Age | followed by | --- | --- |. A colon on the left, right or both sides of the dashes aligns that column left, right or center.

Can Markdown tables merge cells?

No. Standard and GitHub Flavored Markdown tables have no colspan or rowspan and no line breaks inside cells. If you need them, use the HTML output, which most Markdown renderers accept.

How do I use a pipe character inside a Markdown table cell?

Escape it as \| so it isn't read as a column border. With Escape special characters turned on, the generator does this for you.

What does the booktabs option do in LaTeX?

It replaces the vertical lines and \hline rules with \toprule, \midrule and \bottomrule, which give the cleaner spacing common in academic papers. Add \usepackage{booktabs} to your document's preamble.