Paste HTML and get a smaller version with comments and extra whitespace removed. The minifier is careful: a single space stays between inline elements so words don't run together, and the contents of pre, textarea, script and style are left exactly as written. You see how many bytes you saved and can copy the result or download it as a file. Everything runs in your browser.
<!--[if IE]> blocks
Smaller, but can join words split across tags like <b> and <i>
Minifying runs in your browser. What you type never leaves this device.
Removes HTML comments; keeps IE conditional comments if you want
Collapses runs of spaces, tabs and new lines
Drops whitespace next to block elements like div, p and li
Keeps one space between inline elements, so text reads the same
Tidies spaces inside tags without touching quoted attribute values
Leaves pre, textarea, script and style contents unchanged
Shows bytes before and after; copy or download
Runs in your browser: your code is never uploaded
Some email clients clip messages above a size limit; a smaller template is less likely to be cut off.
Shave bytes off hand-written pages served without a build step.
Shrink a widget or banner snippet before pasting it into a CMS field with a length limit.
Browsers ignore whitespace next to block elements, so removing it never changes the page. Between inline elements such as b, i, a and span, a space can be visible, so one space is kept. Turn on Remove all space between tags only if your layout doesn't rely on those spaces.
Most web servers also compress HTML with gzip or Brotli on the way to the browser, which saves far more than minifying. Minifying still helps for email templates, inline snippets and pages served without compression.
CSS Minifier
Minify CSS to reduce file size
JavaScript Minifier
Minify JavaScript to reduce file size
HTML Encoder/Decoder
Encode and decode HTML entities
Markdown to HTML
Convert Markdown to HTML
HTML Formatter
Beautify and indent HTML; keeps pre and script content intact
JSON Formatter
Format and validate JSON
JSON Sort Keys
Alphabetize JSON keys at every level
JSON Flatten
Nested JSON to dot-path keys
JSON Unflatten
Dot-path keys back to nested JSON
Built by Edesy
Edesy builds AI products for Indian businesses. Start self-serve, no demo call needed.
AI agents that answer and make phone calls 24/7. Handle appointments, inquiries and support in Indian and global languages.
₹50 free credit. No demo call needed.