Skip to content
latexci
PreviewDiffWord → LaTeXBibTeXSymbolsTableTemplatesAcademics
Sign inFree
PreviewDiffWord → LaTeXBibTeXSymbolsTableTemplatesAcademicsFree
GitHub ↗
Sign in

LaTeX Table Generator: Free, Paste from Excel or CSV

Fill the grid or paste a block from a spreadsheet, choose the alignment and the rules, and copy a tabular that compiles as shown in the preview.

4 × 3

(a) Data

Type in the cells, Tab to move. Paste a block copied from Excel or a CSV file into any cell to fill the whole table. The l, c, r buttons set the alignment of each column.

(b) Preview

Table 1. Your caption here

ElementSymbolAtomic mass
HydrogenH1.008
CarbonC12.011
OxygenO15.999

(c) LaTeX

% Requires \usepackage{booktabs} in the preamble
\begin{table}[htbp]
  \centering
  \caption{Your caption here}
  \label{tab:your-label}
  \begin{tabular}{l c r}
    \toprule
    \textbf{Element} & \textbf{Symbol} & \textbf{Atomic mass} \\
    \midrule
    Hydrogen & H & 1.008 \\
    Carbon & C & 12.011 \\
    Oxygen & O & 15.999 \\
    \bottomrule
  \end{tabular}
\end{table}

Tip. Use booktabs for journal submissions: \toprule, \midrule and \bottomrule replace vertical lines. Pressing Tab in the last cell adds a new row.

Figure 1. The table generator: (a) the data grid, (b) the table as it will be typeset, (c) the LaTeX to paste into your document.

1How to use it

  1. Type your data in the grid of Figure 1(a), or copy a range of cells in Excel, LibreOffice or Google Sheets and paste it into any cell: the grid takes the size of what you pasted.
  2. Set the alignment of each column with the l, c and r buttons above it. Text usually reads best left aligned, numbers right aligned.
  3. Choose a rule style and whether the first row is a bold header. The preview in Figure 1(b) follows every change.
  4. Press Copy LaTeX and paste the result into the body of your document, then replace the placeholder caption and the tab:your-label label. The caption sits above the table, as is the convention for tables, and the float uses [htbp] so LaTeX can place it.

2Choosing a rule style

Table 1 compares the three styles. Most journals and the LaTeX typesetting community recommend booktabs: three horizontal rules of two weights and no vertical lines, which is also how the tables on this page are set.

StyleRules in the outputColumn specPackage
booktabs\toprule, \midrule, \bottomrulel c rbooktabs
Simple borders\hline around every row|l|c|r|none
No bordersnone, or \hline with Row linesl c rnone

Table 1. The three rule styles, for columns aligned left, center and right.

The booktabs commands are not part of the LaTeX kernel. The generated code starts with a comment that reminds you of it; the package itself goes in the preamble, before \begin{document}:

\usepackage{booktabs}

3Pasting from Excel or CSV

A range copied from a spreadsheet arrives as tab-separated text, one line per row, and is split on the tabs, so a cell such as Smith, J. stays in one piece. Text without tabs is read as CSV: cells are split on commas, and a field in double quotes may contain commas. Empty lines are skipped and every cell is trimmed.

Only a paste that contains a tab or a line break replaces the table. A single value pasted into a cell goes into that cell, as in any text field.

4Special characters

Cell contents are treated as plain text. The ten characters that LaTeX reserves (\ & % $ # _ { } ~ ^) are escaped in the output, so R&D becomes R\&D and 50% becomes 50\%, and the table compiles on the first try. The other side of this rule: LaTeX typed in a cell, such as $x^2$, is printed literally. Add math or macros after pasting the code into your document, where the live LaTeX preview shows the result.

Appendix A Questions

How do I create a LaTeX table from Excel?+
Select your data in Excel, copy it (Ctrl+C / Cmd+C), then paste it into the latexci table generator. The tool automatically detects tab-separated values and fills all rows and columns. Click 'Copy LaTeX' to get the tabular code.
What is the difference between booktabs and simple borders in LaTeX?+
Booktabs uses \toprule, \midrule, and \bottomrule, horizontal rules only, no vertical lines. This is the style recommended by most journals and the LaTeX typesetting community. Simple borders use \hline and vertical | characters in the column spec. Booktabs is generally preferred for academic papers.
How do I paste a CSV file into a LaTeX table?+
Open your CSV in a text editor or Excel, copy the rows, and paste them directly into the table generator grid. The tool handles both comma-separated and tab-separated formats.
Do I need \usepackage{booktabs} in my preamble?+
Yes, when using the booktabs style, the generated LaTeX includes a comment reminding you to add \usepackage{booktabs} to your preamble. Simple and no-border styles do not need this package.
See also. Live LaTeX Preview, Symbol Search, LaTeX Diff, LaTeX Templates and BibTeX Tools.
latexci

Free LaTeX tools for researchers and students, in any browser. No paid plan, no advertising.

Star on GitHubBuy me a coffee

Tools

Live PreviewBibTeX ToolsDOI → BibTeXarXiv → BibTeXPubMed → BibTeXISBN → BibTeXLaTeX DiffWord → LaTeXSymbol SearchTable GeneratorTemplatesCV Generator

Learn

Academics hubLife after OverleafFreeGitHub

Community

GitHub IssuesFeature Requests

© 2026 latexci. By Sitraka Forler, sitraka.lu

PrivacyTerms