Trim whitespace in CSV cells

Strip leading and trailing whitespace from each CSV cell and header while keeping spaces inside names, descriptions and identifiers.

Paste data or open a UTF-8 file up to 1 MiB. Processing takes place on this device.

Worked example

Input

Name,Team
  Maya Lee  , Sales 

Result

Name,Team
Maya Lee,Sales

What happens to spaces within a value?

Only the start and end of each cell are trimmed. A double space between two words stays in place. Run the duplicate-row tool next if whitespace was keeping otherwise identical records apart.