HtmlDrag
HtmlDrag
Developer Micro Utilities·CLIENT PARSED

HTML Cleaner & Formatter

Tidy Office markup, comments and inline styles with selectable HTML cleanup rules. Compare the output, preview the result and copy the code for your next task.

Free to use · No sign-up

Cleanup Rules:
Samples:
RAW DIRTY HTML815 B
PROCESSED HTML-27.4%
592 B

<div style="line-height:normal;font-family:'Calibri',sans-serif;color:#000000;">
  <span style="font-size:16.0pt;font-family:'Segoe UI',sans-serif;color:#0f172a;font-weight:bold;">
    Technical Overview: Enterprise Cluster Architecture
  </span>
  <p style="margin-bottom:0cm;line-height:150%;">
    <span style="font-family:'Segoe UI',sans-serif;color:#475569;">
      Service updates deployed to edge nodes.
      <b><span style="color:#7c3aed;">All instances healthy and passing health-checks.</span></b>
    </span>
  </p>
  <span style="display:none;"></span>
  
  <p>&nbsp;</p>
</div>

WORKFLOWOperation Workflow

PHASE 01

Input Markup

Paste raw HTML copied from Word documents, email drafts, or legacy CMS pages.

PHASE 02

Select Filtering Rules

Select Office, comment, inline-style and empty-element cleanup options to suit your HTML.

PHASE 03

Verify and Copy

Compare the code, review the preview and copy the result for further editing.

SPECTechnical Specifications

DimensionSupported Scope & Implementation
Office CleanupRemoves known Office metadata, Mso class tokens and mso-* declarations; unwraps o:p without deleting its text; preserves conditional email blocks and VML
Optional Style RemovalKeep inline styles while stripping mso-* declarations, or enable full style attribute removal and empty-tag cleanup.
Comment SanitizationRemoves standard HTML comments while preserving email conditional blocks
Code PreservationMaintains formatting and whitespace inside pre and code tags

FAQTechnical Inquiries

No. Office cleanup only removes Mso* class tokens and mso-* style properties, leaving standard CSS classes (such as Tailwind, Bootstrap, or custom classes) intact.

Related Utilities

View All

Developer Micro Utilities

Tidy Office markup, comments and inline styles with selectable HTML cleanup rules. Compare the output, preview the result and copy the code for your next task.

View the HTML Paste Guide

HtmlDrag

Drag and drop HTML editor for everyone

© 2026 HtmlDrag. All rights reserved.