Cookies This site keeps only what it needs to work. There is no analytics and no advertising on it today, and nothing here follows you to other sites. Read the privacy policy

Choose what to allow
+92 312 8299940Free Quote
EN – Language: English
Free tool, works in your browser

HTML Email Previewer
See Your Email in Gmail on Desktop and Mobile

You can paste your HTML code into our HTML email previewer to view how the email will look when displayed in Gmail on both a PC and mobile device. In addition, you can find out what changes Gmail will make to the email before hitting the "Send" button.

  • FreePrice
  • Desktop and mobileViews
  • Gmail's own CSS listRules
  • NoneSign-up

HTML Email Previewer

See your email as Gmail shows it, on desktop and on a phone

In the inbox
Size
0
Images
0
Links

Ready. Paste your HTML and the preview appears at once.

Your browser does all of the work here, in this tab. We upload nothing, store nothing and log nothing.
Add a link to this tool on your own site

Copy the code below and drop it into your page. It places a link to this free tool.

The basics

What an HTML Email Previewer Shows You

An HTML email previewer shows your email before anyone else sees it. You paste the code, and the page draws it the way Gmail would. Then you check it on a desktop and on a phone.

This will save you plenty of time, right here. Many people are unaware that Gmail removes much more than just a few tags from your email. In addition, it does not support certain CSS properties, and it shortens very long messages. So, taking a moment to inspect your email before sending it can prevent a broken email from being delivered.

This viewer adheres to the guidelines established by Google for its development team. The program also uses the exact same list of available CSS properties that Google makes available on-line. So, all of the tests are based on the original content, not what someone thought it would look like.

The process is entirely contained within the boundaries of your web browser. This means that both the email and the names/offers contained therein will remain within the confines of this webpage.

See How an Email Will Look Before Anyone Gets It

You can paste or open your HTML into this editor and it will generate an instant preview. No buttons need pressing. To see what the editor can do, you can select one of our samples and click on "Try a sample."

HTML code on one side and the same email drawn as a Gmail desktop window and a phone on the other
One set of code, two Gmail views.

The preview exists as a standalone block. The preview will not be affected by the CSS of your emails, nor will the preview affect the CSS of your emails. This ensures that the preview remains accurate.

Previewing on Desktop and on a Phone

On the computer screen, your email will appear about 760 pixels in width, which is similar to the width of the reading pane on Gmail. On the phone screen, your email will be displayed with a width of about 375 pixels; this is also the size of many phones.

HTML email previewer showing a newsletter at desktop width inside a Gmail style window
The desktop view, drawn at 760 pixels.

Media Queries react to how wide the screen is. When you select mobile (up to 480 pixels), a rule applies that will switch on so that the two column layout becomes a single column.

How Gmail Reads Your CSS

Google maintains a web page titled CSS Support in Gmail. This page finds each of the properties which Gmail supports and ignores all other properties.

List of checks naming the CSS properties and tags Gmail ignores in the pasted email
The checks say exactly what Gmail would drop.

Set Rules to Gmail, and the previewer will drop all of what the list doesn’t include. For example, things like box-shadow, position and flex layout will no longer be there. Set Rules to Plain browser, and the previewer won’t drop anything. After that you can compare both, right here.

Selectors and Media Queries in Gmail

Gmail parses the class, element, and id selectors. It will ignore any attribute selectors as well as pseudo classes like :hover. For media queries, Gmail has support for width, orientation and resolution.

The previewer follows the same limits. A skipped selector shows up in the checks with an example, so you can find it fast.

How the Subject Line and Snippet Show in an Inbox

Type a Subject, and a From Name. This creates an email row in your inbox. It will show you the Sender Name, the Subject, and the initial part of the email. Those initial parts of the email are considered "preview" text.

From name, subject and preview text fields above a Gmail inbox row that shows the same words
The inbox row shows what readers see first.

The first line of many emails begins with "View in browser," wasting the most valuable real estate in the inbox. Instead, create a short hidden preheader or type your own text into "Preview text." The checks will alert you if your email opens with a weak line.

A Dark Mode Preview

Many readers will be using Gmail in dark mode. The "Look" option allows you to see a version of Gmail that looks like it is in dark mode. It flips all the light colors to dark, and then flips your images back into place.

Newsletter drawn at phone width in the dark view, with its two columns stacked into one
The phone view with dark mode on.

Gmail does not give details about how they do what they do, so use this as a caution rather than a guarantee. It will show a short-lived dark version of your logo against a dark background.

Images in the Preview

Your browser blocks images that are on other websites. We have this as part of our security rules, and we will continue to use it. So, when you look at an image that was taken from another site, it will appear to be a gray box of the same size.

The box still shows the layout. In addition, the checks tell you about missing alt text, missing widths and images embedded as base64, which Gmail does not show.

What Gmail Removes From Email

Gmail cannot run scripts. Also, it removes frames, forms, videos and SVGs. Finally, Gmail removes event handlers (such as onClick) and links that begin with "javascript:".

In addition to that, the previewer works in a similar manner, and it will list all items removed from the document. As a result, you will find out about a broken button before your audience.

Where Gmail Cuts Long Messages at 102 KB

Gmail will clip an email if it’s over 102 KB. The remainder of the email will be hidden under a "View Entire Message" link. If you place your unsubscribe link at the bottom of the email, your subscribers might not even realize it’s there.

The Size box shows your email in kilobytes. To shrink it, remove comments, repeat fewer inline styles and run the code through an HTML minifier.

Checks for Cold Email Templates

Cold outreach is most effective when it appears to be a quick note sent from one individual. So, maintain a minimal design with a few short paragraphs, a single link, and an obvious option for recipients to decline future communication.

