JavaScript formatter

Format or minify JavaScript source locally without executing it.

Format or minify JavaScript source locally without executing it.

  • AbsolTools makes the tools you use often more accurate and convenient.
  • Every tool is free with no sign-up. Work happens in your browser, and inputs and results are not stored on or sent to a server.
  • Bookmark this site so you can come straight back next time.
Ready
Options
Preferred line length before the formatter wraps suitable code. It is a formatting target, not a hard character limit.
Adds semicolons where the formatter’s JavaScript rules allow them. It does not change every statement ending.
Prefers single-quoted strings when they require no extra escaping; otherwise keeps the safer quote style.

Formats or minifies source without executing it. Minify removes formatting and, unless preserved, comments; it does not run compression transforms or rename identifiers. Equivalent behavior is not guaranteed.

How to use JavaScript formatter

Choose Format for readable source or Minify to remove optional whitespace and comments without compression transforms or identifier mangling. Review transformed code before deployment.

Private, local processing

Your input and results are not uploaded or stored. They remain in this browser tab.

Frequently asked questions

What does JavaScript formatter do?

Format or minify JavaScript source locally without executing it.

Is my data uploaded?

Your input and results are not uploaded or stored. They remain in this browser tab.

What should I check when using JavaScript formatter?

Choose Format for readable source or Minify to remove optional whitespace and comments without compression transforms or identifier mangling. Review transformed code before deployment.