LaTeX Table Generator and Editor
Writing LaTeX tables by hand means counting & separators and \\ line endings. This LaTeX table generator lets you create the table in a grid instead: set rows and columns, type the content, and copy ready-to-compile tabular code into Overleaf or any .tex file. You can also paste CSV or a Markdown table, or upload an Excel sheet, and convert it to LaTeX. Everything runs in your browser.
What the Output Looks Like
\begin{tabular}{| l | l |}
\hline
Item & Quantity \\
\hline
Apples & 3 \\
Pears & 5 \\
\hline
\end{tabular}
- One left-aligned column (
l) per table column, separated by vertical rules \hlineabove and below the header row and at the bottom- Cells separated by
&, rows ended with\\
The tabular environment and its column specifiers are explained in the Overleaf guide to tables and the LaTeX Wikibook.
Special Characters Are Escaped
LaTeX treats several characters as commands. The generator escapes them in cell text so the table compiles:
| You type | Output |
|---|---|
& % $ # _ | \& \% \$ \# \_ |
| curly braces | \{ and \} |
\ | \textbackslash with an empty group |
~ and ^ | \textasciitilde and \textasciicircum with an empty group |
Because of this, typing math such as $x^2$ into a cell outputs escaped text, not math. Add math to the copied code by hand.
Common Uses
- Result and comparison tables for papers, theses, and reports
- Converting a spreadsheet or CSV of data into LaTeX without retyping
- Quick table drafts that you refine with
booktabsor custom alignment afterwards