All tools on JSFormat
Everything on this site runs 100% in your browser. No uploads, no accounts, nothing sent anywhere.
JSFormat (main tool)
Free, 100% client-side JavaScript beautifier built on a tokenizer, not regex. Clean indentation without breaking strings, templates, regex literals or automatic semicolon insertion. Also strips comments and finds ASI traps.
ASI Hazard Checker (missing-semicolon traps)
Find the places where leaving out a semicolon changes what JavaScript does: a line starting with ( [ ` + - or /, and a return followed by a line break. Uses a real tokenizer, so strings and comments are ignored. Runs in your browser.
JavaScript Comment Stripper
Remove comments from JavaScript without touching strings, template literals or regex literals that contain // or /*. Optionally keep /*! licence comments. The result is verified to have identical code tokens. Runs in your browser.
Looking for explanations rather than a tool? JSFormat guides cover 2 worked examples and gotchas.
Developer Sponsor / Partner