CSV Repair Tool

Paste broken CSV text or drop in a .csv file and get back a clean, correctly-parsed file — without uploading anything anywhere. This tool fixes wrong delimiters, garbled encoding, broken quotes, and rows with missing columns, all inside your browser. Your data never leaves this device.

🔒 100% in-browser. Your CSV is processed only in this tab's memory — never uploaded, never written to browser storage (no localStorage, no cookies), and gone when you close the tab or press Reset. The Download button generates the file locally in your browser (saved as repaired.csv in your Downloads folder). Tip: strip passwords, account numbers, and other sensitive values before pasting — a repair tool shouldn't see them.

📊 What is measured: anonymous page-view analytics (Google Analytics, Microsoft Clarity) count events like "repair started" and "file downloaded" — never your CSV content. The input area is masked from visit recordings.

File stays on your device — read locally via the FileReader API.

Wrong choice shows garbled characters (나옴) — just try another.

The tool will tell you how sure it is.



If your CSV won't process

The tool shows an error only when the input can't be repaired — and each message points at a specific, fixable cause:

  • "Paste some CSV text or upload a file first." — The input is empty or whitespace-only. → Paste actual CSV text (a header and at least one data row), or choose a file.
  • "Unclosed quote starting at line N. Check for a missing closing quote." — A quote opened on line N was never closed, so the parser can't find where the field ends. → Find the stray quote on that line and close it: "Lee,28 becomes "Lee",28.
  • "No data rows found." — Everything parsed but every row was empty (blank rows are skipped). → Check that the file contains actual data, not just commas or whitespace.

Two tiny examples — good vs. bad:

name,age
Lee,28

↑ Repairs fine.

name,age
"Lee,28

↑ "Unclosed quote starting at line 2. Check for a missing closing quote."

No automatic recovery is attempted beyond what you see in the Diagnosis panel, and the tool never guesses a format it doesn't support. The tool was designed for browser-sized files (a few MB); it won't error on larger ones, but a huge file may feel slow — split it and repair in parts.

Reviewed by the NumWhiz team. Assumes your file is a text-based CSV/TSV. Works best under ~5 MB in the browser. Never uploads anything — parsing happens entirely on your device.

What the results mean

A repaired CSV isn't just "fixed" — it's verifiable. The diagnosis panel tells you exactly what the tool found and what it changed, line by line. "Column mismatch on line 14" means that row has a different number of fields than the rest — usually a stray delimiter inside an unquoted field, or a quote that never closed. "Kept 3 fields with leading zeros as text" means values like 02139 were preserved exactly as typed instead of being silently turned into 2139.

Nothing here is a guess presented as fact. When the delimiter detector isn't sure, it says so and asks you to pick instead of committing quietly. If a row looks wrong in the After table, that's your signal to try a different delimiter or encoding — this tool would rather show you an honest mess than a confident lie.

What a repaired file does NOT prove

A clean diagnosis means the file now parses: quotes balance, the delimiter is consistent, and every row has the same number of fields. It does not mean every value is the value you started with. Repair fixes structure; it cannot certify meaning. A file can be perfectly well-formed and still wrong, so treat the diagnosis as "this file is now readable," not "this file is now true."

The subtlest failure is the one the column check cannot see. The tool flags rows whose field count differs from the rest — but two mistakes in one row can cancel each other out. A stray delimiter adds a field while a missing delimiter merges two fields, leaving the count correct and the diagnosis silent. If a row contains free text (an address, a comment, a product description), a matching column count is not proof that the split landed in the right places. Spot-check at least one such row against the source before you trust the whole file.

Missing values cannot be reconstructed, only preserved as missing. If a cell is empty in the file you uploaded, the tool leaves it empty — it has no way to know whether the original was blank or was lost in an earlier export. Do not fill gaps by guessing, and do not let a downstream spreadsheet fill them for you either. When a column that should be complete comes back with holes, the reliable fix is a fresh export from the system that produced the file, not a cleverer repair pass.

Identifiers and dates need a separate check after repair. Text mode preserves exactly what it receives — 02139 stays 02139 — but if a spreadsheet already converted it to 2139 and saved, the zero was gone before this tool ever saw the file, and no repair can tell the two apart. Dates are the same problem in reverse: 03/04 parses cleanly either way, and the tool cannot know whether it meant March 4 or April 3. Repair can protect these values going forward; it cannot recover what an earlier save already destroyed or disambiguate what the file never recorded.

