Skip to main content

String Replacer / List Compare

Find and replace text in bulk with plain text or regex, or compare two lists to find unique and shared items. Your text stays private in your browser.

Input

Stays in your browser

Output

Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)

Next steps

Done here? Use the Send to… menu on the result to carry it on to Regex Tester or Case Converter.

Online String Replacer and List Compare Tool

Replace values across text or compare line-based lists to find differences and common items instantly in your browser. It helps migration work, release reviews, and data cleanup where repeated text changes or line-based set differences would be tedious by hand.

What is a string replacer and list comparer?

A bulk string replacer applies one change consistently across a block of text. A list comparer treats each line as an item and groups entries unique to either list or shared by both.

How to use these text tools

Choose String Replacer to enter a search value and replacement, optionally as a regular expression. Choose List Compare to paste one item per line into each list and inspect the three result groups.

Keep sensitive text local

Both workflows run in the browser, which is useful for comparing configuration names, migration lists, and code snippets without sending them to an online processing service.

Worked example

With the default sample text, Find developer and Replace with frontend turns "DevStackKit makes developer work faster." into "DevStackKit makes frontend work faster." In List Compare, List A apple, banana, pear against List B banana, pear, plum gives Only in A: apple, Only in B: plum, Common: banana, pear.

Common mistakes and edge cases

  • An empty Find value leaves the text unchanged and shows a note, in both plain-text and regex mode.
  • An invalid regex pattern shows an error message and an empty Output box, not replaced text.
  • List Compare deduplicates each list before comparing, so a line repeated multiple times in one list still only counts once — and it’s always case-sensitive, with no option to ignore case.

Frequently asked questions

Is replacement case-sensitive?
Plain-text replacement is case-sensitive by default. Regex mode lets you add flags such as i for case-insensitive matching and g for every occurrence. List Compare has no case toggle at all — in testing, it always compares lines exactly as typed, so "Apple" and "apple" are treated as different items.
How are lists compared?
Each trimmed non-empty line becomes an item, deduplicated within its own list before comparing — as tested, a line repeated three times in List A still only counts once toward "Only in A" or "Common." The results show items unique to each list and the intersection shared by both.
Is my text sent anywhere?
No. Replacement and list comparison run locally with JavaScript and are not uploaded or stored.
What happens if I leave Find empty in plain-text mode?
Nothing is replaced: the output is your text unchanged, and a note asks you to type what to find.
What happens if my regex pattern is invalid?
An error message above the boxes says what is wrong with the pattern, and the Output box stays empty, so a broken pattern is never mistaken for replaced text.
How do I compare two lists and find missing items?
Put one item on each line in the two boxes and open List Compare. It shows the items only in the first list, only in the second list and in both, after trimming spaces and ignoring empty lines. Use the case option when "Apple" and "apple" should count as the same item.

Related tools

More Data Generation & Utilities

View all Data Generation & Utilities tools →