Skip to content
Free · Checks run in your browser

Remove extra spaces from a CSV file

Find every value with a space in front, a space at the end or two spaces in a row, and see it before and after. The trimmed file comes by email.

Drop a CSV or Excel file here

CSV, TSV, XLSX, XLS or ODS, up to 50 MB. Checked in your browser.

  • No sign-up
  • Checked in your browser
  • Clean file emailed to you
Why it matters

Spaces you can't see break matches you can

  • Lookups miss

    " Acme Ltd" and "Acme Ltd" look the same in a cell but are different values, so a VLOOKUP or a join on name finds nothing.

  • Counts split

    A pivot by city shows "Bath" and "Bath " as two rows, each with part of the total.

  • What we trim

    Spaces before and after a value, and runs of two or more spaces inside it, which become one. Single spaces between words are left alone.

How it works

How to remove extra spaces from a CSV file

  1. 1Drop a CSV or Excel file on the box, or try the sample.
  2. 2Check the cells: each shows the value with its spaces marked, and the trimmed value beside it.
  3. 3Pick Excel or CSV and enter your email. The clean file arrives as a download link.
Questions

Questions about extra spaces

Does it remove the space between words?
No. "Acme Ltd" keeps its space. Only spaces at the start or end of a value, and doubled spaces inside it, are removed.
Is this the same as Excel's TRIM function?
It does what TRIM does, to every cell in the file at once, without a helper column.
What files can it open?
CSV and TSV files, Excel workbooks (.xlsx and .xls) and OpenDocument spreadsheets (.ods), up to 50 MB. A CSV too big for Excel to open is fine, because nothing here goes through Excel.
Is my file uploaded?
Your original is not. The checks and fixes run in your browser. Only the clean file is sent to our server when you ask us to email it, and it is deleted within the hour.
Why does it email the file?
So it can send the occasional note about cleaning files like these, which you can unsubscribe from in one click. The email holds a download link that works for one hour.
What else does it check?
Blank and duplicate rows, numbers stored as text, mixed date formats, labels spelled several ways and gaps. Anything it finds is listed under the spaces, unticked.

Clean it once. Let Mammoth do next month.

Turn these fixes into steps that run on every new file, then build the dashboard on top.

  • ✓ 14-day Pro trial
  • ✓ No credit card
  • ✓ Viewers always free