Skip to main content
Preparing workspace

Gmail Template Builder

Build an HTML email template for Gmail by dragging text, image, button and footer blocks onto a 600px layout, then copy table-based, inline-styled HTML.

Still loading. If the tool doesn’t appear, reload this page.

About this tool

Gmail Template Builder

A drag-and-drop email template builder optimized for Gmail and marketing campaigns.

This Gmail template builder lets you design an HTML email without code: drag blocks such as text, image, button, logo and footer onto a 600px canvas, style each one, preview it at desktop or mobile width, and copy the exported HTML. The output uses nested tables and inline styles, the structure Gmail keeps when it strips stylesheets.

How to use Gmail Template Builder

  1. Drag a block from the Components palette — Text Block, Image Block, Button Link, Divider Line, Header Area, Footer Area, Signature Block, Logo/Brand or Social Media — onto the canvas, which starts on Start Building Your Email until the first block lands.

  2. Click a block to open its Edit panel and set values such as Text Color, Font Size (px), Text Alignment, Border Radius (px) and the four Padding fields; drag the grip handle to reorder, Delete Component removes the block, and History gives you Undo, Redo and Clear.

  3. Press Export HTML or Export JSON to open the Generated Email HTML or Generated Email JSON window, then Copy to Clipboard — a Copied to clipboard! confirmation appears. Blocks stay saved in your browser between visits, and Clear empties the canvas after a confirmation.

Why use Gmail Template Builder

  • Exports email-safe HTML, not web HTML

    Every block becomes a table row with inline styles, plus mso-table-lspace/rspace resets and bicubic image handling, because Gmail and Outlook strip most stylesheet rules.

  • Undo, redo and autosave while you experiment

    Each change is pushed onto a history stack you can step back through, and the current layout is written to your browser so a refresh does not lose the template.

  • Buttons built to stay clickable

    The CTA block renders as a padded anchor with its own background, border-radius and inline padding, which is the pattern that keeps buttons tappable where CSS buttons fail.

Common use cases

  • You need a product announcement email that does not collapse in Gmail's mobile app, so you build it visually and export HTML that is already table-based with a 600px shell.
  • You are setting up a transactional template in your sending platform and want a clean starting block structure — logo, header, body text, CTA button, signature, footer — rather than editing someone else's theme.
  • You are iterating on a layout with a colleague and want to move the CTA above the image, undo it if it reads worse, and check both the desktop and mobile preview before exporting.

Frequently asked questions

What HTML width does it export, and is it responsive?

A centred 600px-max-width table — the long-standing safe width for email — inside a full-width body, with a media query at max-width: 600px that lets the outer table and full-width images stretch to 100% on phones. Images also carry max-width: 100% and height: auto inline so they scale even where the media query is ignored.

Link to answer
Which blocks can I add to a template?

Nine: text, header, image, logo, button, divider, signature, social media links and footer. Each one arrives with sensible defaults — for example the button ships at 12px vertical and 24px horizontal padding with a 5px radius — and every padding, colour, font size and alignment value is editable in the side panel.

Link to answer
Is my template saved if I close the tab?

Yes. The block list is written to your browser's local storage on every change and reloaded when you return, and nothing is uploaded to a server. Clearing the template or clearing site data removes it, so export the HTML or JSON if you need a permanent copy.

Link to answer
Can I export the layout to reuse it elsewhere?

Two ways: the HTML export gives you the complete document with doctype, head styles and inline-styled table body ready to paste into a sending platform, and the JSON export gives you the raw block array with every style property so you can version it or feed it into your own tooling.

Link to answer
How do I use the HTML template in Gmail?

Gmail's compose window has no "paste HTML" option, so the usual route is: export the HTML here, save it as a .html file and open it in your browser, select all of the rendered email (Ctrl+A / Cmd+A), copy, and paste into a new Gmail message. To reuse it, turn on Templates under Settings → Advanced in Gmail and save that draft as a template. For bulk or automated sending, paste the HTML into your email service's HTML editor instead.

Link to answer
Can I preview the email on mobile before exporting?

Yes. The canvas has a desktop and a mobile preview; mobile narrows the layout to 375px so you can check how text, images and buttons wrap on a phone-width screen before you export.

Link to answer
What else should I know about this tool?

Gmail Template Builder is a drag-and-drop email composer that outputs table-based HTML with inline styles — a 600px-wide centred layout, MSO table hints and a max-width: 600px media query — which is the structure email clients like Gmail and Outlook actually render reliably. You stack nine block types (text, header, image, logo, button, divider, signature, social links and footer), edit padding, colour, size and alignment per block, then export the finished HTML or the layout as JSON. It is for marketers and developers who need a campaign or transactional template that survives Gmail's HTML stripping without hand-writing nested tables.

Link to answer