Password Generator Widget
Add a free, secure password generator to your own website with one line of HTML. It generates passwords entirely in the visitor’s browser — you host nothing and store nothing.
Live preview
Get the code
Paste this where you want the widget to appear. The attribution line below the frame is a normal link in your page, so it credits the tool properly — please keep it.
<iframe src="https://www.strong-password.com/embed.html"
title="Strong Password Generator" width="100%" height="340"
style="border:0;max-width:420px;border-radius:16px"></iframe>
<p style="margin:.5rem 0;font:13px system-ui,sans-serif">Free <a href="https://www.strong-password.com/" target="_blank" rel="noopener">password generator</a> by strong-password.com</p>Why this widget
It is a single, dependency-free HTML page loaded in an iframe, so it adds no JavaScript frameworks, web fonts, or trackers to your site and never blocks your own page from rendering. Every password is created locally with the browser’s crypto.getRandomValues() API — the same cryptographic engine as the full password generator — and the widget adapts to light or dark mode automatically.
Frequently Asked Questions
How do I add the password generator to my site?
Copy the embed code below and paste it into your page’s HTML wherever you want the widget to appear. It loads in a lightweight iframe and works on any site or CMS that allows custom HTML — no account, API key, or build step required.
Is the widget free to use?
Yes, completely free. We ask only that you keep the small attribution link to strong-password.com that is included in the embed code — it credits the tool and helps others find it.
Does the widget send passwords anywhere?
No. The widget generates every password entirely in the visitor’s browser using crypto.getRandomValues() — nothing is transmitted to us or anyone else. It runs the same client-side engine as the main site, just in a compact frame.
Can I change the widget’s size or appearance?
Yes. Adjust the width and height in the iframe tag. The widget is responsive up to a maximum width of 420px and switches between light and dark themes automatically based on the visitor’s system setting.
Will the widget slow down my page?
No. It is a tiny standalone HTML page with no frameworks, fonts, or trackers, loaded in an iframe so it never blocks your own page from rendering.
More tools
Written & reviewed by Andrew Ivanov, Fractional CTO. Last reviewed .