HTML Email Tester & CSS Inliner
Test and preview HTML email code online
Inspect raw HTML email templates in desktop (640px), mobile (375px), and simulated dark mode—track Gmail's 102 KB clipping limit in real time, catch Outlook Word-engine bugs, and inline <style> CSS in one click.
- <style> block detected (899 chars)
Gmail IMAP/POP accounts and older clients strip <style> tags. Click Inline CSS to make typography, colors, and spacing bulletproof.
Catch inbox-breaking HTML bugs before sending a single test email
Modern transactional and marketing emails generated by React Email, MJML, or AI assistants often look sharp in a browser tab yet break immediately in Gmail or Windows Outlook. Gmail silently truncates messages over 102 KB and strips oversized <style> blocks, while Outlook Classic still uses Microsoft Word's rendering engine and ignores Flexbox, Grid, and background images.
ViewHTML's HTML Email Tester gives you an instant pre-flight check in your browser: a live Gmail 102 KB byte meter, static compatibility scanning, a built-in CSS Inliner that preserves @media queries, and one-click share links so teammates can review the rendered email without downloading an .html attachment.
Key HTML email client limits checked by this tool
The four constraints that cause the majority of broken production emails.
| Client | Constraint | What breaks | Recommended target |
|---|---|---|---|
| Gmail (Web & App) | 102 KB raw HTML limit | Clips footer, unsubscribe link, and open-tracking pixel | Stay under 85 KB before ESP link tracking |
| Gmail (Style Tag) | ~8,192-char <style> cap & IMAP stripping | Drops embedded CSS rules completely | Click Inline CSS for typography, colors, and spacing |
| Outlook Classic (Windows) | Microsoft Word HTML engine | Ignores display: flex, display: grid, border-radius, max-width | Use 600px presentation tables + <!--[if mso]> guards |
| Apple Mail & iOS Dark Mode | Automatic color inversion | Dark-text transparent PNGs disappear on dark backgrounds | Test with Simulate Dark Mode and declare color-scheme meta |
Pre-flight your HTML email in three steps
- 1
Paste compiled HTML
Drop in the final HTML output from your ESP, React Email, MJML, or AI assistant to see exact byte size and compatibility warnings.
- 2
Inline CSS & check mobile
Click Inline CSS to move <style> declarations onto elements while keeping @media rules, then toggle Mobile (375px) and Dark Mode.
- 3
Share or export for sign-off
Generate a live preview link for stakeholder approval or open in ViewHTML to export a full-page PNG or PDF screenshot.
Frequently asked questions
- Why does Gmail clip HTML emails over 102 KB?
- Gmail measures the raw HTML byte size of the message body. Above 102 KB, Gmail truncates the bottom behind a 'View entire message' link—hiding your footer, unsubscribe link, and open-tracking pixel. Keep raw templates under 85 KB so ESP tracking parameters do not push them over.
- What does the built-in Inline CSS button do?
- It parses tag, class, and ID rules inside your <style> block and merges those declarations directly into matching elements' style="..." attributes while preserving existing inline overrides and keeping @media queries intact for mobile clients.
- Why does this tester flag Flexbox and CSS Grid in HTML emails?
- Desktop Outlook Classic (Windows 2016–365) uses Microsoft Word's HTML rendering engine, which ignores display: flex, display: grid, border-radius, and CSS background-image. Multi-column layouts should use presentation tables and <!--[if mso]> wrappers.
- Can I share the rendered email preview with my designer or client?
- Yes. Click Share preview to generate an instant isolated ViewHTML link (live 3 days free with no signup, or permanent when signed in), or open it in ViewHTML to export a full-height PNG or PDF screenshot for approval.
More HTML tools on ViewHTML
Live split-pane preview & sharing
Open local .html & .htm files
Paste snippets & preview live
Run HTML, CSS & JS in sandbox
Check iframes, CSP & mobile sizing
Line-by-line code & visual side-by-side diff
Render crisp Headless Chromium PNGs from HTML
Convert GFM Markdown to clean HTML or styled page
Related engineering guides
Full breakdown of Gmail 102 KB clipping, Outlook's Word rendering engine, and a copy-ready 600px MSO-safe shell.
How to snapshot HTML emails, invoices, and reports cleanly into PDF or PNG without dropped background colors.