Your files

Each file stays available at its link for 48 hours and is then deleted from our server automatically. You can delete it earlier at any time.

No files yet. Files you convert appear here and stay available for 48 hours.

HTML Minifier

Make HTML smaller: comments and unnecessary white space are removed, the code works the same.

Drag and drop, or upload file
Choose file
Maximum 1 GB

Minify HTML Online

Paste HTML or upload a file and click "Minify": everything the code doesn't need — comments, indentation, line breaks — is removed, so files are smaller and pages load faster. The tool shows the size before and after.

Comments and white space between tags are removed, and inline <style> and <script> blocks are minified as CSS and JavaScript. The content of <pre>, <textarea> and <code> stays exactly as it is.

Why Use This Tool?

  • Smaller files, faster loading
  • Size before and after at a glance
  • Syntax errors shown with line and column
  • Free, no registration, works in your browser

How to Minify HTML

  1. Paste your HTML or upload a file
  2. Choose the options and click "Minify"
  3. Copy the minified code or download it

Frequently Asked Questions

Is this tool free?

Yes, it is completely free, with no registration and no limits.

Can minifying break my page?

White space between inline elements is kept as a single space, so text doesn't run together. Conditional comments for old Internet Explorer are kept too.

Is my code sent anywhere?

No. Everything runs in your browser: the code you paste or the file you choose never leaves your device.

Related tools

TOP