HTML Minifier
Prepare a short HTML fragment for delivery while keeping its content intact.
Prepare a short HTML fragment for delivery while keeping its content intact.
How to use
- Copy the example from the opening main tag through the closing tag.
- Minify the fragment and open the output for comparison.
- Render the original and compact fragments under the same page styles.
Worked example
Input
<main>
<p>Tea</p>
<p>Coffee</p>
</main>Expected result
<main><p>Tea</p><p>Coffee</p></main>Check the result
Tea and Coffee should still appear as two paragraphs, even though the markup is one line.