PasteZap
🌐 English
Free · No account

FREE · DEVELOPER TOOLS

HTML Minifier.

Minify HTML conservatively while preserving inline CSS and JavaScript source.

Limits & supported formats

Inline code is never executed or minified. Whitespace changes can affect inline layouts; review the result.

LOCAL PROCESSING · NO ACCOUNT
55 characters

Inline code is never executed or minified. Whitespace changes can affect inline layouts; review the result.

How to use HTML Minifier

Paste source text, adjust the available settings and generate. Review the output before integrating it into a project.

How it works

Minify HTML conservatively while preserving inline CSS and JavaScript source. Inline code is never executed or minified. Whitespace changes can affect inline layouts; review the result. Source is processed locally; generated code is not executed.

Example

Generate the included sample to inspect the output.

Questions about HTML Minifier

Is HTML Minifier free, and do I need an account?

Yes. This tool is free to use in your browser without an account. Processing takes place on your device.

What are the limits and what should I check?

Inline code is never executed or minified. Whitespace changes can affect inline layouts; review the result. Review the result before using it in your work.

Is my input sent to a server?

Your input is processed in your browser and is not uploaded by this tool. Files and pasted text are cleared when the page is refreshed. Normal website requests are still required to load the page and its libraries. Read the privacy explanation.