CSV Converter

Convert between CSV, TSV, JSON, Markdown, LaTeX, and an Excel-safe CSV that won't mangle accented characters.

Your file never leaves your browserFree · no signup

1. Add your data

Converted in your browser — nothing is uploaded.

Upload a CSV file

Drag it here, or pick a file. CSV, TSV, or plain text.

What this converter is for

Data arrives in one format and needs to be in another. A supervisor wants a table in Word; your analysis script wants JSON; your thesis is in LaTeX; the file your collaborator sent uses semicolons and Excel refuses to split it into columns. These are all five-minute problems that routinely take an hour.

Everything happens in your browser, so there is no upload, no size quota, and no privacy question about pasting participant data into a random website.

The encoding problem, explained

If you have ever opened a CSV and found Müller rendered as Müller, you have met this bug. The file is fine; Excel guessed the wrong encoding.

CSV carries no metadata about its own character encoding, so a reader has to guess. Excel guesses a legacy regional codepage rather than UTF-8. The fix is a byte-order mark — three bytes at the start of the file that say “this is UTF-8”. Excel respects it; everything else ignores it. That is the entire difference between the CSV and Excel-safe CSV options here.

If you are exporting from Excel, the equivalent fix is to choose CSV UTF-8 (Comma delimited) rather than plain CSV in the Save As dialog.

The delimiter problem

In much of continental Europe the comma is the decimal separator, so 3,14 means pi. CSV exports from those locales use semicolons to separate fields instead, and a reader expecting commas sees one enormous column.

The tool sniffs your delimiter by testing which candidate produces the most consistent field count across rows, which handles semicolon, tab, and pipe files automatically. You can override it, and the input preview at the bottom of the page exists specifically so you can confirm the file was read correctly before relying on the output.

Choosing an output format

  • Excel-safe CSV — you or a colleague will open it by double-clicking.
  • TSV — you want to paste into Excel, Word, or Google Sheets and have the columns land correctly.
  • JSON — you are feeding it to code. Row objects for JavaScript and APIs; columns for pandas and R.
  • Markdown — GitHub, Notion, Obsidian, or any documentation that renders Markdown.
  • LaTeX — a thesis or paper written in LaTeX. Numeric columns are right-aligned automatically.
  • SQL — you are loading the data into a database. Column types are inferred from the values.

If the underlying file is messy as well as in the wrong format — stray spaces, duplicate rows, numbers stored as text — run it through the CSV cleaner first, then convert.

Frequently asked questions

Can it convert my CSV to a real .xlsx file?
No, and it says so rather than pretending. Writing a genuine Excel workbook requires a ZIP-based binary format and a heavy library, which would defeat the point of a fast in-browser tool. What it offers instead solves the actual problem: an Excel-safe CSV that opens correctly by double-click, and a TSV that pastes into a spreadsheet with columns intact.
Can it read an .xlsx file as input?
No — Excel files are binary and can't be parsed without that same heavy library. Open the file in Excel or Google Sheets and use Save As or Download → CSV first. The tool detects when you've dropped an Excel file and tells you this rather than failing silently.
Why do accented characters break when I open a CSV in Excel?
Excel guesses a legacy regional encoding rather than assuming UTF-8, so 'Müller' becomes 'Müller'. Adding a UTF-8 byte-order mark at the start of the file tells Excel explicitly what encoding to use. That's exactly what the 'Excel-safe CSV' option does — it's still a valid CSV, just with the three-byte marker prepended.
My file opened as one long column. What went wrong?
A delimiter mismatch. Files exported in much of Europe use semicolons, because the comma is the decimal separator there. The tool sniffs the delimiter automatically, but you can override it if the preview looks wrong. Check the input preview at the bottom before trusting the output.
What's the difference between the two JSON formats?
Row objects give you an array with one object per row, keyed by column name — the shape almost every API and JavaScript library expects. The columns format gives one array per column, which is what pandas DataFrames and R data frames use internally. Pick whichever matches what you're feeding it into.
Should I turn on JSON type conversion?
Usually yes: it turns "42" into 42, "true" into true, and empty cells into null, which is what downstream code expects. Turn it off when a column contains identifiers that merely look numeric — zero-padded codes like 007 lose their padding when converted to a number.
Does the LaTeX output need extra packages?
The generated table uses \toprule, \midrule, and \bottomrule from the booktabs package, so add \usepackage{booktabs} to your preamble. Booktabs is the standard for publication-quality tables and is what APA-style LaTeX templates already use. Replace the placeholder caption and label before compiling.

Related free tools

Need the whole analysis, not just this step?

Analytika picks the right test for your data, checks the assumptions, and writes up the results in APA format. Upload a dataset and ask a question in plain English.

Try it free