Document Editing Problems

Replace Hyperlink URLs in Bulk Without Changing Display Text in Word

Adam DavisAdam Davis Nov 22, 2026 869 views

Question details

Replace part of multiple hyperlink URLs in a Word document without changing the text readers see.

Replace Hyperlink URLs in Bulk Without Changing Display Text in Word
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.
Before you start

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.

Solution 1Recommended

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.

1
Show field codes

In Word, press Alt+F9, or Alt+Fn+F9 on some keyboards, to display field codes. Look for HYPERLINK fields containing the target URLs.

2
Find the URL substring

Press Ctrl+H to open Find and Replace. Enter the old URL substring in Find what and the new substring in Replace with.

3
Replace the targets

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.

4
Update and test links

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.

Replace URL Substrings in Word Hyperlink Field Codes
Updating the whole document: You can select the entire document and press F9, but this may also update other fields. Selecting only the edited hyperlink fields limits the update.
Edit hyperlinks in WPS Writer

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. 1. Open the document: Open WPS Writer and use Open to select your Word document.
  2. 2. Edit a hyperlink: Right-click a hyperlink and choose Edit Hyperlink.
  3. 3. Change the address: Replace the URL in the address field, leave the display text unchanged, and confirm the edit.
  4. 4. Repeat and check: Repeat for the remaining links, then open a few edited hyperlinks to check their destinations.
Change hyperlink destinations without rewriting their display textOpen and edit Microsoft Word DOC and DOCX filesUse a familiar document-editing interfaceFree, lightweight office suite
microsoft office alternative - wps office

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.