Outlook HTML Sanitizer

Fix Outlook's ghost spacing bugs in one click.

Auto-inject the legendary 0.05pt margin/padding trick into every table cell so Outlook for Windows stops collapsing rows and adding mystery whitespace. Drop-in fix, fully reversible.

pt

The 0.05pt trick that fixes Outlook

Microsoft Word — the renderer powering Outlook for Windows — collapses margins on table cells and adds phantom vertical whitespace at unpredictable spots. The fix the email community converged on: set a near-zero margin and padding (typically 0.05pt) on every <table>, <td>, and <th>. Word respects the declaration and stops collapsing; modern clients round to zero and ignore it entirely.

This sanitizer does the rewrite for you. Paste your HTML, click Sanitize, ship the output. If you already have non-zero padding on a cell, it's preserved. If you have margin:0; padding:0; explicitly (the css-reset pattern), the sanitizer overrides with the spacing value because that pattern is what causes the Outlook collapse in the first place.

Outlook HTML Sanitizer FAQs

It auto-injects tiny margin and padding values (e.g. 0.05pt) onto every <table>, <td>, and <th> in your email — a known workaround for Outlook's collapsing-margins and ghost-spacing bugs. The fix is invisible visually but eliminates the most common Outlook rendering glitches.
Whenever you see mysterious vertical gaps, collapsing rows, or inconsistent padding in Outlook for Windows. The Word renderer ignores normal cell padding rules, and the 0.05pt trick is the cleanest fix the email community has converged on.
No. 0.05pt is below the rendering threshold of modern email clients, so they round to zero and ignore the styles. Only Outlook reads and applies them.
Yes — the Spacing Value field defaults to 0.05pt. Smaller is safer for visual fidelity; larger if Outlook is being especially stubborn.
Yes. The sanitizer only adds margin/padding where you don't already have them. Existing non-zero padding is left untouched.
Yes. It is a 100% client-side string transformation that leaves the structure of your HTML intact — only adding tiny style values to specific tags.