Sunday, October 25, 2026 4,350 lists 78,100 records on file
List your app or device

  1. Home
  2. Code Formatting Tools
  3. js-beautify

js-beautify

What it is

js-beautify reformats and re-indents JavaScript, including bookmarklets and packed scripts. Its JavaScript version also formats JSON, HTML, CSS, SCSS and SASS. It can be used in a browser or from the command line with Node.js or Python. The web interface offers controls for indentation, line wrapping, chained methods, JSX syntax and HTML attributes. The JavaScript library provides beautifiers for JavaScript, CSS and HTML, while the Python version reformats JavaScript only. Users can configure it with command-line flags, library options or JavaScript configuration files such as .jsbeautifyrc. The project lists integrations and plugins for Visual Studio Code, Sublime Text, Vim and Emacs, and documents embedding the web library using scripts hosted on cdnjs and rawgit. Its source is free and open under the MIT licence, with no listed usage limits. The website credits Einar Lielmanis as creator and Liam Newman as maintainer. The README notes that the existing owners have limited time and that contributors are needed to address bugs and implementation issues. Its free CDN services have no uptime or support guarantees.

For and against

For

  • Formats JavaScript, JSON, HTML, CSS, SCSS and SASS.
  • Available in a browser, Node.js and Python.
  • Offers command-line and library configuration options.
  • Editor integrations include Visual Studio Code and Vim.
  • Free and open under the MIT licence.

Against

  • The Python version reformats JavaScript only.
  • Free CDN services have no uptime or support guarantees.
  • The project says contributors are needed for bugs and implementation issues.

The verdict

js-beautify offers several ways to format supported code, with browser and command-line use, a library and editor integrations. Note the Python feature limit and the stated support and maintenance caveats.

Who it suits

js-beautify may suit developers who want to format supported code in a browser or from a command line. Its library, configuration options and editor integrations also serve users incorporating formatting into tools or workflows.

Plans and prices

Free

Free

Source code is free and open under the MIT licence · no listed usage limits

Every plan, in full

On the record

Configuration
Options can be set through CLI flags, library options, and JavaScript configuration files such as .jsbeautifyrc.github.com · read 5 Oct 2026
Editor support
The project page lists related integrations and plugins for editors including Visual Studio Code, Sublime Text, Vim, and Emacs.beautifier.io · read 5 Oct 2026
Integrations
The README documents embedding the web library using scripts hosted on cdnjs and rawgit.github.com · read 5 Oct 2026
Languages
The JavaScript version formats JavaScript, JSON, HTML, CSS, SCSS, and SASS.beautifier.io · read 5 Oct 2026
Library use
The JavaScript library exposes beautifiers for JavaScript, CSS, and HTML, while the Python version only reformats JavaScript.github.com · read 5 Oct 2026
Maker
The website credits Einar Lielmanis as creator and Liam Newman as maintainer.beautifier.io · read 5 Oct 2026
Open source
The source code is free and open under the MIT licence, with the repository README requiring retention of the copyright notice and license.beautifier.io · read 5 Oct 2026
Project status
The README says the existing owners have limited time and that the project needs contributors to address bugs and implementation issues.github.com · read 5 Oct 2026
Purpose
js-beautify reformats and re-indents JavaScript, including bookmarklets and packed scripts.github.com · read 5 Oct 2026
Python limitation
The Python version does not reformat HTML or CSS, and the project no longer supports Python 2.github.com · read 5 Oct 2026
Security
The opened project pages provide no security or compliance certification details.github.com · read 5 Oct 2026
Support limits
The README says its free CDN services have no uptime or support guarantees.github.com · read 5 Oct 2026
Ways to use
The project can be used in a browser or from the command line with Node.js or Python.github.com · read 5 Oct 2026
Web app options
The web interface offers formatting controls for indentation, line wrapping, chained methods, JSX syntax, and HTML attributes.beautifier.io · read 5 Oct 2026

Alternatives to js-beautify

Every alternative, ranked