LaTeX Table Generator

Fill in the grid and copy a tabular environment. Rules are drawn with booktabs by default, and you can add a caption and a label to get a full table float ready to reference.

From

The only part of this site that uses a server. The address is sent to it so the page can be fetched, because a browser is not allowed to fetch someone else's page itself. Your own files are never involved.

Nothing here is uploaded. The parsing happens on this page.
Edit
Paste or upload something above and it will appear here.
ToDataMarkupDocumentsCodeSchemasImages

The output will appear here once there is a table to convert.

Why booktabs

Booktabs draws three horizontal rules of different weights and no vertical rules at all. Almost every journal template expects that, and typographers have argued for decades that vertical rules in a table are noise the eye has to work past.

It needs \usepackage{booktabs} in your preamble. Turn the option off and the output uses \hline instead, which is built in and needs nothing.

Escaping

Seven characters mean something to LaTeX and have to be escaped in a cell: ampersand, percent, dollar, hash, underscore and both braces. An unescaped percent comments out the rest of the line, which is the usual reason a pasted table stops compiling halfway through.

All seven are escaped in the output here, so a value like 50% or R&D compiles as written.

Caption and label

Fill in a caption and the tabular is wrapped in a table float with \centering, which is what lets LaTeX move it to the top of a page. Add a label and you can reference it as Table~\ref{your-label} from anywhere in the document.

Questions

My table does not compile. What is wrong?

The most common cause is a missing \usepackage{booktabs}. The second is a stray special character in a cell you typed after copying the code out. Switch the booktabs option off to get plain \hline rules that need no package.

Does this work in Overleaf?

Yes. Paste the output into your document and add the booktabs package to the preamble if you are using booktabs rules.

How do I make a column right-aligned?

Set the alignment per column in the options. It writes the column specification, so a right-aligned numeric column comes out as r in the tabular argument rather than l.

Already have the data somewhere else?

Other generators