Fix Extra Spaces When Copying Text from OneNote Online to Notepad
Question details
The user needs to copy text from OneNote for the web to Notepad without unwanted spaces or extra line spacing.

- 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.
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.
Reproduce and report the OneNote web formatting issue
Use a small test case to document the extra whitespace and provide Microsoft with reproducible details.
Open Notepad and type a few lines of non-sensitive text with known spacing and line breaks.
Copy the sample into a page in OneNote for the web, then copy it from the page into a new Notepad document.
Compare the original and pasted text in Notepad or a code editor that can display whitespace. Check for trailing spaces and added blank lines.
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.

Use the OneNote desktop app or a plain-text editor
Use an alternative workflow while the web copying issue persists, especially for code and scripts.
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.

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.




