LaTeX Table Generator

Turn CSV/TSV into a LaTeX tabular environment.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Paste comma-separated rows and get a tabular environment with columns separated by &, rows ending in \\ and header rules. Choose booktabs or plain \hline rules.

How to use

1
Step 1
Paste CSV with one row per line.
2
Step 2
Choose whether the first row is a header and whether to use booktabs.
3
Step 3
Press Generate and paste into your document.

How it works

All columns are left-aligned (the column spec is l repeated). Booktabs rules (\toprule, \midrule, \bottomrule) look better than \hline and need \usepackage{booktabs}. The tool splits on commas, so a quoted field containing a comma is not kept together.

col1 & col2 \\ per row, wrapped in \begin{tabular}{ll} … \end{tabular}

Worked example

A two-column table

Input
Name,Score Ada,95 Bob,88
Output
\begin{tabular}{ll} \toprule Name & Score \\ \midrule Ada & 95 \\ Bob & 88 \\ \bottomrule \end{tabular}
Walkthrough
The header gets a \midrule underneath. With booktabs off the rules become \hline.

Limitations

  • Left-aligned columns only.
  • Quoted fields with commas are split.
  • No \caption or float wrapper is added.

Questions

Which package do I need?
booktabs for \toprule and friends; none for \hline.
Can I align numbers right?
Edit the column spec afterwards, for example {lr}.
Does it add a caption?
No. Wrap the tabular in a table environment yourself.

Features

  • CSV in, tabular out
  • booktabs or hline
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • HTML Crash Course For Absolute Beginners

    Traversy Media

    Web writing basics for paper and citation helpers.

    Watch on YouTube
  • Intro to Google Search Console

    Google Search Central

    Scholarly sites still care about discoverability basics.

    Watch on YouTube