• ARTICLE
  • STRING
  • CONVERTER
  • ENCRYPT
  • NETWORK
  • MORE
    CHART
    MATH
    COORDINATE
    IMAGE
    FILE
  • ARTICLE
    STRING
    CONVERTER
    ENCRYPT
    NETWORK
    MORE
    CHART
    MATH
    COORDINATE
    IMAGE
    FILE
logo Online Tools
0 Comments Favorite Copy Link Share

JS Beautify and Minify


Input

Output

Before : 1KB , After : 0.5KB , Saving : 50%
JS Beautify and Minify-summary

JS beautify tools and minify tools online provide one click JS beautification function and one click JS minimization function.

JS Beautify and Minify-instructions
  1. Open : Open the local JS(JavaScript) file, and the supported file encoding is UTF-8.
  2. Beautify : Beautify / Format the input JS(JavaScript).
  3. Minify : Compress the input JS(JavaScript).
  4. Download : Download the output JS(JavaScript) locally. The file name is handled.js. The file encoding is UTF-8.
  5. Related tools : Javascript Obfuscator Online.
  6. JS Minify Features :
    1. remove superfluous whitespace.
    2. remove superfluous semicolons.
    3. horten true, false, and undefined to !0, !1 and void 0.
    4. move var declarations to the top of the global/function scope (if more than one).
    5. collapse if/else statements to expressions.
    6. minify conditional expressions to simpler ones.
    7. merge sequential expression statements to one, including into return and throw.
    8. remove superfluous grouping in expressions.
    9. shorten or remove string escapes.
    10. convert object key or index expression from string to identifier or decimal.
    11. merge concatenated strings.
    12. rewrite numbers (binary, octal, decimal, hexadecimal) to shorter representations.