Document Editing Problems

Microsoft Word Find and Replace Format Codes Reference

Steve KSteve K Nov 22, 2026 869 views

Question details

Find a reference for Microsoft Word Find and Replace codes and wildcard searches.

Microsoft Word Find and Replace Format Codes
Product
Microsoft Word
Device & OS
not provided
Scenario
The user wants to locate or replace special characters and formatting patterns while cleaning up a document.
Observed behavior
The desired result is a searchable reference for special-character codes and wildcard expressions.
Before you start

Open the document in desktop Microsoft Word and select Home > Replace. Expand More to see search options and the Special menu; test a replacement on a copy before applying it throughout the document.

Solution 1Recommended

Find special-character codes in Microsoft Word

Use Word's Special menu to insert available codes, or enter common codes directly.

With Use wildcards turned off, common Find what codes include ^p for a paragraph mark, ^t for a tab, ^m for a manual page break, and ^b for a section break.

Other non-wildcard search codes include ^w for white space, ^? for any character, ^# for a digit, and ^$ for a letter. Code availability can differ between Find what and Replace with.

1
Open advanced replacement

In Word, select Home > Replace, then select More to display the additional search options.

2
Choose a special character

Clear Use wildcards. Click Find what, select Special, and choose a character or break to insert its code. For example, enter ^p to find paragraph marks.

3
Set the replacement

Click Replace with and enter the replacement text, or select Special to see which replacement codes are available. For example, ^t inserts a tab.

4
Review matches

Select Find Next and Replace to check individual results before using Replace All.

Find special-character codes in Microsoft Word
Section breaks need care: The ^b code finds section breaks but cannot insert one in the replacement. Removing a section break can change section formatting.
Free Microsoft Office alternative

Edit and search Word documents with WPS Writer

WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Word documents. Use WPS Writer for everyday text searches and a straightforward transition between office suites; Word-specific codes and wildcard behavior may differ.

Find and replace text while editing documents in WPS WriterCompatible with Microsoft Word DOC and DOCX formatsFamiliar editing interface for an easier transition from Microsoft OfficeFree, lightweight office suite for everyday document work
QA img-9

Frequently Asked Questions

How do I find paragraph marks in Word?

Select Home > Replace > More, clear Use wildcards, and enter ^p in Find what. If Use wildcards is enabled, enter ^13 instead.

What code finds a tab or a manual page break?

With Use wildcards turned off, enter ^t in Find what for a tab or ^m for a manual page break. You can also select the character from the Special menu.

Can I replace a section break with another section break using ^b?

No. Use ^b in Find what to locate a section break, but it cannot insert a section break in Replace with. Removing a section break can affect formatting.

Where can I see the special codes available in Word?

In desktop Word, select Home > Replace > More, click Find what or Replace with, and open the Special menu. The choices depend on the selected field and search options.

Do Word wildcard expressions work the same way in WPS Writer?

Not necessarily. WPS Writer can find and replace text, but Word-specific codes and wildcard behavior may differ. Check a search on a small selection before applying it to a whole document.