How to Clear Microsoft Word Formatting using AppleScript on Mac
Question details
The user wants to remove direct formatting from a selected paragraph in Microsoft Word on macOS without using the Styles pane or Touch Bar shortcuts.

- Product
- Microsoft Word
- Device & OS
- macOS
- Scenario
- Clearing direct text formatting programmatically or efficiently when built-in keyboard customization options are lacking.
- Observed behavior
- Microsoft Word's Customize Keyboard dialog lacks a built-in command for clearing paragraph formatting, prompting the need for a custom script or workaround.
Ensure you have Microsoft Word installed on your Mac and open the built-in Script Editor application to run AppleScript commands. Make sure to highlight the target text in your document before executing the script.
Use AppleScript to Clear Selection Formatting
Run a simple AppleScript to programmatically invoke Word's clear formatting command on the currently highlighted text.
This method directly targets the active selection in Microsoft Word and forces the application to strip away all direct formatting, bypassing the need to navigate through the Styles pane.
Open your document in Microsoft Word and highlight the paragraph or text block that contains the unwanted formatting.
Launch the Script Editor app on your Mac (you can find it using Spotlight search).
Type or paste the following script into the editor: tell application "Microsoft Word" to activate; selection clear formatting; end tell
Click the Run button (the play icon) in Script Editor. Word will become the active window, and the formatting on your selected text will be cleared.

Apply the Normal Style via Keyboard Shortcut
Use Word's default shortcut to apply the standard Normal style, which serves as a quick alternative to clearing direct formatting.
Try WPS Office for Easier Document Formatting
If you find managing styles and formatting in Microsoft Word overly complex, WPS Office offers a free, lightweight, and highly compatible alternative. Its intuitive user interface allows you to clear formatting with a single click, eliminating the need for complex AppleScript workarounds.
- 1. Download WPS Office: Install the free WPS Office suite on your Mac.
- 2. Open Your Document: Launch WPS Writer and open your existing Word (.docx) file.
- 3. Clear Formatting Easily: Highlight the text and click the 'Clear Formatting' eraser icon directly on the Home tab—no scripting required.

Frequently Asked Questions
Why doesn't the Customize Keyboard dialog in Word have a Clear Formatting option?
Microsoft Word for Mac does not include 'ClearParagraphAllFormatting' as a built-in command directly assignable via the Customize Keyboard menu, which often forces users to rely on the Styles pane, AppleScript, or Normal style shortcuts.
Does pressing Shift+Command+N remove all text formatting?
Not always. Shift+Command+N applies the document's default Normal style. While this removes many layout rules, certain direct character formatting (like manually applied bolding or specific font colors) might remain intact.
Can I trigger this AppleScript without opening the Script Editor every time?
Yes. You can use the macOS Automator or Shortcuts app to create a Quick Action containing this AppleScript. Once saved, you can assign a custom keyboard shortcut to this Quick Action in your Mac's System Settings.




