DEV Community

Cover image for How to Beautify Javascript Code?
GoOnlineTools
GoOnlineTools

Posted on

How to Beautify Javascript Code?

Are you writing Javascript Code? If yes then this article is helpful for you because in this article I will show you how to beautify ugly, minified Javascript code.

Most of the People like good looking codes including me because if code is written in a proper manner it is easy to understand.

Today in this article I will introduce Javascript Formatter

javascript formatter

Here is How to Beautify Javascript Code?

  1. First Open Javascript Formatter
  2. Click on Clear Button to Clear Demo Code
  3. Paste Minified Javascript Code
  4. Click on Format Button
  5. Now Press Copy Button to Copy Formatted Javascript Code

Thanks for reading this article, If you have any questions regarding this then feel free to ask in the comment box.

Top comments (2)

Collapse
 
nerdharder615 profile image
Matt

Why not just use Standard JS? (standardjs.com/)

There are plugins for numerous IDE's and you don't have to worry about pasting your code in to a website, everything you need will be installed to your machine so you don't have to worry about having an internet connection to beautify your code.

Collapse
 
goonlinetools profile image
GoOnlineTools

Yes you are right but in some case, we need to do it manually, and I mentioned a tool that is working offline if that page opened previously on browser