Skip to content
OddsockLocal
Local
Source text
ItemQuantity
Notebook12
Pencil4
3 wordsRuns in this browser. Nothing is uploaded.

How to use

  1. Paste the CSV into Source text or choose the file.
  2. There are no options on this page. Trimming and dedupe both run.
  3. Read the CSV result. Rows that matched after trimming appear once, in first-seen order.
  4. Copy or download the CSV.

What is CSV cleaner?

Exports pick up padding: a leading space on a name, a trailing space on a number, and the same row pasted twice. CSV cleaner trims every cell, then drops later rows that match an earlier row exactly, and writes the header plus the remaining rows as CSV. The comparison happens after trimming, so Notebook with a trailing space and Notebook without one collapse into one row.

Read more

The page reports nothing about which rows it removed. If you need the repeated groups listed before anything is deleted, use Duplicate rows and its report. If the sheet is already tight, the cleaner returns the same cells. Item,Quantity / Notebook,12 / Pen,4 comes back unchanged.

Use cases

  • A catalog upload has Pencil padded with spaces and a second identical Notebook row from a double paste.
  • A CRM export repeats a contact because two systems wrote the same line. The cleaner keeps the first.
  • A grader trims score cells so 12 and 12 with a trailing space become the same value before a chart.
  • Someone merging monthly files runs the cleaner once so exact copies across the paste do not double-count.
  • A developer preparing fixture data wants stable cells with Unix line endings and no padding.

A sheet that was already tight

Item,Quantity / Notebook,12 / Pen,4. A messier sheet, with a leading space on Notebook, a space before 12, and Pen,4 typed twice, is the case where the cleaner changes the file.

The tidy sample comes back as Item,Quantity / Notebook,12 / Pen,4. The padded sheet with two Pen rows comes back as the same three lines: header, Notebook,12, and one Pen,4.

Why use Oddsock

Trim and exact-row dedupe are the two edits that make a pasted export safe to sort, chart, or convert, and they run together here.

Related tools

Using this tool

Yes. Cells are trimmed first, then rows are compared. A padded Notebook and a tight Notebook count as the same row.