Local StudioDEVELOPER TOOLS

HTML Minifier

Compact HTML source and keep meaningful whitespace intact.

  • Free
  • Works Offline
  • No Uploads
Works with:
  • Microsoft Edge
  • Google Chrome
  • Mozilla Firefox
  • Safari
HTML Minifier showing the original source, UTF-8 byte savings and the minified HTML download.
Compare source and output, review UTF-8 byte savings, then copy or download the complete HTML.

Minify a Local HTML File

  1. Open the HTML, review Security Check, then select Continue.
  2. Choose a UTF-8 HTML file, paste source, or open the sample.
  3. Select Keep all comments if your workflow depends on comments. Select Minify HTML to compact the supported syntax.
  4. Review both byte totals, then select Copy HTML or Download HTML.

Review the Edits Before Saving

  • Open a UTF-8 HTML file or paste the source.
  • Remove ordinary comments and reduce spaces inside supported tag syntax.
  • Review UTF-8 byte savings, then copy or download the complete result.

Formats and Compatibility

InputChoose a UTF-8 .html or .htm file up to 2 MiB, or paste your source.
OutputCompact HTML, exact UTF-8 byte totals and a source comparison. Download the complete result as a separate HTML file.
BrowserA modern browser with local file support.
ScopeUTF-8 HTML5 documents and fragments up to 2 MiB and within the parser’s structural budget. Preserves raw text, preformatted blocks, templates, foreign markup and recognized notices. The workbench handles source as text.
Operating Systems
  • Windows
  • macOS
  • Linux
  • ChromeOS

Local Processing Without Uploads

The local minify HTML workflow is browser-based with no upload. Source is handled as text on your device.

Select Open Sample to see the workflow with the included example.

HTML5 Source

Inline spacing, text, attribute values, recognized notices, raw text and template blocks are preserved. Inline CSS and JavaScript are carried through unchanged.

Save the Complete HTML

Copy the full output or use Download HTML to save a separate UTF-8 file.

Frequently Asked Questions

Can I minify HTML offline?

Yes. Extract the Tool ZIP and open HTMLMinifier.html in a supported browser.

Can I minify HTML online?

Yes. Open the free minify HTML tool in your browser. File reading and processing happen locally.

Can I minify HTML without uploading files?

Yes. The minify HTML browser tool reads selected source locally and displays it as text. It does not run scripts or load resources from the source.

How can I minify HTML in browser mode?

Open or paste UTF-8 HTML, choose your comment setting, then select Minify HTML.

Where is the minify HTML download?

Download Tool ZIP saves the offline workbench. Download HTML inside the workbench saves the complete output.

Which comments are preserved?

Recognized notice, license, conditional and directive comments are retained, along with comments inside protected blocks. Use Keep all comments for custom markers.

What happens to formatting and templates?

The tool compacts supported spacing inside tags and preserves text, raw content and native HTML template blocks. Detected server-side or expression template syntax can leave the source unchanged.

Does this tool work offline on Windows, macOS, Linux, and ChromeOS?

Yes. Local Studio tools run offline on Windows, macOS, Linux, and ChromeOS. Download the tool ZIP, extract it, and open the included HTML file in a supported browser. Your files are processed on your device without uploads.

Which browsers can I use with this offline tool?

Use a current version of Google Chrome, Microsoft Edge, Mozilla Firefox, or Safari where that browser is available for your operating system. Chrome is built into ChromeOS, and Safari is available on macOS.