HTML Email Template Generator
Generate a responsive, email-client-safe HTML template (table-based layout with inline styles) from a header, body copy, a call-to-action button, a footer and brand colours. Copy the ready-to-send HTML or preview it live.
Input
Used for the email <title> tag.
Hidden preview snippet most inboxes show next to the subject line.
Each blank line starts a new paragraph; single line breaks become <br>.
Leave blank to omit the call-to-action button.
Used for the header text and the button.
Output
Your email preview will appear here.
Table-based layout with inline styles — paste into your email service provider.
Guides
Build a responsive, ready-to-send HTML email in seconds. Fill in a header, some
body copy, a call-to-action button, a footer and your brand colours, and the
tool generates clean, table-based HTML with inline styles that renders reliably
across Gmail, Outlook, Apple Mail, Yahoo and the rest — then copy it or download
it as an .html file.
Why email HTML is different from web HTML
The HTML you write for a website does not work in an inbox. Email clients are
years behind browsers and wildly inconsistent: Outlook on Windows renders
messages with Microsoft Word's layout engine, Gmail strips out <style> blocks
and external stylesheets, and almost none of them support flexbox, grid, or
modern CSS positioning. Code that looks perfect in Chrome can collapse into a
broken mess in an inbox.
Email developers work around this with a deliberately old-fashioned approach, which this generator follows:
- Table-based layout. Structure is built from nested
<table>elements rather than<div>+ flexbox, because tables are the one layout primitive every client understands. - Inline styles only. Every style lives in a
style=""attribute directly on the element. There is no<style>block to be stripped. widthattributes. The main container useswidth="600"— a safe, widely-used content width — as an HTML attribute, because Outlook honours the attribute even when it ignores the CSS.- A proper document shell. An
<!DOCTYPE html>wrapper, a<title>, and a hidden preheader<div>(the short preview line most inboxes show next to the subject) are all included.
How to use it
- Enter a subject line (used for the
<title>) and a preheader. - Type your header/logo text and body content. Leave a blank line
between paragraphs — each becomes its own
<p>; single line breaks become<br>. - Add a button label and URL for your call to action (leave the label blank to omit the button).
- Pick a brand colour (header text and button) and a background colour.
- Watch the live preview update, then copy the HTML or download
email-template.html.
Everything runs in your browser — nothing you type is sent to a server.
Can I paste this into Mailchimp or another ESP?
Yes. The output is standard, self-contained HTML. Most email service providers have a "paste your own code" or "import HTML" option — drop the generated markup in there.
Are my inputs safe?
All text you enter is HTML-escaped before it is placed into the template, so
characters like <, >, & and quotes render as literal text instead of
breaking the markup.
Does it work in Outlook?
Yes. The table layout, inline styles and width attributes are exactly the
techniques used to keep messages intact in Outlook's Word-based renderer.