Excel to LaTeX table generator
Paste cells from Excel, Google Sheets, LibreOffice or a CSV file and get a clean LaTeX tabular you can drop into Overleaf. Everything runs in your browser; nothing is uploaded.
% Requires \usepackage{booktabs} in the preamble
\begin{table}[htbp]
\centering
\begin{tabular}{lrrr}
\toprule
Model & Parameters & Accuracy (\%) & Time (s) \\
\midrule
Baseline & 1,200 & 81.4 & 0.42 \\
Ours (small) & 3,500 & 86.9 & 0.57 \\
Ours (large) & 12,000 & 89.2 & 1.31 \\
\bottomrule
\end{tabular}
\end{table}Turn a spreadsheet into a LaTeX table in three steps
Select the range in Excel or Google Sheets and copy it. Spreadsheets put copied cells on the clipboard as tab-separated text, so pasting them here keeps the rows and columns intact. CSV exports work too, with commas or the semicolons that German, French and other European versions of Excel use.
The generator escapes characters that would break compilation, pads short rows so every line has the same number of columns, and right-aligns columns that only contain numbers. The booktabs style uses \toprule, \midrule and \bottomrule, which most journals and thesis templates prefer over vertical lines.
Paste the result into your document, add \usepackage{booktabs} to the preamble if you chose that style, and reference the table with \ref using the label you set.
Getting tables right in LaTeX
Decimal alignment. For columns of measurements, the siunitx package and its S column type align numbers on the decimal point. Replace an r in the column specification with S after loading the package.
Long tables. A tabular cannot break across pages. For tables longer than a page, switch to the longtable package and repeat the header with \endhead.
Wide tables. If a table is wider than the text block, shorten headers, use \small inside the table, or let text wrap with a p{3cm} column instead of l.
Tables stuck in a PDF. If the data only exists inside a PDF, a scan or a photo, copying cells usually breaks the layout. The table PDF to LaTeX converter rebuilds tables together with the rest of the page, and image to LaTeX works for screenshots.
Questions about the table generator
Is my data uploaded anywhere?
No. The conversion runs entirely in your browser with JavaScript. The pasted cells never leave your device.
Which LaTeX packages do I need?
Plain and lined tables work without extra packages. The booktabs style needs \usepackage{booktabs} in your preamble; Overleaf ships it by default.
How do I paste from Excel or Google Sheets?
Select the cells, copy them (Ctrl+C or Cmd+C) and paste into the input box. Spreadsheets copy cells as tab-separated text, which the tool detects automatically.
Does it work with CSV files that use semicolons?
Yes. The delimiter is detected from the first line: tabs, commas or semicolons. Quoted fields with commas inside are supported. You can also choose the delimiter manually.
Why are special characters escaped?
Characters like &, %, $, # and _ have a special meaning in LaTeX and break compilation if they appear unescaped. Turn escaping off if your cells already contain LaTeX, for example math like $\alpha$.
Can it convert a table from a PDF?
This free tool needs the cell values as text. For tables inside a PDF or a scan, use the PDF to LaTeX converter, which rebuilds the whole page including tables.
Need the entire PDF in LaTeX, not just one table?
document-to-latex rebuilds PDFs, scans and photos as editable LaTeX projects with equations, tables and an Overleaf export. The first 3 pages are free.