ZYBERMART

Install ZYBERMART

Open every tool from your home screen or dock, in its own window. Tools you've used also work offline.

Code Minifier

Minify JavaScript, CSS and HTML to make files smaller and pages faster, and see how much you save.

How to minify code

  1. Pick JavaScript, CSS or HTML, and paste your code.
  2. Choose Minify. You’ll see how much smaller it got.
  3. Copy the result, or download it as a file.

Making a site faster? Shrink your pictures with Compress image, and check your share previews with the Open Graph checker.

Frequently asked questions

What does minifying do?

It removes what browsers don't need, like spaces, line breaks and comments, and (for JavaScript) shortens local variable names. The code works the same but downloads faster.

Is it safe for my code?

JavaScript is minified with Terser, the minifier used by most build tools. CSS and HTML minifying only removes comments and extra spaces, and leaves text in strings, <pre> and <textarea> exactly as it is. Keep your original files: minified code is hard to edit.

Which JavaScript does it support?

Modern JavaScript (ES2023), including modules, classes, async functions and optional chaining. It doesn't transform TypeScript or JSX; compile those first.

Is my code uploaded?

No. Everything is minified in your browser.

Sign in to ZYBERMART

Keep your CVs, invoices, flashcards, notes and saved tools on all your devices. It's free, and the tools work the same without an account.

or

No password needed. By signing in you agree to the terms; see how we handle your data in the privacy policy.

Your account

Signing out keeps a copy of your work in this browser. On a shared computer, clear your browser data afterwards.

What do you want to create?

Designs

Social media

Documents

Study

Edit

See all 241 tools