Inbox Your Company (no subject)
✉️ Paste an HTML email on the left
Or click Sample to see a newsletter HTML Email Viewer – Free Online Tool
What is an HTML Email Viewer?
An HTML email viewer shows you what an email will look like before it lands in someone’s inbox. You paste the
email’s HTML (or open an .html or .eml file) and see it in a mail-app style window,
with a subject line and sender on top, at desktop or phone width.
Here’s the catch with email: it isn’t a web page. Email apps are picky. Outlook for Windows draws emails with
Microsoft Word’s engine, Gmail strips some CSS, many apps block images by default, and every phone has a dark
mode that can flip your colors. So this tool does two things: it shows you the email with switches for
Mobile, Dark mode and Images off, and its
Checks tab lists the things email apps commonly break, in plain English.
Everything runs in your browser and your email is never uploaded. Scripts are always off, exactly like in a real
inbox.
How to Use It – Step by Step
Five quick steps from “I think it’s done” to “I’m confident hitting Send”.
Step 1 Paste, Open or Drop Your Email
Get the email’s HTML into the left panel:
- Paste it: copy the HTML from your email platform’s code editor, your template file or your build tool’s output.
- Open a file: click the upload button or drag an
.html, .htm or .eml file onto the tool. - Saved an email from your inbox? Most mail apps can save a message as
.eml. Open it here and the viewer pulls out the HTML part and shows the real subject and sender. - Click Sample: loads a small newsletter with a few deliberate mistakes, so you can see the checks at work.
The preview and the checks update a moment after you stop typing. No button to press.
Step 2 Check Desktop and Mobile Width
Desktop shows the email in a reading pane like Gmail or Outlook on a computer. Most emails are
600 to 640 pixels wide, centered on a background color. Mobile shows it on a 375-pixel-wide
phone screen, which is where more than half of all emails get opened.
Make it fit phones: a media query for small screens
<style>
@media (max-width: 620px) {
.container { width: 100% !important; }
.column { display: block !important; width: 100% !important; }
}
</style>
💡 The !important is on purpose here. Email styles are mostly inline, and a media query can
only beat an inline style with !important.
Step 3 Flip On Dark Mode
When an email has no dark styles of its own, apps like Outlook and the Gmail app often change its colors for
you. The Dark mode toggle simulates that by inverting the colors while keeping images as they
are. It’s not pixel-exact (every app does it a bit differently), but it’s great for spotting a black logo that
vanishes on a dark background or text that becomes unreadable.
Take control: tell apps you support dark mode
<meta name="color-scheme" content="light dark">
<style>
@media (prefers-color-scheme: dark) {
.card { background-color: #111827 !important; }
.text { color: #f9fafb !important; }
}
</style>
💡 A logo with a transparent background is the classic dark-mode victim. Give it a thin light outline, or
put it on a solid background color that’s part of the image.
Step 4 Turn Images Off
Lots of readers see your email with images blocked at first, especially in Outlook and company inboxes.
Untick Images to see what they see: text, background colors and the alt text of each image.
If your headline or your button lives inside a picture, it’s gone.
Give every image a width and alt text
Before (empty box when images are off, huge in Outlook):
<img src="https://example.com/sale.png">
After:
<img src="https://example.com/sale.png"
width="600" alt="Autumn sale: 20% off everything"
style="display:block; width:100%; max-width:600px;">
Step 5 Read the Checks Tab and Fix What Matters
The Checks tab lists what it found, most serious first. The number on the tab counts errors
and warnings. Click a row to jump to that line in your code.
- Error: breaks in most email apps, like a
<script>, an <iframe>, a linked stylesheet, a relative image URL or an email over Gmail’s 102 KB clipping limit. - Warning: breaks in some big apps (usually Outlook or Gmail), like flexbox, grid, CSS position, background images, or images without alt text or a width.
- Tip: nice to have, like a preheader, a
<title> or dark mode styles.
The most common fix: flexbox columns become a table
Before (falls apart in Outlook):
<div style="display:flex; gap:16px;">
<div>Left column</div>
<div>Right column</div>
</div>
After (works everywhere):
<table role="presentation" width="100%">
<tr>
<td width="50%" valign="top">Left column</td>
<td width="50%" valign="top">Right column</td>
</tr>
</table>
💡 The checks are a quick first pass, not a guarantee. Before a big send, use your email platform’s “send a
test” button and open the test on your own phone and in Outlook and Gmail.
Tips for Emails That Work Everywhere
Email HTML is a bit like writing web pages in 2005, and that’s fine. Stick to these habits and your emails will
look right in almost every inbox.
Use tables for layout
Columns, spacing and centering all come from <table>, <tr> and
<td>. Add role="presentation" to every layout table so screen readers skip
the table talk.
Inline the important styles
Write your CSS in a <style> block if you like, then run it through a CSS inliner before
sending. Keep media queries and dark mode styles in the <style> block, since they can’t be
inlined.
Use full https:// URLs
Every image src and every link href needs the full address. There’s no website
around an email, so /images/logo.png has nothing to load from.
Width and alt on every image
width="600" keeps Outlook from showing the image at its full size, and alt text keeps the
message readable when images are blocked. Use PNG or JPG, not SVG.
Stay under 102 KB
Gmail clips bigger emails and hides everything below the cut. Remove comments and unused CSS, and minify
the HTML before sending (the HTML Minifier helps).
Pick fonts with a fallback
Web fonts only load in some apps. Always end the list with safe fonts:
font-family: Inter, Arial, Helvetica, sans-serif;
Add a preheader: the preview line next to your subject
<body>
<div style="display:none; max-height:0; overflow:hidden; mso-hide:all;">
Your order shipped! Track it in one tap.
</div>
...
A “bulletproof” button: real text, no image
<a href="https://example.com/shop"
style="display:inline-block; padding:14px 28px;
background-color:#16a34a; color:#ffffff;
font-family:Arial, sans-serif; font-weight:bold;
text-decoration:none; border-radius:6px;">
Shop the sale
</a>
Need to clean up the code first? Try the HTML Fixer for broken tags, the
HTML Validator for a full check, or the HTML Viewer for regular web
pages.
Frequently Asked Questions
How do I view an HTML email?
Paste the email’s HTML into the box on the left, open an .html or .eml file, or drag the file onto the tool. The preview shows it inside a mail-app style window with a subject line and sender, at desktop width or phone width. It updates as you type, so you can tweak the code and watch the result right away.
Can I open an .eml file?
Yes. Open or drop a saved .eml message and the viewer pulls out the HTML part of the email (base64 and quoted-printable are decoded for you) and shows the real subject and sender in the preview header. If the message has no HTML part, you get the plain text version instead. Attachments and embedded cid: images are not shown.
Is the dark mode preview exactly what Gmail or Outlook show?
No, it’s a simulation. When an email has no dark styles of its own, apps like Outlook and the Gmail app change its colors for you, and the toggle mimics that by inverting the colors while keeping images as they are. Each app does it a little differently (some only darken light backgrounds), so treat it as a quick warning sign, like a logo that disappears on dark, and test in the real apps before a big send.
Why does the Images toggle matter?
Many email apps, especially Outlook and a lot of company mail setups, block images until the reader clicks “Show images”. Turn Images off to see your email the way those readers first see it: only text, background colors and alt text. If your main message or button is part of an image, it’s gone. Good emails still make sense with images off.
Why does Gmail clip my email?
Gmail cuts off any message whose HTML is bigger than about 102 KB and shows a “[Message clipped] View entire message” link. Whatever is below the cut is hidden, which often includes the unsubscribe link and the tracking pixel. The Checks tab shows your size against that limit. Comments, unused CSS and long inline styles are the usual culprits.
Why should I build emails with tables instead of flexbox or grid?
Because Outlook for Windows renders email with Microsoft Word’s engine, which ignores flexbox, grid, position and many other modern CSS features. Tables work in every email app, including that one. Give each layout table role="presentation" so screen readers don’t read it out as a data table.
Does the viewer run the JavaScript in my email?
No. Email apps never run JavaScript, so the preview doesn’t either: scripts are always off and the email shows in a locked-down frame. If your email has a <script> tag, the Checks tab flags it, because whatever it does won’t happen in anyone’s inbox.
Is my email uploaded anywhere?
No. The preview and the checks run right here in your browser, so the email never leaves your computer. The only thing the preview loads from the internet is what your email itself links to, like its images.