How to Fix Excel PDF Export Changing Filenames in OneDrive
Question details
Users experience incorrect or duplicated filenames, such as unexpected percent signs or repeated extensions, when exporting Excel files to PDF directly into a OneDrive folder.

- Product
- Microsoft Excel / OneDrive
- Device & OS
- not provided
- Scenario
- Exporting an Excel workbook as a PDF file directly to a synced OneDrive directory.
- Observed behavior
- The exported PDF file receives an unexpected filename, often containing URL-encoded characters (like percent signs) or duplicated '.pdf' extensions.
Ensure you are using the desktop versions of both Microsoft Excel and OneDrive, and check if your Office suite is fully updated to the latest version.
Export to Local Desktop and Reset OneDrive
Determine if the issue is caused by OneDrive's sync engine by exporting locally first, then resetting the OneDrive application.
Sometimes the communication between Excel and the OneDrive sync engine interprets the save path as a web URL, causing it to inject percent signs or mismanage the file extension.
Open your Excel workbook, navigate to 'File' > 'Export' > 'Create PDF/XPS Document', and choose your local Desktop as the save destination instead of a OneDrive folder.
Check the saved PDF on your Desktop. If the filename is completely correct, the issue is isolated to the OneDrive sync process.
Press the Windows key + R to open the Run dialog. Type '%localappdata%\Microsoft\OneDrive\onedrive.exe /reset' and press Enter to reset the desktop app.
Restart OneDrive from the Windows Start menu, allow it to re-initialize, and attempt to export your Excel file to PDF directly into the OneDrive folder again.

Cross-Check with Other Office Applications
Identify whether the filename bug is specific to a single Excel file or if it affects your entire Microsoft Office suite.
Use WPS Office to Export PDFs Seamlessly
If Microsoft Excel continues to cause filename encoding issues with OneDrive, consider switching to WPS Office. It is a free, lightweight alternative that provides excellent compatibility with Excel formats and features a highly stable built-in PDF converter.
- 1. Open Your Spreadsheet in WPS Office: Launch WPS Office and open your existing .xlsx or .xls file.
- 2. Export to PDF: Click on the 'Menu' button in the top left, select 'Export to PDF', and configure your desired PDF settings.
- 3. Save to OneDrive or Local Folder: Choose your OneDrive directory or local destination and click 'Export'. The filename will remain exactly as typed without unwanted characters.

Frequently Asked Questions
Why does my exported PDF filename have percent signs in it?
Percent signs usually indicate URL encoding (for example, '%20' represents a space). This happens when Excel mistakenly interacts with the OneDrive folder as a web server path rather than a standard local directory.
Will resetting the OneDrive desktop app delete my files?
No, resetting the OneDrive app will not delete any files or folders from your computer or the cloud. It only clears the local sync cache and restarts the sync engine to fix software glitches.
How do I prevent duplicated .pdf extensions when saving?
When exporting or saving as a PDF, do not manually type '.pdf' at the end of your filename if the 'Save as type' dropdown is already set to PDF. The software will automatically append the extension for you.




