Before you pay for an inbox-screenshot suite or spam yourself twelve test emails from Resend or SendGrid, the fastest first pass on any template is pasting the markup into an online HTML previewer. A browser preview catches broken tags, missing images, awkward line lengths, and busted table widths in two seconds—as long as you know the five places where real email clients diverge from Chrome.
What browser preview catches vs. what breaks in real inboxes
Browsers render modern HTML5 and CSS3 faithfully. Email clients do not. According to the community compatibility tracker Can I Email (caniemail.com), CSS support varies wildly between Apple Mail, Gmail, and Windows Outlook:
| Email client | Rendering engine | Hard limit / quirk that breaks templates | Safe rule of thumb |
|---|---|---|---|
| Gmail (Web & Mobile) | Blink / WebKit with sanitizer | Clips raw HTML over 102 KB (hiding your footer & unsubscribe link); drops `<style>` blocks over ~8,192 chars or on non-Gmail IMAP accounts | Keep raw HTML under 80–90 KB (leaving room for ESP click-tracking links) and inline all critical CSS |
| Outlook Classic (Windows 2016–365) | Microsoft Word HTML engine | Ignores `display: flex`, `display: grid`, `border-radius`, CSS `background-image`, and often ignores `max-width` on `<div>` | Use 600px `<table>` layouts with `cellpadding="0" cellspacing="0"` and wrap fixed-width containers in `<!--[if mso]>` comments |
| Apple Mail (macOS & iOS) | WebKit | Best CSS support, but auto-inverts colors in Dark Mode and auto-links dates/addresses in blue | Declare `<meta name="color-scheme" content="light dark">` and avoid transparent PNG logos with dark text |
| Outlook.com / New Outlook | Edge WebView2 | Much better CSS support than Classic, but still rewrites class names and strips `<script>` and `<form>` elements | Never depend on JavaScript or external CSS files (`<link rel="stylesheet">` is ignored almost everywhere) |
Why your AI-generated HTML email looks gorgeous in preview—and explodes in Outlook
If you ask ChatGPT or Claude to "write a clean SaaS onboarding email in HTML", it will almost always reach for `display: flex`, `gap: 16px`, CSS variables (`var(--brand)`), and a `<style>` block in `<head>`. When you paste that into a browser preview, it looks crisp. The moment it lands in Windows Outlook, every flex row stacks awkwardly, rounded buttons lose padding, and CSS variables fall back to unstyled text.
Here is a minimal, copy-ready 600px shell that previews cleanly in ViewHTML AND survives Gmail + Outlook Classic:
<!doctype html>
<html lang="en">
<body style="margin:0; padding:24px 12px; background:#f8fafc; font-family:Helvetica, Arial, sans-serif; color:#0f172a;">
<!--[if mso]><table role="presentation" width="600" align="center" cellpadding="0" cellspacing="0"><tr><td><![endif]-->
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="max-width:600px; margin:0 auto; background:#ffffff; border:1px solid #e2e8f0; border-radius:8px;">
<tr>
<td style="padding:28px 24px; font-size:15px; line-height:1.6;">
<h1 style="margin:0 0 12px; font-size:20px; line-height:1.3;">Your invoice is ready</h1>
<p style="margin:0 0 20px; color:#475569;">Thanks for upgrading. You can download your receipt anytime from the billing portal.</p>
<a href="https://example.com/billing" style="display:inline-block; padding:12px 20px; background:#2563eb; color:#ffffff; text-decoration:none; font-weight:600; border-radius:6px;">
View receipt
</a>
</td>
</tr>
</table>
<!--[if mso]></td></tr></table><![endif]-->
</body>
</html>5-step pre-send HTML email check you can run in 60 seconds
- Paste the compiled (inlined) HTML into ViewHTML's HTML Previewer—not the uncompiled MJML/React Email source—so you see the exact bytes going over SMTP.
- Check file size: confirm your raw HTML stays comfortably below 85 KB so Gmail won't clip the footer and unsubscribe link.
- Check mobile width: narrow the preview pane to ~375px and make sure long URLs or wide tables don't trigger horizontal scrolling.
- Audit external assets: verify every `<img>` uses an absolute `https://` URL (relative `/logo.png` breaks in every inbox) and has explicit `width`, `height`, and `alt` text.
- Need a designer or marketer to approve the copy before wiring it into your ESP? Click Link or Image in ViewHTML to share a rendered preview URL or PNG screenshot instead of attaching a `.html` file.
Test your template right now in the ViewHTML HTML Email Tester & CSS Inliner—check Gmail's 102 KB meter, inline styles in one click, and share a live preview link for quick team sign-off.
Try the HTML viewer
Paste your HTML into ViewHTML, preview the rendered page, then export the result as a URL, QR code, image, or PDF.
Open Free HTML Viewer