A little context.
Removes comments and collapses safe whitespace. Preserves preformatted text and does not minify embedded JavaScript or CSS. Output is shown as text and is never executed. Test the result before deploying it.
Try an example
<div> <span>Hello</span> </div> → compact HTMLHow to use this tool
- Enter html in the workspace above.
- Select Run tool to process your input. Invalid values produce a message next to the form.
- Copy the result or download it as a file. Reset example restores the original input.