

Or you can just install "JSTool" from Plugin Manager in Notepad++. Using the 'JSON Sort' command in the Command Palette. Sort JSON data alphabetically: Open you JSON data file in Visual Studio Code. Using the 'Format JavaScript (JSON)' command in the Command Palette. Select source code lines which you want to format. My answer is simply here for posterity.Īs of Notepad++ v7.6, use Plugin Admin to install JSTool per this answerĭownload it from and copy JSMinNpp.dll to plugin directory of Notepad++. Open you JavaScript source code file in Notepad++. Select all text in Notepad++ (CTRL+A) and format using Plugins -> JSTool -> JSFormat. Given the above, this answer is no longer relevant and you should use Dan H's answer instead. Paste a sample unformatted but valid JSON data in Notepad++. Also, please be aware that the JSON Viewer tool is on Codeplex which will likely disappear in the near future. This works well for me in the latest version (v6.1.2 at time of writing).Īs per comment below, JSMin is now JSToolNpp. I advise that you download the JSMin plugin for Notepad as mentioned in the answer. I personally use JSON Viewer since the Notepad++ plugin doesn't work any more. We can install any Notepad++ supported plugins using Plugins Admin.

Then navigate to Plugins > JSON Viewer > Format JSON (or press Ctrl + Alt + Shift + J ). Go to Plugins > JSON Viewer > Format JSON ( Ctrl + Alt + Shift + M ) Once the JSON Viewer is installed, your Notepad++ should restart automatically. To open another app from the menu, right-click on the JSON file and choose Open. Notepad Notepad supports all versions of Windows 10 as well as older Windows operating systems, allowing users to access JSON files.

For Notepad++ v.7.6 and above Plugins Admin. Now that you have restarted Notepad, you can format json as CTRL, ALT, M, or P, and choose the option to use the CTRL, ALT, and M shortcut.
