Fix PDF Preview Errors in Windows File Explorer Caused by a Hash Symbol
Question details
The user needs to preview a PDF whose filename contains a hash symbol in Windows File Explorer.

- Product
- Windows File Explorer
- Device & OS
- Windows
- Scenario
- Previewing a PDF with a hash symbol in its filename or opening it through a file association.
- Observed behavior
- File Explorer may display a preview error or encounter a file-association error when handling the PDF path.
Locate the PDF in File Explorer and check whether its filename contains a hash symbol (#). Make sure the Preview pane is enabled so you can test the file after making changes.
Rename the PDF Without the Hash Symbol
Use this workaround when the PDF filename contains a hash symbol and fails to preview or open.
Open File Explorer and navigate to the folder containing the affected PDF.
Select the PDF and press F2, or right-click it and choose Rename. Replace # with a letter, number, hyphen, or underscore, and keep the .pdf extension unchanged.
Select the renamed PDF in File Explorer and check the Preview pane. If the pane is hidden, enable it from the View menu.
Check the Default PDF App and Windows File Association
Use this if renaming the PDF does not resolve the error.
Open PDFs and Office Files With WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for opening PDFs and working with Office files. Its format compatibility makes it easy to migrate existing documents, although it does not fix Windows File Explorer preview issues.

Frequently Asked Questions
Why might a hash symbol cause a PDF preview error?
A hash symbol can be interpreted differently by Windows or an application handling the file path. Renaming the file without # is a practical way to test whether the character is involved.
How do I turn on the Preview pane in File Explorer?
Open File Explorer and use the View menu to enable Preview pane. In Windows 11, look under View > Show > Preview pane.
Will changing my default PDF app fix the File Explorer preview?
It may help with opening PDFs, but the Preview pane can use a separate preview handler. Check the .pdf association under Settings > Apps > Default apps, then test both opening and previewing the file.
What should I do if the renamed PDF still will not preview?
Check the default PDF app in Windows Settings and try opening the file directly. If the preview error remains, contact Microsoft Support with the error message and details of the apps you tested.




