Processed online by Toolvito
Email HTML Validator
Paste the HTML of an email, or choose an .html or .eml file. The tool lists what e-mail programs remove or ignore, checks size, images and links, and draws previews at phone and desktop widths in light and dark mode.
How to check an email
- Paste the HTML of the email, or choose the .html file or an .eml file saved from your mail program.
- Press Check email.
- Fix the problems, then check the previews.
What is checked
- Size: Gmail cuts off emails larger than about 102 KB of HTML and shows “[Message clipped]”.
- What gets removed: scripts, external style sheets, frames, forms, video, SVG; CSS such as flex and grid, position, background images, web fonts and CSS variables that Gmail or Outlook for Windows ignore.
- Images and links: alt text, width attributes for Outlook, http:// addresses, empty or # links, javascript: links.
- Accessibility: title, language, layout tables without role="presentation"; dark-mode CSS and the color-scheme tag.
Previews
Previews are drawn by Chromium with scripts off, at 375 px (phone) and 600 px (the usual email width), in light and dark mode, close to Apple Mail and Gmail on the web. Outlook for Windows draws with Word and looks different; it is not simulated. Programs that change colours themselves in dark mode are not simulated either.
Inline the CSS
Inline CSS writes the rules of your <style> blocks into style="" attributes, for e-mail programs that drop <style> blocks. Rules that cannot be inlined (@media, :hover, ::before, @font-face) stay in a <style> block, and width and bgcolor attributes are added for Outlook. Linked style sheets are not loaded.
Limits
- This checks email HTML, not whether an email address is valid; for a domain’s mail records use the Email DNS Authentication Checker.