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

  1. Copy the example from the opening main tag through the closing tag.
  2. Minify the fragment and open the output for comparison.
  3. 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.

Cookie
We care about your data and would love to use cookies to improve your experience.

Learn how we use cookies