The checks find the typical issues. They inform you about emails which consist primarily of images, links that lead nowhere, and the lack of an unsubscribe option. The CAN-SPAM compliance guide gives explanation on why the last issue is important in the United States.

Open an HTML Email File Stored on Your Machine

Most email tools let you export the HTML of a template. Save it as a file, press Open a file, and the preview appears. Files up to 2 MB work, which is far more than Gmail will show anyway.

Click-Check Each Link Before the Send Button

Dead links will cause you to lose readers. Every time you check for dead links, the program checks each link on your site. When it finds an empty link, a plain http link or an unsafe link, it will let you know. While you are in preview mode, no links can be clicked. So, there is no chance that a stray click will take you away from your work.

Before you send, open each link once in your own browser. Then read the address in the status bar, and make sure it goes where the words say.

Compare Gmail Rules With a Plain Browser

Flip the "Rules" menu and notice what changes. All differences are things Gmail will remove from your reader’s view. You should address those items first, since they work out how your email appears within the user’s primary inbox.

A Preview Isn’t a Full Test

This previewer is not Gmail itself. It follows Gmail's written rules, but real Gmail has apps, accounts and updates of its own. Still, send a test message to yourself.

The behavior of both Outlook and Apple Mail is different. So, using tables and inline styles when building emails is the best option for creating an email that will work properly with both.

Ways to Solve the Usual Email Problems

Use tables for layout, and set a width on every image. Put key styles inline. Add alt text to each image, and keep the main column near 600 pixels. Then preview again, on both screens.

Video guide

The HTML Email Previewer in Action

This brief video shows each step from start to finish. Choose your language below, and switch on captions if they help.

Four steps

Previewing an Email With Denwix

The preview redraws as you type, which removes the need for a preview button.

  • Paste your HTML

    Paste the code, open a file or try a sample.

  • Pick a device

    Toggle between desktop and mobile, and between light and dark.

  • Read the checks

    See what Gmail would drop, clip or ignore.

  • Fix and look again

    Edit the code. Every time you make an edit to the HTML, the preview will be updated a short while later.

Why this one

A Previewer Built on Gmail's Own Rules

Most previewers only display your code on the web. But, this previewer displays the parts of your code that Gmail would retain.

  • Gmail CSS rules

    Only properties on Google's list are drawn.

  • Desktop and mobile

    Media queries react to the width you pick.

  • Inbox row

    See the from name, subject and preview text.

  • Plain-English checks

    Every warning tells you what’s wrong and how to fix it.

  • Four samples

    A cold email, a newsletter, a welcome and one with faults.

  • Private and safe

    No scripts run, and nothing leaves this page.

Good habits

Tips for Emails That Look Right in Gmail

Small habits that stop most layout trouble.

  • Build with tables. They hold their shape in every mail app.
  • Keep the width at roughly 600 pixels. It fits a reading pane and shrinks well.
  • Set image widths. The layout then holds while pictures load.
  • Write alt text. It shows when a mail app blocks the images.
  • Add a preheader. Make the first line in the inbox count.
  • Test on a phone. Most readers open email on one.
Common slips

Six Mistakes in HTML Emails

Each one breaks the layout, or the trust, in a real inbox.

  • Using flex or grid

    Gmail drops those rules. Use tables.

  • Sending one big image

    Blocked images leave a blank page.

  • Hiding the unsubscribe link

    It belongs in view, and above the clip.

  • Fixed 800 pixel width

    Phones then have to scroll sideways.

  • Relying on web fonts

    Gmail falls back to the next font you list.

  • Skipping the test send

    A preview helps, but a real send proves it.

Questions

HTML Email Previewer Questions People Ask

How do I preview an HTML email in Gmail?

Paste the HTML code into the input field above. Your preview will show how the email looks on a computer (desktop) and phone (mobile) as if you were viewing it in Gmail, without registering.

Is this HTML email preview online or in my browser?

Your browser renders the preview so there is no server involved. You are working with the current web page, and your code is not transmitted.

Is the preview exactly what Gmail shows?

It comes very near, yet it is not a perfect copy. It follows Google's published CSS rules, while real Gmail has apps and updates of its own. Also mail yourself a real test.

Why does the email look different here from how my browser shows it?

Gmail ignores some CSS, such as box-shadow, position and flex. With Rules set to Gmail, the previewer ignores them too.

Why are my images grey boxes?

The website prevents the browser from loading images from different websites. The empty boxes give the layout and Gmail will load the actual images.

Does it work as an email template preview for newsletters?

Yes. Use the template HTML and then change over to Mobile to observe how columns will be displayed side-by-side (column stacking) and how a media query responds.

What is the 102 KB limit?

Gmail cuts off any message above 102 KB. It hides the rest behind a link, so keep the code small.

Is a dark mode preview possible?

Yes, using the "Look" menu. The view will be similar to what you would see in Gmail, but, Gmail does not share with anyone how it determines which colors to apply to your email.

Does it run scripts in my email?

No. The previewer will strip out all scripts, event handlers, and potentially harmful links before it loads, just like Gmail does.

Can I load an HTML file instead of pasting?

Yes. Press Open a file and pick a.html or.htm file up to 2 MB.

Will it look at my subject line too?

Yes. It counts the characters and says when a phone would cut the subject short.

Is it safe to paste a real campaign?

Yes. The page stores and sends nothing, and closing the tab clears everything.

More free tools

More Tools for Email Work

Handy next steps once your email looks right.

Ready to See Your Email in Gmail?

Your code is pasted and the preview is shown right away. This HTML email previewer is free, doesn’t need an account and is available online.

Prefer Denwix on GoogleReview Denwix on Google