Document Editing Problems

How to Remove All Images and Spaces from a Word Document on Mac

Elise WilliamsElise Williams Nov 3, 2026 869 views

Question details

The user needs to quickly remove all graphics (both inline and floating) as well as unwanted spaces from a Word document on a macOS device.

How to Remove All Images and Spaces from a Word Document on Mac
Product
Word
Device & OS
Mac
Scenario
Cleaning up the formatting of a document by stripping out visual elements and blank spaces.
Observed behavior
The document currently contains excess spaces and various images that need to be removed in bulk rather than one by one.
Before you start

Make sure to create a backup copy of your document before performing bulk deletions, as removing all images or spaces will significantly alter your document's layout.

Solution 1Recommended

Remove Inline Images using Advanced Find and Replace

Use Word's Find and Replace feature with special character codes to instantly remove all images that are in line with text.

Inline images behave like text characters within a paragraph. Because of this, they can be searched for and deleted in bulk using a specific graphic code.

1
Open Advanced Find and Replace

In the top menu bar, click on 'Edit', navigate to 'Find', and select 'Advanced Find and Replace...'.

2
Enter the graphic code

In the 'Find what' field, type the code for graphics: ^g.

3
Leave replacement field empty

Ensure the 'Replace with' field is completely blank so that the images are deleted rather than replaced with text.

4
Execute the replacement

Click the 'Replace All' button. A prompt will appear telling you how many replacements (deletions) were made.

Remove Inline Images using Advanced Find and Replace
Note on Floating Images: This method only works for inline images. Images with text wrapping set to anything other than 'In Line with Text' will not be deleted with this method.

Effortlessly Manage Document Elements with WPS Writer

WPS Office offers a highly intuitive and powerful Find and Replace tool alongside a clear Selection Pane, making it simple to bulk-delete images, format texts, and manage document objects with ease on Mac.

  1. 1. Open your document in WPS Writer: Launch WPS Office on your Mac and open the document you wish to clean up.
  2. 2. Access Find and Replace: Navigate to the Home tab and click the 'Find and Replace' icon, or use the keyboard shortcut Cmd + F.
  3. 3. Use special characters: Click the 'Special' button to easily insert codes like ^g for graphics or specify whitespace characters to remove.
  4. 4. Clean your document: Leave the replace field empty and click 'Replace All' to instantly format your file.
Lightweight, fast, and feature-rich word processor for Mac users.100% compatible with Microsoft Word formats like .docx and .doc.Advanced Find and Replace to precisely control document formatting.User-friendly Selection Pane for managing complex graphic layouts.
microsoft office alternative - wps office

Frequently Asked Questions

Why didn't the '^g' code remove all my images?

The '^g' code in Find and Replace only targets inline graphics (images formatted as 'In Line with Text'). If your images have other wrapping styles like 'Square' or 'Behind Text', they are considered floating objects and must be removed using the Selection Pane.

Can I replace double spaces with single spaces?

Yes. Open the Advanced Find and Replace dialog. In the 'Find what' box, press the spacebar twice. In the 'Replace with' box, press the spacebar once. Click 'Replace All'. You may need to click 'Replace All' a few times until 0 replacements are made to catch spaces that were originally triple or quadruple.

Is it possible to remove formatting but keep the text?

Yes. You can select all your text (Cmd + A) and press 'Cmd + Shift + Z' (or go to the Home tab and click 'Clear Formatting'). This will strip away fonts, bolding, and colors, but it generally will not delete images or physical space characters.