Tooloat

Minify and beautify HTML, CSS and JavaScript

Shrink code for production or make minified code readable again. JavaScript is minified with Terser, CSS with csso and HTML with html-minifier, and each has a matching beautifier. Paste code or process many files at once and download a ZIP.

Tooloat runs in your browser and needs JavaScript. It opens in a moment, and your files are processed on your device.

How it works

  1. Choose HTML, CSS or JavaScript.
  2. Paste code or drop files.
  3. Minify or beautify, then copy or download.

Why use it

  • Terser, csso and html-minifier engines.
  • Beautify with configurable indentation.
  • Batch files with a ZIP download.
  • Size savings shown for each result.

Questions and answers

Is minified JavaScript safe?

Terser preserves behavior. Test your bundle as usual, especially if you rely on function names.

Can I make minified code readable?

Yes, use Beautify. Variable names that were shortened cannot be restored.

Is my code uploaded?

No. The minifiers run in your browser.

Related tools