JavaScript formatter and minifier

Format or minify JavaScript source without running the program.

Processed on your device

Input

Open a local UTF-8 text file5 MiB maximum. The file opens in the text box above.Or drop a file here.

Options

Options

How to use this tool

  1. Format or minify JavaScript source without running the program.
  2. Adjust the labelled settings, then run the tool. Copy the result or download it as a file.

Things to know

  • Processing is local. Supplied code and network requests are never executed. Input and text settings are limited to 5 MiB combined; text settings alone are limited to 1 MiB.
  • Accepts JavaScript syntax. Minification does not execute the program.
  • Source: 2 MiB, 100,000 lexical tokens, 96 nesting levels and at most 96 template interpolations. Output must fit 25 MiB. Formatting/minification never executes supplied JavaScript.

You might also need

More in web development