Apply conservative source-preserving HTML compression with explicit safe and advanced settings.
LOCAL FILE CONVERSION
Apply conservative source-preserving HTML compression with explicit safe and advanced settings.
Drop one UTF-8 source file · Up to 200 KB · No uploadLOCAL INPUT
4 lines · 65 characters · 65 bytes
COMPUTED RESULT
0 output bytes ·
Safe mode only collapses newline-containing indentation-only text to one space. Ordinary inline spaces and raw-content subtrees are retained. External CSS white-space rules cannot be inferred. Templates skip whitespace/attribute optimization. Comment removal and advanced boolean-attribute/whitespace changes are optional; review semantics in your application. This is conservative compression, not a full optimizing HTML minifier.
Processing uses your browser memory. Inputs are not included in page analytics. Text tools accept up to 200,000 UTF-8 bytes unless a tighter limit is stated. Worker operations time out after 45 seconds and can be cancelled. Clipboard and downloads require an explicit action.
Enter your values locally; no inputs are uploaded.
Check validation feedback before reviewing the browser-generated result.
Review the explanation, copy supported outputs or reset the workspace.
Safe mode collapses newline-containing indentation-only text nodes to one space. It retains ordinary inline spaces, original source spelling, attribute quotes and raw-content subtrees. It is intentionally conservative.
Safe mode only collapses newline-containing indentation-only text to one space. Ordinary inline spaces and raw-content subtrees are retained. External CSS white-space rules cannot be inferred. Templates skip whitespace/attribute optimization. Comment removal and advanced boolean-attribute/whitespace changes are optional; review semantics in your application. This is conservative compression, not a full optimizing HTML minifier.
Processing takes place locally in browser memory. Inputs are not sent to a processing service, persisted by this tool or included in analytics. Ordinary page requests may still be logged. Clipboard and downloads require explicit actions.
Safe mode collapses newline-containing indentation-only text nodes to one space. It retains ordinary inline spaces, original source spelling, attribute quotes and raw-content subtrees. It is intentionally conservative.
Protected script, style, pre, textarea, code and other raw-content subtrees are left untouched. This tool does not run embedded JavaScript/CSS minifiers. External CSS white-space rules cannot be inferred.
No. Ordinary comment removal is opt-in. Recognized conditional, license and common framework markers, along with comments inside protected subtrees, remain. Unrecognized application-specific markers require manual review.
Recognized template/application delimiters disable whitespace and attribute optimizations for that input. Expressions are not parsed or rewritten. Review source in the actual framework because detection is heuristic.
Advanced mode can collapse all eligible HTML whitespace and optionally remove redundant boolean-attribute values. CSS white-space behavior, DOM attribute inspection or application logic may depend on the original source.
Savings compare actual UTF-8 input and output byte counts. The percentage is saved bytes divided by original bytes. Parser errors stop minification instead of silently relying on repaired serialization.