How to Remove Every Capital X from a Word Document
Question details
The user needs to completely remove all instances of the uppercase letter "X" from a Word document to clean up alphanumeric data.

- Product
- Word Processing
- Device & OS
- not provided
- Scenario
- Cleaning up text or data formats by bulk-deleting specific uppercase letters from strings, such as converting X1234 to 1234.
- Observed behavior
- The document contains unwanted capital X characters scattered within text or numbers that need to be targeted and deleted without affecting lowercase letters.
Identify whether you need to remove only uppercase 'X' or both upper and lowercase 'x', as you will need to actively enable the Match Case setting to specifically target just the capital letter.
Use Find and Replace to Remove Uppercase X
The quickest way to remove specific characters globally in a document is by using the built-in Find and Replace tool with the Replace field left blank.
This method utilizes Word's native Find and Replace functionality. By enabling the Match Case option, you guarantee that only the capitalized 'X' is deleted while leaving any lowercase 'x' intact.
Press Ctrl + H on your keyboard to immediately open the Find and Replace dialog box.
Type an uppercase 'X' in the 'Find what' text box.
Ensure the 'Replace with' text box is completely empty. Do not even press the spacebar here.
Click the 'More' button to expand the search options, then check the box next to 'Match case'.
Click the 'Replace All' button. Word will scan the document, remove every capital X, and display a popup showing how many replacements were made.

Automate Removal Using a VBA Macro
For advanced users who need to perform this cleanup frequently across multiple documents, a VBA macro can automate the task in seconds.
Easily Edit and Clean Up Text with WPS Writer
WPS Office provides a powerful, free Word processing tool that allows you to easily find and replace specific characters, words, or formatting just as you would in Microsoft Word.
- 1. Open your Document: Launch WPS Office and open the document you wish to edit in WPS Writer.
- 2. Access Find and Replace: Press Ctrl + H or navigate to the Home tab and click on Find and Replace.
- 3. Set Search Parameters: Enter 'X' in the 'Find what' box, leave 'Replace with' empty, click 'Options', and check 'Match case'.
- 4. Replace All: Click the 'Replace All' button to remove all capital X letters at once.

Frequently Asked Questions
How do I remove a lowercase x without affecting the uppercase X?
Open the Find and Replace dialog (Ctrl + H), type a lowercase 'x' in the Find box, click the 'More' button to check the 'Match case' box, leave the replace field entirely blank, and click 'Replace All'.
Can I remove numbers instead of letters using Find and Replace?
Yes. You can type specific numbers in the 'Find what' box, or click the 'More' button, select 'Special', and choose 'Any Digit' (^#). Leave the 'Replace with' field blank and click 'Replace All' to remove all numbers.
Why did Find and Replace remove spaces in my document?
This happens if you accidentally type a space in the 'Find what' box along with your letter, or if you highlight an invisible space while copying text into the field. Ensure there are absolutely no extra spaces entered in either the Find or Replace fields.
Does this Find and Replace method work in spreadsheet applications?
Yes, the Find and Replace feature functions similarly in spreadsheet software like WPS Spreadsheet or Excel. Press Ctrl + H, enter the character to find, leave the replace field empty, check 'Match case' in the options, and select 'Replace All'.




