Find and replace text across a CSV or in one column, with plain text or regular expressions, a live preview of every change, undo, and a clean download.
Initializing in your browser…
Open a CSV as a sortable, searchable table, edit cells, rows and columns with undo, and download the result. Runs in your browser.
Keep only the CSV rows that match your conditions, such as price at least 100 or city is one of a list, then download the matching rows.
Rename CSV column headers one by one or all at once, in snake_case, camelCase or another style, with abbreviations expanded and duplicate names caught.
A company changed its email domain, and its staff list also has phone numbers written in five different styles. Both need fixing before the list is imported into a new directory.
Staff list (excerpt)
Name,Email,Phone Maya Patel,maya.patel@northwind-old.com,(555) 201-3344 Liam Chen,liam.chen@northwind-old.com,555.201.7781 Noah Williams,noah.w@gmail.com,(555) 201-4410 Ava Johnson,ava.johnson@northwind-old.com,555 201 6612 Ethan Brown,ethan.brown@northwind-old.com,5552011187
Two replacements
1. Find northwind-old.com, replace with northwind.com (all columns)
6 matches in 6 of 35 cells. 6 cells will change.
2. Phone column, regular expression:
^\(?(\d{3})\)?[ .-]?(\d{3})[ .-]?(\d{4})$
replacement ($1) $2-$3, with $1 and $& patterns
7 matches, 4 cells change:
555.201.7781 -> (555) 201-7781
555 201 6612 -> (555) 201-6612
5552011187 -> (555) 201-1187The first search is plain text, so the dots and the hyphen in northwind-old.com are matched literally and Noah's Gmail address is untouched. The second captures the three groups of digits, whatever punctuation sits between them, and rebuilds each number as ($1) $2-$3. All seven phone numbers match the pattern, but three were already written as (555) 201-xxxx, so only four cells actually change, which is the number the tool reports before you press Replace all. Counts are for the full seven-row sample.
Search every cell of a CSV, or a single column, for a word, a phrase or a regular expression, and replace the matches one at a time or all at once. Each match is highlighted with its new value shown underneath before anything changes, every replacement can be undone, and the result downloads as a properly quoted CSV.
Why not just use a text editor? Find and replace in a text editor sees a CSV file as one long string. It cannot limit a change to the Email column, it will happily edit the header row, and a replacement containing a comma or a quote can split a field in two and shift every column after it. This tool works on the parsed table instead. It searches cells, not lines, and the download is written back with correct quoting, so a replacement such as "Smith, J." stays in one cell.
Plain text or patterns. By default the search is plain text: every character means itself, including dots, brackets and dollar signs, so northwind-old.com or C++ can be found without escaping anything. Match case makes upper and lower case count, and Whole word skips matches that are part of a longer word, so cat does not touch category. Turn on Regular expression for patterns such as \d{3} or ^\s+. Patterns run in Unicode mode, so \p{L} matches a letter in any script and characters outside the basic range, such as most emoji, count as one character.
What the replacement means. Under More options you choose how to read the replacement. Exactly as typed inserts it character for character. With $1 and $& patterns follows the JavaScript rules: $& is the whole match, $1 and $2 are capture groups, $<name> is a named group and $$ is a literal dollar sign. That makes it possible to reorder parts of a value, for example turning 555.201.7781 into (555) 201-7781. Leave Replace with empty to delete the matches.
See it before it happens. The panel counts matches and the cells they are in, and says how many cells will actually change; a replacement that produces the same text is not counted as a change. The table below lists the rows with a match, highlights each one and shows the new value under it. Step through matches with the arrow buttons, press Replace to change only the highlighted one, or Replace all. Undo reverses the last change, and the history under More options can restore any earlier point.
Download. The file is written in the delimiter it came in, with CRLF line endings, quotes only where a field needs them and a UTF-8 byte order mark so Excel shows accented text correctly. The header row is never searched unless you switch that on, and the file never leaves your browser.
Change every email address from @oldcompany.com to @newcompany.com in one column without touching notes or names that mention the old company.
Use a regular expression with capture groups to bring phone numbers written five different ways into one format.
Replace N/A, n.a. and TBD with an empty value before importing into a database that expects blanks.
Correct a misspelled product or city name everywhere it appears, checking each match first if some uses are correct.
In the sample staff list, northwind-old.com to northwind.com finds 6 matches in 6 of 35 cells. The one Gmail address is left as it is.
In the Phone column, the regular expression ^\(?(\d{3})\)?[ .-]?(\d{3})[ .-]?(\d{4})$ with the replacement ($1) $2-$3 matches all 7 numbers and changes 4 of them, because 3 were already written that way.
Search for " (contractor)" with Replace with left empty to strip that note from every name while leaving the rest of each cell intact.
No. The header row is skipped by default. If you do want to search it, switch on Search the header row under More options; to rename columns in bulk the CSV Column Renamer is a better fit.
Turn on Regular expression, put parentheses around the parts you want to keep, and under More options set Read the replacement to With $1 and $& patterns. Then $1 is the first group, $2 the second, and $& the whole match. Write $$ for a literal dollar sign.
Because in plain text mode every character means itself. A dot is a dot and a bracket is a bracket. Escaping is only needed when Regular expression is on.
Leave Replace with empty. The matches are removed and the rest of each cell is kept.
Yes. Undo reverses the most recent change, and the history under More options lists every change with a button to go back to the table as it was before it.
Nothing goes wrong. The file is written with standard CSV quoting, so a value containing the delimiter, a quote mark or a line break is wrapped in quotes and stays in its own cell.
No. Searching and replacing happen in your browser and the file is never sent to a server.
Rows and columns are parsed and transformed in memory in your browser. No record ever reaches a server.