Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. CSV & Data Analysis
  3. CSV Search & Replace
Add to favorites

CSV Search & Replace

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.

Rows never leave your deviceMore csv & data analysisJump to full guide

Initializing in your browser…

You might also like

CSV Viewer & Editor

Open a CSV as a sortable, searchable table, edit cells, rows and columns with undo, and download the result. Runs in your browser.

CSV Row Filter

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.

CSV Column Renamer

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 sample run

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
What CSV Search & Replace produces

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-1187

The 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.

Find and Replace Inside a CSV File

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.

How to use

  1. 1Drop a CSV file on the page, choose one, paste rows, or press Try a sample to see an email domain change already set up.
  2. 2Type what to find, and what to replace it with. Leave Replace with empty to delete the matches.
  3. 3Turn on Match case, Whole word or Regular expression if you need them, and pick One column to limit the search.
  4. 4Check the highlighted matches and the new values shown under them in the table.
  5. 5Press Replace all, or step through matches with the arrows and press Replace for each one you want.
  6. 6Use Undo if a change was wrong, then press Download CSV.

Key features

  • Search all columns or one chosen column, with the header row left alone unless you include it
  • Plain text search where every character means itself, so no escaping is needed
  • Match case and whole-word options that understand accented letters and other scripts
  • Regular expressions with full Unicode support and a plain-language summary of what the pattern does
  • Replacement read exactly as typed, or with $1, $& and $<name> substitution patterns
  • Live preview: match count, cells that will change, and each new value under the old one
  • Replace one match at a time or all at once, with undo and a full history
  • Clear error messages for an invalid regular expression
  • Download keeps the file's delimiter, with correct quoting and a UTF-8 byte order mark
  • Runs in your browser, so the data stays on your device

How it works

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.

Where this fits a data pipeline

  • After a rebrand or a domain change

    Change every email address from @oldcompany.com to @newcompany.com in one column without touching notes or names that mention the old company.

  • Standardising phone numbers or codes

    Use a regular expression with capture groups to bring phone numbers written five different ways into one format.

  • Cleaning up placeholders

    Replace N/A, n.a. and TBD with an empty value before importing into a database that expects blanks.

  • Fixing a recurring typo

    Correct a misspelled product or city name everywhere it appears, checking each match first if some uses are correct.

Tips & best practices

  • Before Replace all, glance at the count of cells that will change. If it is higher than you expect, narrow the search to one column or turn on Whole word.
  • Anchor regular expressions with ^ and $ when the pattern should match the whole cell, not part of it.
  • Turn off List only rows with a match under More options to see the replacements in the context of the whole table.
  • Keep the original file. The download is a new file named after it with _replaced added.

Examples

  • Email domain

    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.

  • Phone formats

    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.

  • Deleting a suffix

    Search for " (contractor)" with Replace with left empty to strip that note from every name while leaving the rest of each cell intact.

Frequently asked questions

Will it change my column headers?

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.

How do I use capture groups like $1?

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.

Why does plain text search not need escaping?

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.

How do I delete text rather than replace it?

Leave Replace with empty. The matches are removed and the rest of each cell is kept.

Can I undo a replacement?

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.

What happens if my replacement contains a comma or quotes?

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.

Is my file uploaded?

No. Searching and replacing happen in your browser and the file is never sent to a server.

Related tools and how they differ

  • CSV Data Transformer: Use it for whole-column changes such as trimming spaces, changing case or reformatting dates, where there is nothing specific to search for.
  • CSV Column Renamer: Use it to rename column headers in bulk; search and replace leaves the header row alone unless you ask.
  • Regex Tester & Debugger: Use it to build and debug a regular expression on sample text before running it over a whole file.

Private by design

Rows and columns are parsed and transformed in memory in your browser. No record ever reaches a server.