CSV to LaTeX Table
Drop a CSV and get a LaTeX tabular at once, special characters escaped, ready to paste or download.
Processed on your device. Nothing is uploadedHow to check
You can also paste CSV or JSON text with Ctrl+V (⌘+V on a Mac).
Paste text instead
Pasted text stays in this tab and is never sent anywhere.
Put experiment results or survey data into a paper, thesis or report without typing ampersands and backslashes by hand. Choose, drop or paste a CSV or TSV file and a LaTeX tabular appears at once: one l column per CSV column, \hline rules, the header row first, then one line per row. The characters LaTeX treats as commands, & % $ # _ { } ~ ^ and \, are escaped so the table compiles. The delimiter and encoding are detected for you, and the file is read in your browser, never uploaded.
Why use CSV to LaTeX
Private
Your CSV is turned into LaTeX by your own browser and never sent to a server, so unpublished results stay on your device.
Compiles first time
& % $ # _ { } ~ ^ and \ in your data are escaped, so a value such as 50% or R&D does not break the build.
Works offline
Once this page has loaded, it keeps working without an internet connection.
How it works: convert CSV to a LaTeX table
Add your CSV
Choose or drop a .csv or .tsv file, paste CSV text into the box, or try a sample.
Get the tabular
The tabular environment is written at once, with an l column per CSV column and \hline around the header.
Paste it into your document
Copy the code into your .tex file, inside a table environment if you want a caption, or download it as a .tex file.
What the CSV to LaTeX converter handles
- Files: .csv and .tsv, or CSV text you paste; comma, semicolon, tab and pipe delimiters.
- Output: a tabular with column spec l per column, \hline rules and the header row first.
- Escaping: & % $ # _ { } ~ ^ and \ written as LaTeX-safe commands.
- Quoted CSV fields with commas inside, as Excel and Google Sheets export them.
- Encodings: UTF-8, UTF-16 (when the file starts with a byte order mark), Windows-1256 Arabic and Windows-1252 Western European text, detected automatically.
CSV to LaTeX: what it can't do
- Arabic text needs XeLaTeX or LuaLaTeX with an Arabic font (polyglossia or babel); the page does not set that up for you.
- Every column is left-aligned (l); change the spec to r or c, or to siunitx S columns, for numbers.
- The output is the tabular only: add \begin{table}, \caption and \label yourself.
CSV to LaTeX: questions and answers
- Is my file uploaded?
- No. Your browser reads the CSV and writes the LaTeX on your device. Pasted text stays in this tab and is never sent anywhere.
- Which characters are escaped?
- The ten that LaTeX reads as commands: & % $ # _ { } ~ ^ and \. Each is written in its LaTeX-safe form, so 50% prints as 50% instead of starting a comment.
- Can I use it with Arabic data?
- The text is written as it is, but pdfLaTeX cannot typeset Arabic. Compile with XeLaTeX or LuaLaTeX and load an Arabic font through polyglossia or babel; the page does not add that setup.
- How do I align number columns to the right?
- Every column is written as l. Change a letter in the column spec, for example {lrr}, to right-align those columns.
- Does it add a caption and label?
- No. It writes the tabular only, so you can put it inside your own table environment with the caption, label and placement you use.
- Does it work with semicolon-separated files?
- Yes. The delimiter is detected from the file, whether it is a comma, semicolon, tab or pipe.
- How do I convert a CSV file to a LaTeX table?
- Open or paste the CSV, then copy the tabular code into your .tex document or download it as a .tex file. OpenAnyDoc escapes the characters LaTeX treats as commands and works in your browser, without uploading the data.
Why it's private: your files never leave your browser
Most online viewers upload your file to a server, so a copy of it leaves your device. OpenAnyDoc works the other way round: your browser reads the file and draws it on your screen. Nothing is uploaded, there is no account, and the file is gone from memory when you close the tab, so there is nothing for us to store, see or lose.
How we tell you about new features
Announcements are based on the release date shown to everyone, and nothing is stored on your device or sent anywhere.