JS Minifier & Beautifier

Minify JavaScript to make it lighter, or beautify it into readable formatting

도구를 불러오는 중…

🔒 Everything runs 100% in your browser. Your files and input are never uploaded to any server.

This minifies JavaScript by stripping whitespace and comments into a single line, or beautifies it by breaking each statement onto its own line with indentation. It recognizes strings, template literals, regular expressions, and comments so your code isn't broken.

How to use

  1. Paste your code or load a .js file.
  2. Choose the 'Beautify' or 'Minify' tab (specify the indentation unit for beautifying).
  3. Check the result along with the savings rate and size, and grab it with the Copy button.

FAQ

Could strings or regular expressions be handled incorrectly?
It distinguishes quoted strings, backtick templates, regex literals, and // and /* */ comments, leaving their contents untouched, so the conversion is safe.
Does it shorten variable names too?
No. This tool only does light compression at the whitespace/comment-removal level; it doesn't do identifier mangling or tree shaking.
Can I ship the minified output as-is?
Most of the time it's fine, but code that relies on ASI (omitted semicolons) loses its line breaks and can rarely behave differently. Use it as a reference and run the result to verify before deploying.

← Back to all tools

가격 보기카톡 무료 상담