JSTool is the best for stability.

Steps:

  1. Select menu Plugins>Plugin Manager>Show Plugin Manager
  2. Check to JSTool checkbox > Install > Restart Notepad++
  3. Open js file > Plugins > JSTool > JSFormat

Reference:

  • Homepage: http://www.sunjw.us/jstoolnpp/
  • Source code: http://sourceforge.net/projects/jsminnpp/
Answer from Quang Vinh on Stack Overflow
🌐
Sunjw
sunjw.us › jstool › npp
JSTool - A JavaScript tool for Notepad++
A JavaScript tool for Notepad++. Douglas Crockford's JSMin algorithm to minimize JavaScript code. My own algorithm to format JavaScript code.
🌐
GitHub
github.com › tomFlidr › Notepad-HTML-JS-Formater-Plugin
GitHub - tomFlidr/Notepad-HTML-JS-Formater-Plugin: Notepad++ HTML JS Formater (deobfuscator) Plugin for jN Plugin (JScript plugin, originaly: 'npp scripting') · GitHub
Notepad++ HTML/JS Formater Plugin for jN Plugin (JScript plugin, originaly 'npp scripting') Proudly based on sources from http://jsbeautifier.org/ Instal plugin jN (Notepad++ Javascript Scripting · for Notepad++ v7.x and newer - install plugin via Notepad++ plugins manager ·
Starred by 19 users
Forked by 13 users
Languages   JavaScript
🌐
Esri Community
community.esri.com › t5 › web-appbuilder-custom-widgets-questions › editing-js-files-in-notepad › td-p › 814398
Solved: editing js files in notepad++ - Esri Community
August 6, 2015 - Install the plugin, then select all the text and click on "JSON Viewer", then "Format JSON". ... There are several web sites that you can copy the code to and it will beautify your code and then past it back into your files. Try this one http://codebeautify.org/ ... This is what I use for Notepad++: JSTool plugin - specifically the JSFormat function from the plugin.
🌐
SourceForge
sourceforge.net › projects › jsminnpp
JSToolNpp download | SourceForge.net
A JavaScript (JSON) tool for Notepad++ (formerly JSMinNpp) and Visual Studio Code. * Douglas Crockford's JSMin algorithm to minimize JavaScript code. * My own algorithm to format JavaScript code. * A JSON tree viewer. The JSON tree viewer for Notepad++ can handle >10MB JSON file easily.
Rating: 4.9 ​ - ​ 14 votes
🌐
Notepad++ Community
community.notepad-plus-plus.org › topic › 17267 › auto-indentation-in-javascript-file
auto-indentation in javascript file | Notepad++ Community
March 11, 2019 - after installing jstool, open up any unformatted .js file in notepad++ and go to plugins > jstool > jsformat · here is a larger unformatted .js file (jquery compressed), if you need something to test on: https://code.jquery.com/jquery-3.3.1.min.js ...
🌐
SourceForge
jsminnpp.sourceforge.net
JSTool - A JavaScript tool for Visual Studio Code
Open you JavaScript source code file in Notepad++. Using the "Format JavaScript (JSON)" command in the Command Palette.
Find elsewhere
🌐
Notepad++ Community
community.notepad-plus-plus.org › topic › 25093 › formatting-js-file
Formatting js file | Notepad++ Community
November 1, 2023 - I have have some .js files that open formatted and others that open as one long line. How can I get the one long line formatted so I can read it? ... Notepad++ doesn’t have a native re-format for JSON (or anything else).
🌐
Notepad++ Community
community.notepad-plus-plus.org › topic › 26436 › is-there-any-plug-in-that-can-format-html-javascript-css-at-the-same-time
Is there any plug-in that can format HTML + JAVASCRIPT + CSS at the same time? | Notepad++ Community
December 8, 2024 - @Freya-Smith Probably not. There is at least one plugin (XMLTools) that can format XML (and thus HTML), but that plugin does not understand CSS or JavaScript.
🌐
YouTube
youtube.com › watch
How to prettify/beautify javascript in notepad++ - YouTube
This video show you how to format/beautify/prettify javascript in notepad++.Music: bensound.com
Published   January 15, 2020
🌐
Scientech Easy
scientecheasy.com › home › blog › how to write javascript in notepad++ without ide
How to Write JavaScript in Notepad++ without IDE - Scientech Easy
July 30, 2025 - Step 1: In your computer system, to open Notepad++, just click on the Start button and then click on Notepad++ if the shortcut icon for Notepad++ is not on the desktop. Now write the following code snippet in the document. <DOCTYPE html> <html> <head> <title>How to write the first Javascript Program in Notepad++ editor</title> </head> <body> <script> document.write("This is my first Javascript Program in Notepad++"); </script> </body> </html>
🌐
Reddit
reddit.com › r/node › notepad++ node linter/formatter
r/node on Reddit: notepad++ node linter/formatter
December 30, 2022 -

I'm working on a small node project so I am just using notepad++ since it is light weight.

It has JSTool's formatter but it adds extra indents sometimes.

    request.on('end', function () {
        let url_params = new URLSearchParams(body)
            if (url_params.get('add')) {
                break;
            }
    })

why ident the if block after 'let'?

Doing some research, I've tried "linter" but I have not been able to figure out how to configure it properly. For example, it wants to point to 'eslint.cmd' which I cant find. I found one called "jN" but it totally messed up all of my code. I found another plugin called "JSLint" but it is not listed for notepad++ and I have not had any success trying to manually install it. Most questions/answers that I read about this are 5-10yrs old so maybe they are just outdated.

🌐
GitHub
github.com › sunjw › jstoolnpp
GitHub - sunjw/jstoolnpp: A JavaScript (JSON) tool for Notepad++ (formerly JSMinNpp) and Visual Studio Code. · GitHub
Really helpful to JavaScript coder on Notepad++ and Visual Studio Code. Easy to use it. Made in China. Project site: http://www.sunjw.us/jstool · JavaScript minify. JavaScript/JSON format.
Starred by 306 users
Forked by 28 users
Languages   JavaScript 98.8% | C++ 0.7% | C 0.3% | PHP 0.1% | Python 0.1% | CSS 0.0%
🌐
Reddit
reddit.com › r/node › code format using node prettier in notepad++
r/node on Reddit: Code Format Using Node Prettier in Notepad++
September 11, 2020 - Notepad++ is a great lightweight code editor for small projects. BeFoREProRedditer · • 5y ago · For if you’re a hipster More replies · Is Nodejs that old ? r/node • · r/node · Unofficial Node.js subreddit. Discuss Node.js, JavaScript, TypeScript, and anything else in the Node.js ecosystem!
🌐
Codecademy
codecademy.com › forum_questions › 5041608a7c9f060002000a47
Notepad++ and Javascript | Codecademy
I don’t believe there is anyway to “run” javascript in Notepad++. Use something like http://jsbin.com/
🌐
Sololearn
sololearn.com › en › Discuss › 1337699 › how-can-we-type-javascript-in-notepad
How can we type javascript in notepad | Sololearn: Learn to code for FREE!
<!DOCTYPE HTML> <html> <head> <script type="text/javascript"> //Your javascript code goes here </script> </head> <body> </body> </head> ... Yeah you can use notepad as an editor. But there are much better alternatives.
🌐
Programmersought
programmersought.com › article › 99654753840
How to format JS code in Notepad++ - Programmer Sought
Notepad++ itself does not have a shortcut command to format JavaScript code. You need to install an extension plug-in to achieve the function of quickly formatting JS code.