HTML Formatter & Minifier
WorkingFormat readable HTML or create a conservative minified copy locally. Free, no upload or signup. Markup is parsed, never executed; minification is not sanitization.
Format readable HTML or create a conservative minified copy locally. Free, no upload or signup. Markup is parsed, never executed; minification is not sanitization.
HTML Formatter & Minifier
WorkingThis tool is working for the representative inputs recorded in its tests. Processing happens locally; different files, settings and browsers can still have limits.
Choose a file to preview
Formatting uses two-space indentation; minification conservatively compacts markup.
Choose readable two-space formatting or conservative whitespace minification. Comments and meaningful raw-text whitespace are retained.
Validated locally: file type, size and browser support are checked before anything runs
Preparing your file
Reading the file locally and checking that its type and size match what this tool expects. Nothing has been uploaded.
Processing HTML markup
HTML, CSV, XML, and YAML parsing and conversion run locally in the browser.
You can leave this tab open in the background — the conversion keeps running on your device, and progress is reported when you come back.
Conversion complete
Your converted file is ready to download.
Choose a file to preview
Run the tool to preview its result
The converted file was assembled in your browser and is released when you leave or reset this page
Something went wrong
The conversion could not be completed. Nothing was uploaded, and no partial file was saved.
This file or browser is not supported
The engine could not process this file in this browser. Nothing was converted or uploaded. Check this tool's limits and try a supported input.
HTML Formatter & Minifier provides two operations in one workspace. Format uses a standards-aware HTML parser and readable two-space layout so nested elements are easier to inspect. Minify removes formatting-only space while preserving comments and whitespace-sensitive content in elements such as pre, script, style, textarea and xmp. Choose the operation before processing; changing it clears an older result so the download always matches the visible selection.
HTML parsing is tolerant and can normalize markup the way a browser would, so this is not a byte-preserving rewrite or a strict conformance validator. The page treats selected files as text and never inserts the submitted HTML into the live document for execution. Scripts remain text in the output, however, and can run later if another application embeds that output. Keep the original, compare meaningful text spacing, and apply a dedicated sanitizer when untrusted markup will be published.
Formatting and minification can normalize tag casing, optional structure, quoting and whitespace representation. Neither operation proves that markup is accessible, valid for a framework or semantically unchanged in every unusual document.
Minification is not security filtering. Scripts, event attributes and external references are preserved as markup rather than executed here; review or sanitize them before using the result in a website.
Use the supported inputs and settings described below.
Choose one supported HTML or HTM file and retain the source for comparison.
Select Format for readable indentation or Minify for conservative delivery markup. There is no script execution or visual page preview in this workspace.
Run the selected operation. Parser or processing failures are reported instead of returned as an unrelated successful file.
Download, copy and compare meaningful text, preformatted blocks, scripts and styles in the application that will consume the markup.
Answers about this specific workflow, not a promise for every file.
No. The selected file is parsed and serialized as text. A script can still execute later if you deliberately embed the downloaded markup in a browser page.
The minifier preserves whitespace-sensitive elements and normalizes ordinary text conservatively, but unusual templates should still be tested in their real rendering environment.
No. Minification changes representation, not trust. Use a policy-based HTML sanitizer and content-security controls for untrusted markup.
The HTML parser can normalize a document according to browser-style parsing rules. Keep the source when exact authoring syntax or byte representation matters.
Choose the operation before running the local transformer.
Same source format, reverse conversions and relevant alternatives.
Documents
Convert local UTF-8 HTML to a searchable vector PDF with headings, styles, lists, tables, links, embedded images and page controls. No upload or signup.
Documents
Convert supported local HTML into an editable DOCX with headings, lists, tables, safe links, data images and page controls. No upload; arbitrary CSS and remote resources are omitted.
Text & Encoding
Compare two UTF-8 text files locally and download a line-based JSON diff report. Free, no signup or file upload. Not a binary checksum or full document-layout comparison.
Text & Encoding
Sort or deduplicate lines, remove breaks, convert LF/CRLF/CR and change supported text encodings locally. Free, no upload. Review lossy transforms and warnings.
Text & Encoding
Convert timestamp/date lines locally using direction, seconds or milliseconds and a timezone. Free, no signup or upload. Unreadable lines can remain unchanged; inspect output.
Text & Encoding
Percent-encode or decode URL components, full URLs and form data locally with UTF-8 support. Invalid percent escapes are reported. Free, no upload or signup.