Replace Text Between
Replace whatever sits between two markers, such as ?ref= and a quote, in every text field on the page at once.
Replace Text Between
Give it a starting marker, an ending marker and the new text. Replace Text Between finds every match in the text boxes, text areas and editable regions of the current page, swaps the text in between and keeps the markers themselves. It is handy for updating tracking tags, placeholder values or attribute values across a long form or HTML editor.
Features
-
Replace between two markers
Type a starting and an ending marker, for example{{and}}or?ref=and". Every piece of text between them is replaced and the markers stay in place. -
Every field on the page
One click covers text, search, email, URL and phone inputs, text areas and editable regions (contenteditable) on the whole page, not just the field you are in. -
Shortest match
Each match ends at the first ending marker after the start, so four links on one line are four separate matches, not one long one. -
Match count
After Replace All the popup tells you how many occurrences were replaced, or that nothing matched. -
Remembers your last values
The three fields are saved as you type, so a replacement you run every week is ready when you open the popup again.
How to use
- Add Replace Text Between to Chrome from the Chrome Web Store and pin it to the toolbar.
- Open the page with the form or editor you want to change.
- Click the icon and fill in Starting character and Ending character. Both can be more than one character, for example
?ref=. - Type the new text in Replace inner text with. Leave it empty to clear the text between the markers.
- Click Replace All and check the count under the button, then save the form as you normally would.
Why use it?
-
No hunting through long text
Changing the same tag or value in twenty places by hand is slow and easy to get wrong. One replacement covers them all. -
Markers stay intact
Because only the text inside is replaced, links, attributes and template tags keep their structure. -
Private
The replacement runs in the page itself. Your text is not sent anywhere, and only the three field values are saved in local extension storage.
Screenshots
FAQ
-
Which fields does it change?
Text, search, email, URL and phone inputs, text areas and elements marked
contenteditable="true"on the current page. Fields inside iframes, such as some rich text editors, are not reached. -
Can a match span several lines?
No. The starting and ending markers must be on the same line. Each match ends at the first ending marker after the start.
-
Are spaces in the markers kept?
No. Spaces at the start and end of the two marker fields are trimmed before searching. Spaces in the replacement text are kept.
-
Will it remove formatting in a rich text editor?
It can. Editable regions are rewritten as plain text, so bold, links and other inline formatting inside that region are lost. Use it on plain text fields or the HTML view of an editor when formatting matters.
-
Which browsers are supported?
Chrome, Edge, Brave, Opera, Vivaldi and other Chromium-based browsers (version 96 or newer).
-
Is it free?
Yes. Replace Text Between is free, with no account and no ads.