Free online text tools

Replace Tools

Replace tools swap one part of your text for another, such as spaces, new lines or any word or phrase you choose. Pick a tool below, paste your text and copy the result. All four tools are free and run in your browser.

Which replace tool should you use?

Match your task to the right tool.

You want toUseExample result
Turn a column into a comma listReplace New Line with Commasred,green,blue
Swap spaces for a dash or underscoreReplace Spacesmy_file_name
Change text inside brackets or tagsReplace Text BetweenHi Sam, welcome
Change any word or phraseSearch And ReplaceI like dogs

Quick guide to replacing text

All matches change

Replace tools change every match in your text. Make the search text specific if you only want to change certain places.

Mind the case

Check whether the search is case sensitive. Cat and cat may or may not count as the same word.

Check the output

Skim the result before you use it, especially after replacing short words that can appear inside longer words.

How to use any replace tool

  1. 1
    Choose a tool
    Pick the task from the grid above.
  2. 2
    Paste your text
    Add it to the input box.
  3. 3
    Set the replacement
    Say what to find and what to use.
  4. 4
    Copy the output
    Use the new text anywhere.

Replace tools FAQ

What are replace tools?

Replace tools swap one part of your text for another. You paste the text, say what to find and what to put in its place, and copy the result.

How do I replace new lines with commas?

Paste your list into the Replace New Line with Commas tool. It joins each line into one line and puts a comma between the items, so a column becomes a comma separated list.

How do I replace spaces in text?

Paste your text into the Replace Spaces tool and type the character you want instead, such as an underscore or a dash. This is handy for file names, URLs and tags.

How do I replace text between two characters?

Use the Replace Text Between tool. Enter the start and end markers and the new text, and everything between the markers is replaced.

How does Search And Replace work?

Enter the word or phrase to find and the text to put in its place. The tool changes every match in your text at once.

Is Search And Replace case sensitive?

It depends on the tool setting. A case sensitive search treats Cat and cat as different words, while a case insensitive search treats them as the same. Check the output when case matters.

Can I replace a word in only one place?

Search And Replace changes every match. If you need to change just one place, make the search text more specific, for example by including the words next to it.

Can I undo a replacement?

The tool works on a copy in the output box, so your original text is not changed. Keep your source text until you are happy with the result.

Are these tools free and is my text private?

Yes. Every tool is free, needs no account and runs in your browser, so your text is not uploaded to a server. Still, avoid pasting passwords or other secrets into any web page.

Missing a tool? Tell us and we will build it.

Suggest a tool

Last updated: 22 October 2026