Replace CSV Columns
Find and replace values in specific CSV columns with text or regex support
Swap values in one CSV column without touching the rest of your data — pick the target column, type what to find and what to replace it with, and hit Replace. Regex mode handles pattern-based swaps like reformatting dates or phone numbers in bulk. And everything runs in your browser. Nothing gets uploaded.
How It Works
The parser reads your first row as headers, splits every line on commas (respecting quoted fields), and builds an internal table. When you click Replace, it walks through only the column you selected and swaps each match. Quoted fields with commas or special characters stay properly escaped in the output.
Examples
Fixing a misspelled city name across 2,000 orders
Your shipping data has "Philadelpia" instead of "Philadelphia" in the City column. Quick fix.
Name,City,State
Jane Doe,Philadelpia,PA
Mark Lee,Philadelpia,PA
Sara Kim,New York,NY
Name,City,State
Jane Doe,Philadelphia,PA
Mark Lee,Philadelphia,PA
Sara Kim,New York,NY
Standardizing phone formats with regex
Half the phone numbers say "(555) 123-4567" and the other half say "555-123-4567". You need them all in one format before importing into a CRM.
\((\d{3})\)\s*(\d{3})-(\d{4})
$1-$2-$3
Result: "(555) 123-4567" becomes "555-123-4567". The backreferences $1, $2, $3 grab the captured digit groups and reassemble them in the new format.
Replacing status codes with readable labels
An export from your database uses numeric codes (1, 2, 3) in the Status column. The report needs words instead.
ID,Product,Status
101,Widget A,1
102,Widget B,2
103,Gadget C,1
ID,Product,Status
101,Widget A,Active
102,Widget B,2
103,Gadget C,Active
Run it once per code. Replace "1" with "Active", then "2" with "Inactive", and so on. Only the Status column changes — the ID column's "101" stays put because you targeted a specific column.
Who Uses This
Clean up test data or swap placeholder values in fixture CSVs before loading them into staging databases.
Standardize category names or fix encoding artifacts across large exports.
Update campaign UTM tags or swap old product names with new ones in bulk email lists.
Correct supplier codes, update region labels, or anonymize values before sharing reports externally.
Common Mistakes
The column dropdown stays empty until you parse. Paste your data, then hit Parse Columns before trying to select anything.
Typing \d+ without toggling Regex on will look for the literal characters \d+ in your data. Turn on the Regex toggle first, or your search won't match anything.
This tool only changes the column you selected, which is the whole point. But if you meant to change all columns, you'll need to run it once per column. Not a bug — it is a safety feature.
Plain text mode does match substrings, so searching for "cat" will also match "category." If you only want exact cell matches, use regex with anchors: ^cat$.
Technical Details
- Processing: 100% client-side — your CSV never leaves the browser
- Browser Support: Chrome, Firefox, Safari, Edge
- Regex Engine: JavaScript native (supports backreferences, lookahead, character classes)
- CSV Parsing: RFC 4180 compliant — handles quoted fields, embedded commas, and escaped quotes
- File Size: Limited only by your browser's available memory
Frequently Asked Questions
How do I replace values in a specific CSV column?
Paste your CSV, click Parse Columns, then pick the column from the dropdown. Type what you want to find and what to replace it with. Hit Replace — only that column gets changed. Other columns stay exactly as they were.
Can I use regex to find and replace in CSV files?
Yes. Toggle the Regex switch on, and the find field accepts full JavaScript regular expressions. You can use capture groups in the find pattern and reference them with $1, $2 in the replace field. Great for reformatting dates, phone numbers, or swapping word order.
Does this tool upload my CSV data to a server?
No. Everything runs in your browser using JavaScript. Your data is not sent anywhere. Close the tab and it's gone — nothing is stored or logged on any server.
What happens to CSV fields that contain commas or quotes?
The parser follows the CSV standard (RFC 4180). Fields wrapped in double quotes are read correctly even if they contain commas, line breaks, or escaped quotes. After your replacement, any field that needs quoting gets re-quoted automatically.
Is the find-and-replace case-sensitive?
Plain text mode is always case-sensitive — "Active" won't match "active." In regex mode you can make it case-insensitive by adding the (?i) flag at the start of your pattern, or writing something like [Aa]ctive to match both.