Generator
Set rows, columns, and per-column alignment, paste cells from a spreadsheet, and copy a tabular environment. Booktabs rules or plain hlines, with an optional caption. Live preview, no signup, no upload.
Writing the rest of the document in markdown? Markdown to LaTeX →
Need a GitHub-flavored table instead? Markdown table generator → or start from a file with CSV to markdown table →.
% Requires \usepackage{booktabs} in the preamble.
\begin{tabular}{lll}
\toprule
Header 1 & Header 2 & Header 3 \\
\midrule
Cell 1-1 & Cell 1-2 & Cell 1-3 \\
Cell 2-1 & Cell 2-2 & Cell 2-3 \\
\bottomrule
\end{tabular}
| Header 1 | Header 2 | Header 3 |
|---|---|---|
| Cell 1-1 | Cell 1-2 | Cell 1-3 |
| Cell 2-1 | Cell 2-2 | Cell 2-3 |
Booktabs rules need \usepackage{booktabs} in the preamble. Wrap the fragment in a document — \documentclass{article}, then \begin{document} — before compiling.
Why this generator
Hand-writing a tabular means counting alignment letters, escaping every ampersand, and remembering whether the rule is a hline or a booktabs command. This generator keeps the grid editable and emits source you can drop into a paper.
Cells, alignment, and the emitted LaTeX stay in your browser. Nothing is uploaded, logged, or analyzed.
Each column is l, c, or r. Default and left both emit l, which is what LaTeX uses when you do not specify otherwise.
Booktabs gives toprule, midrule, and bottomrule with no vertical lines. Turn it off for a classic grid of hlines.
Cells copied from Excel or Google Sheets arrive as tabs. CSV works too. The first row becomes the header.
Preamble
The download is the table, not a full document. With booktabs rules on, add \usepackage{booktabs} to the preamble. With hline rules, tabular and \hline are already in the LaTeX kernel. A table float, caption, and label come with the standard classes — article, report, and book. Wrap the fragment in \documentclass{article} and \begin{document} before running pdflatex.
How it works
Type into the cells, or paste CSV, TSV, or a block copied from Excel. Up to 12 columns and 24 body rows.
Pick left, center, right, or default for each column. Toggle booktabs rules, and add a caption if you want a table float.
Copy the LaTeX source, or download a .tex file. The preview shows the same alignment and rules.
FAQ
\multicolumn or \multirow. To span columns, replace those cells in your editor with \multicolumn{2}{c}{heading}. Vertical spans need \usepackage{multirow} and a \multirow command, which you add by hand after copying the tabular. If the rest of the document is markdown, the Markdown to LaTeX converter can turn the surrounding prose into a matching fragment.Markdown Writer is a local-first editor with synced scrolling, an outline, PDF export, and math.
Open the editor