Encoding is a separate layer from structure, and this tool treats it that way. Garbled characters are not a delimiter problem, and no delimiter setting will fix them. The encoding dropdown re-decodes the file you uploaded as UTF-8, Windows-1252, or EUC-KR — it does not auto-detect. If the text still looks wrong after trying all three, the bytes themselves may already be damaged, or the file may have been saved in an encoding this tool does not offer. In that case the honest move is to ask the source system for a fresh export in UTF-8 rather than keep re-running the same repair.

So use the repair as a checkpoint, not a verdict. Download the result, open it, and compare a few rows you already know — one with a comma inside a name, one with an ID or zip code, one with a date — against the source. If those match, you have good reason to trust the rest. If they don't, you have learned something more valuable than a green checkmark: exactly where the file stopped telling the truth.

How it works

  1. Paste or upload. Paste CSV text or choose a .csv file — either way it stays in your browser's memory and never touches a server.
  2. Set encoding if you know it. UTF-8 is the default. Garbled characters (like 나ì´) mean the wrong encoding — just try another from the list.
  3. Leave the delimiter on auto-detect unless you already know the file uses semicolons or tabs.
  4. Press Repair CSV and read the diagnosis first. It lists every issue found, from BOM removal to rows with mismatched columns.
  5. Compare Before/After — the first 20 rows side by side — and only then hit Download. If something looks off, change one setting and repair again; every run is instant and free.

Formula

The parser follows RFC 4180, the closest thing CSV has to a real standard. A field wrapped in double quotes may contain the delimiter, line breaks, and even other quotes (an embedded quote is written as two: ""). A quote only opens a quoted field at the very start of a field — a stray quote in the middle of text is treated literally.

Lines end at \n or \r\n outside quotes; inside quotes, a line break belongs to the field itself. The delimiter detector scores comma, semicolon, tab, and pipe against your first rows, preferring the one that produces the most consistent column counts — and it reports its confidence instead of silently committing to a guess.

Example

Take a typical messy export: a header Name;Age;Zip, then "Kim, J";34;02139, Lee;28;90210, and one row where an address note contains an unquoted semicolon — giving it 4 columns instead of 3.

Paste it in and the tool detects the semicolon delimiter, flags the 4-column row by line number, and preserves 02139 with its leading zero intact. The After table shows every field in its proper column, and the download writes it back as clean comma-separated UTF-8 with correct quoting — ready to open anywhere. Try it yourself with the "Try sample broken data" button above.

Use cases

  • Cleaning legacy exports before loading them into a database or spreadsheet — fix delimiters and quoting once, correctly.
  • Rescuing zip codes, phone numbers, and SKUs that Excel "helpfully" converted to numbers.
  • Opening European software exports (often semicolon-delimited) that paste into a single column.
  • Wrangling survey or form exports with inconsistent quoting and the occasional stray line break inside a response.

Still stuck after repairing?

This tool fixes structure — delimiters, quoting, encoding, column counts. Some problems need a human step on top, so we wrote them up:

Frequently asked questions

Is my file uploaded anywhere?

No — never. Your file is read by your own browser (via the FileReader API) and parsed in the page's JavaScript. There is no server involved at all: open your network tab while repairing and you'll see zero uploads. Close the tab and nothing remains. That's the whole point of this tool.

Why does Excel delete leading zeros from my zip codes and IDs?

Excel guesses each column's data type when it opens a CSV. A value like 02139 looks numeric, so Excel converts it to the number 2139 and the zero is gone — permanently, if you then save. This tool never guesses types: every value stays exactly the text you pasted, and the 'keep as text' option writes numeric-looking fields in a way Excel displays literally.

What can't this tool fix?

It can't recover data that was already destroyed before you got the file — if someone opened the CSV in Excel, saved it, and the zeros are gone, they're gone. It also won't silently guess ambiguous encodings: if the text still looks wrong, try another encoding from the selector rather than trusting a guess. And it repairs structure (delimiters, quotes, rows), not meaning — it won't know that '03/04' was meant as a date.

Can I repair many files at once?

Not yet — this free version handles one file at a time. A batch mode that applies the same repair rules to many files is planned; use the 'Notify me' button in the batch section below and we'll email you (about once a month, unsubscribe anytime) when it launches.

Related tools

View all 44 tools →

Last updated: 2026-10-04 · NumWhiz