Popup generator
Pick the goal.
Paste the popup.
A popup generator writes the code for a popup from a few choices: what it is for, what it says, when it opens and how often it comes back. Choose a goal, edit the words, watch it in the frame and copy the HTML, CSS and JavaScript. It works on any page where you can add code, and it says plainly what plain code cannot do.
It runs in your browser and nothing you type is sent to us. The email form posts wherever you tell it to, because pasted code has no inbox, and exit intent does not exist on a phone. Need rules about who sees a popup, or a list to collect into? That is Builderify Popups.
By the Builderify team
The words in each starting point are examples: replace them with what is true for your business. The address fields start empty because only you know them.
The preview opens the popup at once and ignores the timing and the browser memory, so you see it every time. The code below is what runs on your site. A form or link in the preview does nothing.
- Opens when the visitor has scrolled 50% of the way down the page.
- Opens at most once every 7 days per browser (localStorage), and not again for a year once someone acts on it.
- On a phone the corner card becomes a card across the bottom of the screen.
- Closes with its × button, Escape, or the “No, thanks” link.
-
Fix The form goes somewhere
emptyThe form has nowhere to send the email address. This code has no inbox of its own: the address goes to whatever URL you give the form, and until then the code carries a placeholder.
Try: Paste the form address your email service gives you. It must start with https://.
-
Fine Headline and button filled in
The headline and the button both have words.
-
Fine Short headline
The headline is short enough to read at a glance.
-
Fine The button says what happens
The button names what the visitor gets.
-
Fine Says what they are signing up to
A line under the button says what happens next.
-
Fine Not over the page at once
The popup does not open straight over the page.
-
Fine Fits a phone
On a phone this is a small card, or it never covers the page.
-
Fine Phone visitors are covered
Phone visitors get a version, or exit intent is not used.
-
Fine Does not come back every time
The popup is limited in how often it opens.
The checks are our rules of thumb, and the two with a source say whose it is. What the code does.
What is in the popup
you just copied?
One <dialog> element, a block of CSS scoped to it and a short script. No library, no account, and nothing loaded from another site.
A native dialog
The popup is an HTML <dialog>, opened with showModal() in the centre and show() for the corner card. MDN lists the element as available across browsers since March 2022. A modal dialog makes the rest of the page inert, is exposed to assistive technology as modal and closes with Escape. A non-modal one does not close on Escape by default, so the corner card gets its own Escape handler. MDN, read 18 Nov 2026.
Opens when you say
The script listens only for the trigger you chose: a timer, a scroll point, the pointer leaving through the top of the window, or a click on a button of yours. Exit intent is a plain mouseout check, so it cannot tell someone leaving from someone reaching for another tab, and it never fires on a touch screen.
Remembers in the browser
To stop it nagging, the script stores one small value in the visitor’s browser, in localStorage or, for once a visit, sessionStorage. It is not a cookie. Someone who submits the form or clicks the button is left alone for a year; an age gate remembers a yes for the days you set. Where you list what your site stores, list this too: the cookie policy generator takes any entry you type, and its policy covers similar technologies such as local storage.
Stays out of the way
The corner card is non-modal and does not take focus when it opens, and on a phone it becomes a card along the bottom edge. The animation is switched off for visitors who ask for reduced motion. Every popup has a close button and, unless you leave the link empty, a no-thanks link. The age gate has neither, by design.
We tested the generated popups in Chrome at desktop and phone widths. We have not tested them with a screen reader or on a physical phone, so try yours on the devices your visitors use before you publish.
When should a popup open?
After the visitor has had a look.
A popup annoys people when it arrives too early, comes back too often or is hard to close. The advice in this table is ours, the same as in our guide to adding a popup, and it is a starting point to test, not a rule.
| Trigger | Fires when | Good for | Watch for |
|---|---|---|---|
| After a delay | A set number of seconds after the page loads. | A corner card for an offer or an announcement. | A centred popup at 0 seconds covers the page they came to read. Give it 10 seconds or more. |
| At a scroll point | The visitor has scrolled a percentage of the page. | A newsletter signup on an article or a guide. | A page too short to scroll never opens it. On a long page, 50% may be minutes away. |
| On exit intent | The pointer leaves the window through the top edge. | A last offer, or a reason to come back. | Desktop only. Phones have no pointer, so phone visitors need the scroll fallback or nothing. |
| When a button is clicked | The visitor clicks a button or link of yours. | Call requests, quotes, “get the guide” buttons. | It only reaches people who click, so it never interrupts and never grows a list on its own. |
There is no page-view trigger here, because plain code on one page cannot count pages across a visit without storing more than this script does. Exit intent in more detail, with a live demo: how an exit intent popup works and how to add one.
Limit how often
Once a visit is the least to do for most popups; once every 7 days suits a signup. Someone who closed it has answered, and someone who signed up should not see it again, which is why the code leaves them alone for a year.
Treat phones differently
A popup that fits a laptop can fill a phone. The corner card turns into a card along the bottom edge on a narrow screen, and exit intent can fall back to a scroll point. Use the “Phone width” button above to see it.
Keep it off the wrong pages
A signup on articles, an offer on product pages, nothing on checkout, contact or legal pages. This code runs wherever you paste it, so paste it only on the pages where it belongs, or use rules that choose the pages for you.
Google’s Search Central page on intrusive interstitials and dialogs says they “make it hard for Google and other search engines to understand your content, which may lead to poor search performance.” It asks sites not to obscure the entire page with interstitials, and suggests banners that take up only a small fraction of the screen, which it says can also be used for newsletter sign-up prompts. Interstitials a site is required to show are exempt, and Google gives a casino’s age gate as its example; for those it recommends overlaying the content rather than redirecting the request to another page, which is what the age gate here does. Google Search Central, last updated 10 Dec 2025, read 18 Nov 2026.
That is why the default is a corner card, and why the tool flags a centred popup that opens within 10 seconds. The 10 seconds is our rule of thumb, not a Google number.
Where pasted code
runs out.
For one popup on one site, the code you copied is enough. It stops short when you want a list to collect into, a second popup, or rules about who sees what.
| The job | This pasted code | Builderify Popups |
|---|---|---|
| Where signups go | Wherever the form address points. The code has no list of its own. | Into a lead list you choose, at 1 credit for each new lead. |
| Who sees it | Everyone, on every page where you paste it. | Device, new or returning visitors, traffic source and campaign, plus include or exclude page rules you can test against an address before saving. |
| Exit intent on phones | Not possible: a phone has no pointer. The fallback is a scroll point. | The same limit: Exit Intent is desktop only. A timed popup on a phone waits for the first scroll or tap, with Gentle on phones on, which is the default. |
| How often | One rule in the script, kept in the visitor’s browser. | Show Once Per Session, a How often setting in hours or once and never again, and someone who submits is not asked again in that browser for a year. |
| Start and end dates | None. You take the code out when the offer ends. | A start and end date, in whole days in your website’s timezone. |
| Changing it | Edit the code and paste it again. | Edit it visually and publish. The script tag on your site stays the same. |
| Starting points | Four, here. | Thirteen templates and eleven element types. |
The right-hand column is from our Popups page and the guide to adding a popup to a website, which also compares the popup each platform has built in.
Builderify Popups is free to start: every account gets 250 credits a month, page loads with the widget on them cost 10 credits per 1,000 and a new lead costs 1 credit. If you need more, one-time packs start at $9, purchased credits never expire and there is no monthly fee. See pricing, or start free.
How do I add the code
to my website?
Paste it into the footer code of your site, just before the closing body tag. Where that is depends on your platform and your plan, and the menu path for each is in our guide to adding custom code to your website header and footer.
Press Copy code above. It is one block: a style tag, the dialog and a script, with a comment at the top that names the popup.
Use the footer or “before closing body tag” field, not the head. The script looks for the popup as it runs, so it has to come after it, and a dialog in the head would break the page.
An email popup posts to the form address you gave it, with the field name email. Change that name if your form service expects another, and check what your service says about accepting posts from a page of yours.
Open the page in a private window. To see it again after it has opened, open a new private window or clear the site’s data, because the popup remembers in the browser. Check it on your phone, then try Escape and the close button.
Does your platform already have a popup? Most do, with fewer options. The guide to adding a popup to a website compares them. A popup that asks for an age needs more thought than a click: see the guide to the age verification popup for a website.
Popups, before you ask.
Pick what the popup is for, edit the headline, the line under it and the button, choose when it opens and how often it comes back, then copy the code and paste it into your site's footer code, just before the closing body tag. The code is one HTML dialog element with its own CSS and a short script, so it needs no plugin and no account.
It works on any page where you can add your own code, because it is plain HTML, CSS and JavaScript. Whether you can add code, and where, depends on your platform and your plan, and the menu path for each is in our guide to adding custom code to your website header and footer. If your platform already has a popup of its own, the guide to adding a popup to a website compares them.
To the form address you give the generator, such as the one your email service provides, and nowhere else. The pasted code has no inbox and no list of its own, and nothing is sent to Builderify. If you want signups to land in a list you can email, that is what Builderify Popups does, at 1 credit for each new lead.
No. Exit intent watches the pointer leave the top of the window, and a phone has no pointer, so it never fires there. The generator lets you tick a box to open the popup at 60% scroll on a phone instead, or you can leave phone visitors without it.
It can. Google says intrusive dialogs and interstitials may lead to poor search performance, asks sites not to obscure the entire page with interstitials, and suggests banners that take up only a small fraction of the screen. The default here is a small corner card that becomes a card along the bottom of a phone, and the tool flags a centred popup that opens within 10 seconds. The 10 seconds is our rule of thumb, not Google's number.
It is built on the native dialog element, which a browser exposes as a dialog, with the headline as its name, a close button and Escape to close it. A modal popup makes the rest of the page inert, and the animation is switched off for visitors who ask for reduced motion. We tested it in Chrome at desktop and phone widths, not with a screen reader or on a physical phone, so try it on the devices your visitors use.
No. The popup is built in your browser and nothing you enter is sent to our servers. The preview runs your generated code in a sandboxed frame on the same page. The popup you publish stores one small value in the visitor's own browser to remember that it opened, which you may want to list wherever you document what your site stores.
Both pages were opened on 18 November 2026. Google’s was last updated on 10 December 2025; MDN lists the dialog element as Baseline widely available since March 2022. The generated code, the checks marked as ours, the defaults and the trigger advice are ours; the facts about Builderify Popups come from our own Popups page and guides. ← All free tools
More on popups
All popup guides- How to Add a Popup to Your Website, on Any Platform How to add a popup to your website on Squarespace, Wix, WordPress, Shopify or Webflow: the built-in popup and its limits, or one script tag, set politely.
- Exit Intent Popup: How It Works, How to Add One How an exit intent popup spots a leaving visitor, what works on mobile, and how to add one to WordPress, Shopify, Webflow or Wix with one script tag.
- Age Verification Popup for a Website: Is a Click Enough? Is an “are you over 18?” popup enough? Pick what you show or sell and where your visitors live, and get a plain answer and the wording for the gate.
- Free Countdown Timer for Your Website: Copy-Paste Code Make a free countdown timer for any website: set the deadline, copy the code, paste it on Shopify, WordPress, Wix, Squarespace or Webflow. It ends on time.
Stop losing the visitors
you already paid for.
More leads from the traffic you already have, and follow-up that sends itself. Free to start. No card, no monthly fee.