File Format & Compatibility

How to Fix Excel PDF Export Changing Filenames in OneDrive

John WilsonJohn Wilson Oct 10, 2026 868 views

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.

How to Fix Excel PDF Export Changing Filenames in OneDrive
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.
Before you start

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.

Solution 1Recommended

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.

1
Export PDF to Local Desktop

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.

2
Verify the Filename

Check the saved PDF on your Desktop. If the filename is completely correct, the issue is isolated to the OneDrive sync process.

3
Reset the OneDrive App

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.

4
Restart and Test Again

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.

Export to Local Desktop and Reset OneDrive
About Resetting OneDrive: Resetting OneDrive does not delete or lose any of your data. It simply rebuilds the sync cache, which can resolve file handling errors, though it may take a few minutes to resync your library.
Free Microsoft Office alternative

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. 1. Open Your Spreadsheet in WPS Office: Launch WPS Office and open your existing .xlsx or .xls file.
  2. 2. Export to PDF: Click on the 'Menu' button in the top left, select 'Export to PDF', and configure your desired PDF settings.
  3. 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.
Free to use with a clean, familiar interface.Complete format compatibility with Microsoft Excel (.xlsx, .xls).Built-in PDF export tool that prevents filename encoding errors.Lightweight software that runs smoothly and syncs easily with cloud drives.
microsoft office alternative - wps office

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.