LaTeX Table Generator

Turn rows of comma-separated data into LaTeX tabular code. Special characters are escaped, and you can add a caption, a label and booktabs rules.

1 Paste your text and pick the options

2 Your answer

Your answer shows here as you type.

How to use the LaTeX Table Generator

  1. Paste your data with one row per line and separate the cells with commas.
  2. Tick or untick the header and booktabs options to match the table style you want.
  3. Choose the column alignment, caption and label, then copy the code into your .tex file.

Frequently asked questions

Which package do I need for booktabs rules?

Add \usepackage{booktabs} to the preamble of your document to use \toprule, \midrule and \bottomrule. If you turn booktabs off, the table uses \hline and needs no extra package.

Why are some characters changed to commands?

LaTeX gives the characters # $ % & _ { } ~ ^ and the backslash special meanings. They are replaced with commands such as \& and \% so they print as plain text.

What do the table and tabular environments do?

The tabular environment sets the rows and columns. The table environment wraps it in a floating box, so LaTeX can place it and number it. The caption and label let you refer to it with \ref.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.