CSV and Excel to LaTeX table
Select cells in Excel or Google Sheets, copy them and paste them below. The converter detects the separator, the header row and the numbers, and gives you a table environment with a caption and a label, ready for a lab report. Everything runs in your browser: the data is not sent anywhere.
Preview
| t (s) | s (m) | v (m/s) |
|---|---|---|
| 0.5 | 1.2 | 2.4 |
| 1.0 | 4.9 | 4.9 |
| 1.5 | 11.0 | 7.3 |
LaTeX code
\begin{table}[H]
\centering
\begin{tabular}{ccc}
\hline
t (s) & s (m) & v (m/s) \\
\hline
\num{0.5} & \num{1.2} & \num{2.4} \\
\num{1.0} & \num{4.9} & \num{4.9} \\
\num{1.5} & \num{11.0} & \num{7.3} \\
\hline
\end{tabular}
\caption{Measurement results}
\label{tab:measurements}
\end{table}How it works
- The separator is detected for you: tab (copying from Excel and Google Sheets), semicolon, comma or spaces.
- The first row becomes the header only when it has no numbers and the rows below do, so a series of measurements without a header keeps its first value.
- Numbers go into \num{} from the siunitx package, so 2,5 and 2.5 give the same source, and the preamble decides how the decimal mark is printed.
- LaTeX special characters (& % $ # _ { }) are escaped, so the table compiles without fixes.
Packages you need
\usepackage{float} % [H]
\usepackage{siunitx} % \num{}More examples and common mistakes: Tables in LaTeX: tabular, captions, booktabs
Other tools
Got formulas on paper?
Draw them or snap a photo and CamteX AI turns them into LaTeX and inserts them into your document.
