How to Change Incorrect .JSON File Extensions Back to XML or JPG
Question details
The user needs to revert files that have had their extensions incorrectly changed to .json back to their original formats, such as .xml or .jpg.

- Product
- Windows File Explorer
- Device & OS
- Windows
- Scenario
- Files have been accidentally renamed with a .json extension (e.g., .jpg.json) due to a program or file-association issue, and the original extension must be restored.
- Observed behavior
- Files display a .json extension instead of their correct format extensions, making them open in unintended applications or causing compatibility errors.
Always create a backup copy of your files before modifying their extensions to prevent accidental data loss or corruption.
Enable File Name Extensions and Rename Manually
The most direct way to fix incorrectly appended .json extensions is to reveal file extensions in Windows and manually rename them to their true format.
Renaming a file extension does not actually convert the file's internal data format. It merely tells the operating system which application to use when opening it. If a file was originally an XML or JPG but had .json appended to it, renaming it back will restore its normal function.
Open File Explorer in Windows. Go to the 'View' tab at the top of the window and check the box for 'File name extensions' so that the full extensions (like .jpg.json) become visible.
Right-click the affected file and select 'Rename' from the context menu, or select the file and press F2 on your keyboard.
Carefully delete the '.json' portion of the file name so it ends with its correct original extension (e.g., .xml or .jpg), then press Enter.
Click 'Yes' on the warning prompt that asks 'If you change a file name extension, the file might become unusable. Are you sure you want to change it?'

Open and Manage Your Documents with WPS Office
While file extensions must be managed through your operating system, WPS Office offers a free, lightweight, and easy-to-use alternative to Microsoft Office. It features a familiar UI, seamless migration, and ensures your documents open correctly every time.
- 1. Download WPS Office: Visit the official WPS website to download the free, lightweight installer.
- 2. Install the Software: Run the installer and follow the quick on-screen instructions to set up WPS Office on your device.
- 3. Open Your Files Seamlessly: Double-click your successfully renamed XML or Office documents to view and edit them instantly in WPS Office.

Frequently Asked Questions
Why did my files suddenly get a .json extension?
This typically occurs due to a third-party application bug, an incorrect download process, or a file-association error in your operating system that wrongly appends the .json format to your existing files.
Does renaming a file extension convert the file format?
No, renaming a file extension only changes how the operating system identifies the file and which program it attempts to use to open it. It does not alter the underlying data or code of the file.
What should I do if my file still won't open after renaming it?
If the file doesn't open after restoring the original extension, the file might be corrupted or the contents may genuinely be JSON data. In this case, try opening the file with a plain text editor like Notepad to inspect its contents and verify its true format.




