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
- Choose HTML, CSS or JavaScript.
- Paste code or drop files.
- 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
- SVG minifier and cleanerCut SVG file size by removing metadata, comments, hidden layers and redundant attributes.
- JSON formatter and validatorPaste JSON and get it pretty printed, minified or key sorted.
- Markdown to HTML live editorWrite on the left, see the result on the right.
- Diff checker: compare text and codePaste two versions of a document, a config file or a piece of code and see exactly what changed.