How to Remove Link Underlines in the SharePoint Modern Text Web Part
Question details
The user wants to remove the permanent underlines from hyperlinks in the SharePoint Modern Text web part without using custom CSS.

- Product
- SharePoint
- Device & OS
- not provided
- Scenario
- Editing a modern SharePoint page and styling hyperlinks within the Text web part.
- Observed behavior
- Hyperlinks in the Modern Text web part are permanently underlined by default, and there is no native UI option to remove this styling.
Keep in mind that SharePoint Modern pages restrict custom CSS injection to ensure responsive design and accessibility compliance across all sites.
Acknowledge Native Limitations and Submit Feedback
Currently, SharePoint's Modern Text web part does not offer a built-in feature to remove underlines from inline hyperlinks.
Microsoft enforces underlined links by default in the Modern Text web part to comply with Web Content Accessibility Guidelines (WCAG). This ensures that inline links are visually distinct from regular text for users with color vision deficiencies.
Because custom CSS injection is blocked on modern pages without deploying a custom SharePoint Framework (SPFx) extension, you cannot override this text style natively.
Open your SharePoint page in Edit mode, highlight the hyperlinked text in the Modern Text web part, and note that the 'Underline' toggle in the formatting toolbar does not affect the default hyperlink underline.
Navigate to the official Microsoft SharePoint Feedback Portal through your web browser.
Submit a suggestion asking the product team to introduce a 'remove underline' toggle or a 'hover-only underline' formatting option for the Modern Text web part.

Use Alternative Web Parts for Links
If you need clean, non-underlined links, consider using web parts specifically designed for navigation rather than inline text.
Experience seamless document creation and formatting with WPS Office
Dealing with rigid formatting restrictions in online platforms can be frustrating. For your daily document creation, editing, and sharing needs, WPS Office provides a highly customizable, lightweight, and free alternative that gives you full control over text and link styling.
- 1. Download the software: Visit the official WPS Office website and download the free version for your operating system.
- 2. Open existing documents: Launch WPS Office and open your existing Microsoft Office documents without worrying about format compatibility.
- 3. Customize link formatting: Highlight your text, insert hyperlinks, and use the flexible formatting tools to style links exactly as you prefer.

Frequently Asked Questions
Can I use the Script Editor web part to inject CSS and remove the underline?
In modern SharePoint environments, the classic Script Editor web part is disabled by default to maintain security and responsive design. To inject custom CSS, your organization would need to deploy a custom SPFx (SharePoint Framework) extension.
Will the underline appear if I use a button link instead?
No. If you use the Button web part, Quick Links, or Call to Action web parts, the links are styled as interactive UI elements and do not feature the standard inline text underline found in the Text web part.
Is there any keyboard shortcut to remove the link underline in SharePoint?
No. Pressing Ctrl+U or using the underline toggle in the text formatting toolbar only applies to standard text. It will not remove the permanent hyperlink underline forced by the modern Text web part.




