🪟

Popup Generator

A popup generator builds the modal you want and hands you the code to embed it. Set the title, message, button and colours, choose a trigger and how often it may reappear, and the Embed Code panel prints a single script tag pointing at popup.min.js with your settings as data attributes — data-trigger, data-delay, data-bg and the rest.

Content

Trigger and behaviour

Customize

Presets

Live Preview

×

Embed Code

Copied

Copy failed. Select the result and copy it manually.

Embed this tool on your website

Use whole pixel dimensions from 1 to 4096.

× px (1–4096)

                        

💡 Integration Tip

Copy the embed code and paste it into your website HTML. The responsive version adapts to all screen sizes automatically.

3.3
3 ratings
✓

Popular Tools

No more tools to show
Explore All Tools

Using this generator

Prepare a hosted popup with a title, message and optional action link. The preview illustrates its appearance; it does not simulate when a visitor will see it.

How it works

The embed loads popup.min.js from FreeWebTools. Timed, scroll, exit intent and load triggers share the chosen colors, animation, overlay and branding. Frequency uses only this campaign's browser storage; it is not an account or visitor count.

Steps

  1. Enter your text and action URL, then choose a preset or adjust the style.
  2. Choose the trigger, delay or scroll threshold and the always, session, daily or once frequency. Check overlay closing separately.
  3. Copy the complete tag into a Custom HTML block or HTML template, just before </body>, where your platform permits scripts. Check the site's script/style policy, keyboard behavior and storage permissions before use.

Limits and errors

Questions

Do similar titles share a frequency limit?

The new key uses the full title, message and action rather than the first 20 sanitized characters. Identical campaign content shares a key; editing that content starts a new history.

Does copying prove the popup works on my site?

No. Copying transfers text only. Host policy, placement, accessibility and native storage still require checks on your site. A script blocked before loading cannot report its own error.

What does the generator export?

One script tag loading popup.min.js, with every configured data attribute, including defaults. The displayed preview shows appearance; the hosted script handles triggering and frequency on the page where you place it.

How do I install it on my website?

Paste the complete tag into a Custom HTML block or your HTML template immediately before </body>, rather than into a text or Markdown field. Your platform must permit the script and styles; check the result on an authorized page.

Which triggers are available?

Timed delay, scroll percentage, exit intent and page load. Exit intent listens for a pointer leaving through the top edge, within five pixels and without a related target; it is not a dependable mobile trigger.

How do the frequency choices work?

Always can show on each page load. Session uses sessionStorage; daily and once use localStorage, with daily waiting 24 hours. These rules depend on the campaign key and available browser storage; blocked storage prevents enforcement.

Can the popup collect email addresses?

It contains a title, message and optional action link, without an email field or submission. You can point the button at your own authorized subscription form; that destination handles collection.

Can I limit it to selected pages?

Place the tag only in those page templates. A shared footer places it on every page using that footer; the generator has no URL targeting rule.

Can I place it at the bottom?

The form previews a centered popup. The hosted consumer also accepts data-position="bottom", added manually to the tag, to place it 24 pixels above the bottom edge. Check that placement on your page.

How do I remove the branding line?

Untick Show branding before copying. The generated data-branding="false" makes the hosted widget omit its Powered by FreeWebTools line.

About Popup Generator

The form is in four blocks. Content takes the Title, Message, Button Text and Button URL. Trigger & Behavior chooses between Timed Delay, Scroll %, Exit Intent and On Page Load, with a Delay in seconds or a scroll percentage as appropriate, a Frequency of Every Visit, Once Per Session, Once Per Day or Once Forever, and a Fade or Slide animation. The style block sets Background, Text Color, Button Color and a border radius slider, plus the Overlay Backdrop, Close on Overlay Click and Show branding switches. Four presets — Newsletter, Discount, Dark and Exit Intent — fill everything at once.

The Live Preview redraws the modal as you type, and the Embed Code panel shows the tag you actually paste. It is one script element that loads popup.min.js from this site and carries every configured data attribute, including default values. Review the complete tag before placing it on your site.

The triggers behave in specific ways. Exit Intent listens for the pointer leaving through the top of the window — a mouseout with no related target above five pixels from the top — so it fires on desktop and never on a touchscreen. Scroll % measures how far down the scrollable height you are and fires once past your figure. Frequency is remembered on the visitor's own device: Once Per Session uses sessionStorage, Once Per Day and Once Forever use localStorage, under a key derived from the full title, message, button text and button URL. Editing any of that campaign content starts a separate frequency history; existing keys are preserved.

Limits: the popup is a message with one link, not a form — it cannot collect an email address, and there is no analytics, no A/B test and no per-page targeting, so where the tag is pasted decides where the popup appears. The generator writes code only; nothing is saved here, and the script is served from this site, so an offline copy means hosting popup.min.js yourself.

Use Cases

A shop owner announcing a discount code: load the Discount preset, change the message, set Exit Intent so the offer only appears when the pointer heads for the tab bar, and paste the tag into the theme footer.
A blogger promoting a newsletter: the Newsletter preset with a Timed Delay of a few seconds and Once Per Day so a regular reader is not asked again on every article.
A team announcing planned downtime: a plain On Page Load popup with Every Visit frequency, removed again by deleting the tag once the maintenance window has passed.
A designer matching a brand: Background, Text Color and Button Color take hex values directly, and the radius slider goes from a square 0 to a very rounded 32 pixels, all reflected in the preview.
Anyone testing whether a popup is worth having: the preview shows the finished modal before a single line goes near the live site, and the tag can be pasted into a staging page first.

Pro Tips

  • The exported script carries every configured data attribute, including defaults such as data-delay="5000" and data-frequency="session". Keep the complete tag when installing it.
  • Exit Intent never fires on a phone: it depends on the mouse pointer leaving the top of the window, and touchscreens have no pointer. Pair it with a scroll or timed popup if mobile matters.
  • The default campaign key includes the full title, message, button text and button URL. Changing any of these starts a separate frequency history; earlier campaign keys are left intact.
  • Untick Show branding and the tag gains data-branding="false", which removes the small Powered by FreeWebTools line under the button.
  • The widget also understands data-position="bottom", which the form has no control for — add it to the tag by hand to dock the popup at the bottom of the screen instead of the centre.

Troubleshooting

Problem:

The popup never appears on my site.

Solution:

Check three things in order: that the tag was pasted into the page's HTML rather than a text or Markdown field, that your Frequency has not already been satisfied — Once Per Session hides it until the tab is closed — and that the trigger you picked can fire, since Exit Intent needs a mouse.

Problem:

It works on my computer but not on my phone.

Solution:

Exit Intent is the usual cause: it depends on the pointer leaving the top of the window, and a touchscreen never generates that event. Switch the trigger to Timed Delay or Scroll % for mobile traffic, or serve a second tag with a different trigger.

Problem:

I only saw the popup once and now it will not come back.

Solution:

That is the Frequency working. Once Per Session is remembered in sessionStorage until you close the tab; Once Per Day and Once Forever are remembered in localStorage. Clear the site's storage, or open a private window, to see it again while you are testing.

Problem:

I changed the design but visitors still see the old popup.

Solution:

The tag is the popup, so an old tag still on the page keeps its old settings. Replace the whole script element, not just part of it, and clear any page cache or CDN cache afterwards. A stale copy in your own browser cache is worth ruling out too.

Problem:

Editing the title reset everyone's frequency.

Solution:

The default key uses the full title, message, button text and button URL. With session, daily or once frequency, editing any of these selects a separate campaign history, even for a typo. Old keys are preserved; test the chosen campaign without clearing unrelated site data.

FreeWebTools AI