How to Fix Broken Excel Hyperlinks After Saving as HTML
Question details
Users need to resolve an issue where exporting an Excel workbook to HTML results in incomplete or broken corporate file path hyperlinks.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Saving an Excel workbook containing network or corporate file paths as an HTML web page.
- Observed behavior
- Hyperlinks in the exported HTML file are truncated or broken, despite functioning perfectly in the original Excel file, older Excel versions, or PDF exports.
Before modifying your spreadsheet or settings, verify that your corporate network drives are actively connected and save a backup copy of your original Excel workbook.
Inspect and Manually Update Hyperlinks in Excel
Verify the hyperlink address properties to ensure the full absolute file path is explicitly defined before exporting.
Newer versions of Excel sometimes truncate long or complex corporate paths when generating HTML files. By manually enforcing the absolute path in the Edit Hyperlink menu, you can bypass automatic path formatting errors.
Right-click the cell containing the broken hyperlink in your Excel workbook and select 'Edit Hyperlink' from the context menu.
Look at the 'Address' field at the bottom of the dialog box. If the corporate file path appears relative or truncated, manually type or paste the complete absolute network path (e.g., \\ServerName\Folder\File.ext).
Click 'OK' to apply the changes. Go to 'File' > 'Save As', select the HTML format, and test the newly generated web page to confirm the link works.

Export to PDF Instead of HTML
Use the PDF export feature, which reliably preserves corporate file paths and hyperlinks without truncation.
Repair the Microsoft Office Installation
Run an Office repair to fix potential corruptions in the application's automatic hyperlink handling or export engine.
Try WPS Office for Seamless and Accurate File Exports
If newer versions of Microsoft Excel continue to break your hyperlink paths during HTML export, consider switching to WPS Office. It provides a highly compatible, free alternative with reliable file conversion features that keep your data and links intact.
- 1. Download WPS Office: Visit the official WPS website and download the free WPS Office suite.
- 2. Open your workbook: Launch WPS Spreadsheet and open your original .xlsx file containing the corporate hyperlinks.
- 3. Save as Web Page: Navigate to Menu > Save As, choose the Web Page (.html) format, and save the file with your links preserved securely.

Frequently Asked Questions
Why do my Excel hyperlinks work in PDF but not in HTML?
Newer versions of Excel sometimes struggle with converting long or complex corporate network paths during the HTML export process, leading to truncated links. PDF exports utilize a different rendering engine that reliably preserves the absolute file paths as they appear in the spreadsheet.
Can I manually fix the broken hyperlinks in the exported HTML file?
Yes. You can open the generated HTML file in any text editor, such as Windows Notepad. Press Ctrl+F to search for the broken links within the 'href' tags, and manually paste the correct absolute network path, then save the file.
How do I stop Excel from automatically formatting network paths?
To disable automatic formatting, go to File > Options > Proofing. Click on 'AutoCorrect Options', navigate to the 'AutoFormat As You Type' tab, and uncheck the box labeled 'Internet and network paths with hyperlinks'.
Does using an older version of Excel fix the HTML export issue?
Yes, older versions of Microsoft Excel use a different HTML export module that does not typically truncate network paths. If you have access to an older version, opening and saving your workbook as HTML from there will usually preserve the hyperlinks correctly.




