JSON Formatter
Format, minify and validate JSON with clear error positions.
Shrink HTML, CSS and JavaScript by removing whitespace, comments and extra bytes.
Your files stay on your device
Everything runs in your browser. What you paste is never sent to a server. Unreleased code stays on your device.
Minifiers are designed to keep behaviour the same, but test the result. Code that depends on function names, relies on eval, or has syntax errors can break. Keep your original file.
JavaScript is parsed before it is shrunk, so errors such as a missing bracket stop the tool and show the line. CSS and HTML are more forgiving and are often minified as written.
It depends on how much whitespace and how many comments you have. Hand-written files often shrink by 20 to 60 percent. Turning on gzip or Brotli on your server saves more on top.
Yes. Current syntax such as arrow functions, classes, async functions and optional chaining is supported. It does not convert code to older syntax.
No. This tool outputs only the minified code. Use your build tool when you need source maps for debugging.