Minify JavaScript, CSS and HTML Online

Make websites load faster by minifying code. JavaScript uses Terser, the same minifier used by most build tools; CSS and HTML are compacted safely.

loading tool

How to minify code

  1. Choose JavaScript, CSS or HTML.
  2. Paste the code and click Minify.
  3. Copy the smaller code; the saving is shown.

Good to know

  • HTML minifying keeps <pre>, <textarea> and scripts untouched.
  • Keep your original files: minified code is hard to edit.

Questions

Is my data private?

Yes. Everything happens inside your own browser: nothing you type or choose is uploaded to us or anyone else.

Is it free?

Completely free, with no sign-up, no watermark and no limit on how many times you use it. Light ads keep the site running.