CSV Cleaner
Trim whitespace, drop duplicates, standardize headers, and fix numbers stored as text — then download the clean file.
1. Add your data
Parsed in your browser — the file is never sent anywhere.
Upload a CSV file
Drag it here, or pick a file. CSV, TSV, or plain text.
What this CSV cleaner actually fixes
Most of the time lost to “data cleaning” is not spent on anything intellectually interesting. It goes on a handful of tedious defects that spreadsheets and survey platforms introduce on the way out. This tool targets exactly those:
- Trailing spaces. The single most common cause of a broken analysis.
"Marketing"and"Marketing "are different strings, so your group-by silently reports two departments instead of one. - Numbers stored as text. A column exported as
$1,240is not a number to any statistics package. Every mean and standard deviation you compute from it will be wrong or missing. - Inconsistent missing-value markers. One file often contains blanks,
NA,N/A,-, and?all meaning the same thing, and each is treated differently downstream. - Duplicate submissions. Double-submitted survey responses inflate your sample size and bias your results.
- Phantom rows and columns. A stray comma in the export creates an empty trailing column, and deleted spreadsheet rows often leave behind blank records.
- Invisible characters. Zero-width spaces and control characters survive a copy-paste out of a PDF or Word document and make otherwise-identical values fail to match.
How to use it
- Drop your CSV in, paste the data, or load the messy example to see what the tool does.
- Review the checkboxes. Everything except category capitalization is on by default, because those defaults are safe.
- Read the What changed list. This is the important step: it tells you precisely how many cells, rows, and columns were touched by each fix, so you are never guessing about what happened to your data.
- Download the clean CSV and carry on with your analysis.
Why the audit list matters
Anything that edits your data silently is a liability. If your supervisor or an examiner asks what you did to your dataset, “I ran it through a cleaning tool” is not an answer. The change list here is designed to be reportable: it names each transformation and counts what it affected, which is exactly the material a methods section needs.
Two things are deliberately not done automatically, because both require a judgement only you can make: filling in missing values (imputation changes your results and must be justified) and reformatting dates (day-first versus month-first is genuinely ambiguous).
Getting your file into CSV in the first place
- Excel: File → Save As → CSV UTF-8 (Comma delimited). Pick the UTF-8 variant, or accented characters and symbols will be corrupted.
- Google Sheets: File → Download → Comma Separated Values.
- Qualtrics / Google Forms / SurveyMonkey: export as CSV rather than Excel, and choose the numeric-values export if you plan to run statistics on Likert items.
- SPSS: File → Export → CSV.
Frequently asked questions
- Is my data uploaded anywhere?
- No. The CSV is parsed and cleaned by JavaScript running in your own browser tab. Nothing is sent to a server, which means it is safe to use with participant data, and it also works offline once the page has loaded.
- What counts as a duplicate row?
- A row where every single cell is identical to a row that appeared earlier in the file. The first occurrence is kept. Because whitespace trimming runs first, rows that differ only by stray spaces are correctly recognized as duplicates.
- Will it break my ID numbers?
- No. The "fix numbers stored as text" step deliberately skips any column containing zero-padded values like 007, because those are identifiers rather than quantities. It also skips columns that are not overwhelmingly numeric, so a column of mostly-text values is left alone.
- What size file can it handle?
- Up to 25 MB, which is roughly 200,000 rows of typical survey data. The limit exists because everything is held in your browser's memory. For larger files, clean a subset first to check the settings do what you want.
- Why did my column names change?
- The "standardize column names" option converts headers to lowercase snake_case, so "Total Sales ($)" becomes total_sales. That avoids the quoting and escaping problems that spaces and symbols cause in R, Python, and SPSS. Turn it off if you need the original names.
- Can it fix dates?
- Not automatically, and that is deliberate. 03/04/2025 is 3 April in the UK and 4 March in the US, and there is no way to tell which one your file means. Guessing would silently corrupt your data, so date columns are left exactly as they are.
Related free tools
Data Anonymizer
Pseudonymize or drop identifying columns so you can share data with a supervisor or append it to a thesis.
Missing Data Report
Per-column missingness, complete-case counts, and a plain-English read on whether you can still run your analysis.
Sample Size Calculator
How many participants do you actually need? Four calculators covering surveys, group comparisons, proportions, and correlations.
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.