Fix Word Alt Text Replaced by Codes (e.g., P1901C1T65#y1)
Question details
Recover image alternative text in a Word document that was unexpectedly replaced by random alphanumeric codes while stored on OneDrive.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Preparing a document with hundreds of images for accessible PDF distribution via OneDrive.
- Observed behavior
- Alternative text for images is unexpectedly replaced by synchronization codes such as P1901C1T65#y1 or P452#yIS1.
Immediately download a local copy of your affected document to your computer's hard drive to prevent any further OneDrive synchronization loops from overwriting your data.
Restore an Earlier Version from Version History
Use the built-in Version History feature in OneDrive or Microsoft Word to revert the document to a state before the alt text corruption occurred.
Because this issue is typically tied to real-time synchronization glitches between the desktop app and OneDrive, restoring a previous version is the most reliable way to recover the lost image descriptions without retyping them.
Open your document in Microsoft Word, click on 'File' in the top-left corner, select 'Info', and click on 'Version History'. Alternatively, right-click the file in your OneDrive folder online and select 'Version history'.
Browse the list of previous versions organized by date and time. Open a version saved right before you noticed the alphanumeric codes appearing.
Right-click a few images in the opened version, select 'View Alt Text', and confirm that your original descriptions are intact rather than the P1901C1T65#y1 codes.
Click the 'Restore' button at the top of the document. Once restored, go to 'File' > 'Save As' and save a copy directly to your local PC (e.g., your Desktop) to isolate it from further sync issues.

Edit Locally and Use 'Save As' to Update OneDrive
Bypass the auto-save synchronization conflict by applying alternative text strictly to a local file, then manually pushing the final file to the cloud.
Contact Microsoft 365 Administrator or Support
If the issue persists across multiple files or you cannot recover the data, escalate the synchronization bug to Microsoft Online Support.
Try WPS Office for Reliable Document Editing and PDF Export
If Microsoft Word synchronization issues continue to corrupt your alternative text, consider switching to WPS Office. It provides a highly compatible, lightweight, and free alternative that supports standard Word formats and accessible PDF exports without complex cloud sync glitches.
- 1. Download and Install WPS Office: Visit the official WPS website to download and install the free software on your device.
- 2. Open Your Document: Launch WPS Writer and open your .docx file to safely review or edit your image alternative text.
- 3. Export to PDF: Go to Menu > Export to PDF to generate your document with all image descriptions correctly preserved.

Frequently Asked Questions
Why is my Word alt text changing to random codes?
This is typically caused by a synchronization conflict or document corruption when auto-saving files with numerous images to Microsoft OneDrive. The process can glitch and replace the image metadata with internal processing or syncing codes.
Can I prevent OneDrive from corrupting my alt text?
Yes. To minimize sync-related metadata corruption, work on your document locally by temporarily disabling AutoSave or saving the file outside the OneDrive folder. Once all alternative text is added, use 'Save As' to upload the completed file back to OneDrive.
Will the corrupted alt text transfer to an exported PDF?
Yes. If the Word document displays alphanumeric codes instead of your alternative text, exporting it to a PDF will carry over these incorrect codes, which breaks accessibility compliance for screen readers.




