Skip to content
SimpleRows

Trim whitespace in a CSV

Drop a CSV and every cell and header is trimmed. Values that differ only by spaces will finally match.

Processed on this device · nothing uploaded

Drop a file to start

CSV, TSV, Excel or JSON · we’ll detect the delimiter and encoding

Processed on this device. Nothing is uploaded.

How to trim whitespace in a CSV

  1. 01Drop your CSV.
  2. 02Tick “Collapse repeated spaces” to turn runs of spaces into one.
  3. 03Check the preview and download.

Invisible spaces break lookups, deduplication and imports: “acme ” and “acme” look identical but don’t match. They usually come from copy-pasted web content, fixed-width exports and form fields. SimpleRows removes spaces, tabs, line breaks and non-breaking spaces (the kind web pages and Excel leave behind) from the start and end of every value and column name. All values are kept as text, so leading zeros in ZIP codes and IDs stay exactly as they were.

Questions

Does trimming change numbers or dates?

No. Every value is treated as text, so only the surrounding whitespace is removed.

What is a non-breaking space?

A space character (U+00A0) that looks normal but isn’t matched by many trim functions, including Excel’s TRIM.

Is my file uploaded to a server?

No. SimpleRows runs entirely in your browser using DuckDB, a database engine compiled for the web. Your file is read from your disk and never sent anywhere, and the tools keep working with Wi-Fi off once the page has loaded.