Initializing, please wait a moment

Paste or upload the input; minified output renders to the right.

Input: bytes
Output: bytes

HTML Minifier Online


Strip whitespace and comments from a HTML block to shrink it before you paste it into a page, an email template, or a build step.

What it does

  • Strips whitespace and comments from a HTML block.
  • Renders the minified output to the right as you paste or upload the input.
  • Preserves the original line layout in the source pane so you can diff the before and after.

Privacy and processing

Minification runs locally in your browser; nothing is uploaded. The HTML you paste stays on your device from start to finish.

Going the other way

To expand an already-minified block back into readable, indented HTML, use the beautifier linked in the related-tools section below.

← Back to Developer Tools

Related tools:

  • MD5 converter - Text to MD5 + MD5 to text cached lookup.
  • Convert PDF to TEXT online - Extract text from PDF online for copying and editing.
  • Text To HTML Editor - Text to HTML editor online - write in a WYSIWYG view and watch the generated HTML update live, with
  • CSS Gradient Animator Generator - CSS gradient generator - build animated linear gradients with live preview; copy ready-to-paste CSS
  • CSS Minifier - Minify CSS online for faster page loads.
  • CSS UnMinifier - CSS unminifier online - beautify minified CSS with proper indentation, line breaks, and readable
  • JavaScript Minifier - JavaScript minifier online free - paste your JS, click Minify, and copy the compressed code.
  • JSON Parser By Tree View - Paste JSON to validate, format, and view it in a tree.
  • JavaScript UnMinifier - JavaScript unminifier online - reformat minified JS with indentation and line breaks for
  • Keyboard Test - Press each key - the on-screen layout highlights it.
  • Text Diff - Compare code, text, or HTML online, side by side.
  • Developer Tools - Developer tools to parse JSON, minify or unminify CSS/JS, compare text, and generate MD5 hashes.

Tags: #developer

Related guides:

Loading reviews...

Frequently Asked Questions

What does HTML Minifier Online do?

Strip whitespace and comments from a html block.

When should I reach for html minifier online?

Original line layout is preserved in the source pane for diffing.

What complementary tools work well alongside html minifier online?

For unminification of an already-minified block, see the related-tools section.