![]() |
To fix CSV files, you need to restrict changes to individual fields so you don't change data you didn't intend to.
ONLY TextPipe allows you to restrict changes to CSV fields in massive files. Restrictions can also be applied to line ranges, column ranges, tab fields and much more. See white paper here
Easily handle CSV (comma separated value, comma delimited value) files with TextPipe™ Pro, our multi-award winning, industrial strength text conversion, transformation, cleansing and extraction workbench-
- Convert CSV to tab-delimited, pipe-delimited (|) or semi-colon (;) delimited
- Convert CSV to XML (using the column headers as XML field names if required)
- Search and replace inside CSV fields (see white paper below)
- Add new CSV fields using the Add Left Margin or Add Right Margin filters
- Add a header line using the Add Header filter
- Move, copy or re-order CSV fields
- Convert between Unix, PC and Mainframe end-of-line formats
- Restrict changes to line ranges, column ranges, tab fields and much more (see white paper here)
- Convert between Mainframe EBCDIC and PC/Unix ASCII representations (see white paper here)
- Remove multiple white space
- Remove CSV fields
- Remove an existing header line
- Remove or extract lines matching a pattern or a code
- Split files that might be too large for a third party application to handle
- Merge multiple CSV files together
And...TextPipe handles multi-Gigabyte files with ease, and can be automated or scripted. Download now -->
TextPipe also has a huge range of filters for code page conversions, conversions to/from Unicode, restricting changes to a given area, and you can even write custom filters in VBScript or JScript.
Like us...you'll find yourself using TextPipe again and again for all kinds of text-processing tasks.
Why CSV files need field-aware editing
A comma separated file looks simple, but ordinary find and replace treats it as plain text. Replacing a value in one column also changes the same text in every other column, and a comma inside a quoted field such as "Smith, John" can break a naive split. TextPipe Pro lets you restrict a filter to a chosen CSV field, so only that column is touched and quoted commas are respected.
Example: cleaning a customer export
Take a customer export where the third column holds a country code and the fifth column holds a status. You want to change the status "N" to "Inactive" without altering the "N" in the country code for Norway.
Before: 1001,"Hansen, Lars",NO,Oslo,N After: 1001,"Hansen, Lars",NO,Oslo,Inactive
Restricting the Replace filter to CSV field 5 makes the change safe, even in a file of several gigabytes.
Common CSV tasks
- Change the delimiter from comma to tab, pipe or semicolon for systems with regional list separators.
- Add, remove, move or copy columns, and add or strip a header row.
- Remove blank lines, duplicates or lines that match a pattern. The grep filters and the EasyPattern language make the patterns easy to write.
- Combine several exports with the merge files filter, or break up an oversize file with split CSV for Excel.
- Order rows and remove repeated records with large file sorting.
Quoted fields, embedded commas and line breaks
The CSV format allows a field to be wrapped in double quotes so that it can contain commas, quotes and even line breaks. A doubled quote inside a quoted field stands for one literal quote character. TextPipe Pro understands these rules when you restrict a filter to a field number, so a value such as "Said ""hello"", then left" is treated as one field, not three. This matters for exports from CRM systems, e-commerce platforms and survey tools, where free-text comments often contain exactly this kind of punctuation.
Working with very large exports
TextPipe processes files as a stream, so memory use does not grow with file size. A 12 GB transaction export can be cleaned in a single pass: remove the header, convert dates in field 4 from day/month/year to year-month-day, force field 7 to upper case and write the result as a tab delimited file. Because the filter list is saved with the job, the same cleanup can run unattended every night from the command line, and the log shows how many records were read and changed so you can confirm nothing was dropped.
Related pages
CSV is often the end point of a mainframe job, so see EBCDIC to ASCII conversion for how fixed-width and packed data are turned into CSV. For wider migration projects read the data conversion solutions page. If you maintain spreadsheets as well as text files, ExcelPipe applies the same batch search and replace approach to Excel workbooks.
Try it now for free. Setup takes only 1 minute
Installing TextPipe is a simple process that takes only 1 minute.
Need To Convert Data Right Now?
We offer a 90-day money back guarantee, and accept payment online via credit card, and offline via check, wire and purchase order.
Need More Information About TextPipe Pro?
Please click here.
Ask Us a Question!
