Replace Hyperlink URLs in Bulk Without Changing Display Text in Word
Question details
Replace part of multiple hyperlink URLs in a Word document without changing the text readers see.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Several hyperlinks contain a URL substring that needs to be changed while their display text stays the same.
- Observed behavior
- The desired result is updated hyperlink destinations with the original visible link text preserved.
Identify the exact URL substring to replace and check whether it also appears in visible text or other document content. Open the document in Word and locate a hyperlink to inspect its field code.
Replace URL Substrings in Word Hyperlink Field Codes
Use field codes and Find and Replace to change matching hyperlink targets while keeping their display text.
A hyperlink field can store its destination separately from its displayed text. Find and Replace can also match text outside hyperlink targets, so review each match unless you are certain the search string occurs only in the URLs you want to change.
In Word, press Alt+F9, or Alt+Fn+F9 on some keyboards, to display field codes. Look for HYPERLINK fields containing the target URLs.
Press Ctrl+H to open Find and Replace. Enter the old URL substring in Find what and the new substring in Replace with.
Use Find Next and Replace to change matches inside the quoted HYPERLINK targets. Use Replace All only if you have confirmed that every match should be changed.
Select the edited fields and press F9 to update them. Press Alt+F9 again to return to the normal view, then follow a few links to verify their destinations and display text.

Update Hyperlink Addresses in WPS Writer
Open the document in WPS Writer and edit each hyperlink address while retaining its display text. This is a practical option for a small number of links, rather than an automated bulk replacement.
- 1. Open the document: Open WPS Writer and use Open to select your Word document.
- 2. Edit a hyperlink: Right-click a hyperlink and choose Edit Hyperlink.
- 3. Change the address: Replace the URL in the address field, leave the display text unchanged, and confirm the edit.
- 4. Repeat and check: Repeat for the remaining links, then open a few edited hyperlinks to check their destinations.

Frequently Asked Questions
Will Replace All change my visible hyperlink text?
It can if the search string also appears in visible text or elsewhere in the document. Use Ctrl+H and review matches with Find Next and Replace unless every occurrence should be changed.
Why do the links still point to their old URLs?
After editing the field codes, select the changed hyperlink fields and press F9 to update them. Then test the links in the normal document view.
How do I hide the field codes again?
Press Alt+F9, or Alt+Fn+F9 on some keyboards, to switch from field codes back to the normal display.
Can I change a single hyperlink without using field codes?
Yes. In WPS Writer, right-click the hyperlink, choose Edit Hyperlink, and change the address while leaving the display text unchanged.




