Formatting Issues

Fix Extra Spaces When Copying Text from OneNote Online to Notepad

Anum MushtaqAnum Mushtaq Nov 18, 2026 869 views

Question details

The user needs to copy text from OneNote for the web to Notepad without unwanted spaces or extra line spacing.

Fix Extra Spaces When Copying Text from OneNote Online to Notepad
Product
Microsoft OneNote for the web
Device & OS
not provided
Scenario
Text, including source code or scripts, is copied from a OneNote web notebook into a plain-text application.
Observed behavior
The pasted text can contain trailing spaces and extra spacing between lines, including after a round trip from Notepad through OneNote.
Before you start

Prepare a short, non-sensitive text sample with the original line breaks and spacing. Record your browser name and version, and avoid running copied code until you have checked its formatting.

Solution 1Recommended

Reproduce and report the OneNote web formatting issue

Use a small test case to document the extra whitespace and provide Microsoft with reproducible details.

1
Create a test sample

Open Notepad and type a few lines of non-sensitive text with known spacing and line breaks.

2
Copy through OneNote

Copy the sample into a page in OneNote for the web, then copy it from the page into a new Notepad document.

3
Compare the text

Compare the original and pasted text in Notepad or a code editor that can display whitespace. Check for trailing spaces and added blank lines.

4
Send a report

Use the feedback option in OneNote for the web, if available, or contact Microsoft Support. Include the sample, exact steps, browser version, and whether the issue occurs on other devices or accounts.

Reproduce and report the OneNote web formatting issue
Report it as a formatting defect: The behavior has been reproduced across multiple users and devices in the reported case. Reporting it does not guarantee an immediate fix.
Free Microsoft Office alternative

Edit Documents with WPS Office as an Office Alternative

WPS Office is a free, lightweight alternative for everyday document editing. Its familiar interface and Microsoft Office format compatibility make it easier to move existing files into a new workflow. It does not fix the OneNote web copying defect.

Use a familiar document-editing interface for everyday writingOpen and edit Microsoft Word DOCX files for easier migrationWork with Microsoft Excel XLSX and PowerPoint PPTX filesReview copied text in a document before transferring it elsewhere
microsoft office alternative - wps office

Frequently Asked Questions

Why does text copied from OneNote Online contain extra spaces?

OneNote for the web may alter whitespace when copying content to a plain-text application. A round-trip test from Notepad through OneNote can help show whether this behavior occurs with your text.

How can I check for trailing spaces and extra blank lines?

Paste the copied text into a code editor with a show-whitespace feature and compare it with the original. Check line endings, indentation, and spaces at the ends of lines.

Will copying from the OneNote desktop app preserve my formatting?

It may work as an alternative, but it is not guaranteed. Open the notebook in the desktop app, copy a sample to Notepad, and compare the result with the original.

What should I include in a Microsoft support report?

Include a non-sensitive sample, the steps used to copy it, the browser name and version, and the expected and actual results. Mention whether you reproduced the issue on other devices or accounts.