Embed an IP Address Widget
Show your visitors their own public IP address anywhere on your site. Pick the iframe or the JavaScript snippet, paste it into your HTML, and you're done. Both are free, key-less, and set no cookies.
Live preview
Option A — iframe (simplest)
Fully self-contained and style-isolated. Works in any HTML, including CMS blocks that allow iframes.
HTML
<iframe src="https://www.what-is-my-ip.best/embed/ip"
width="220" height="70" style="border:0" title="My IP"
loading="lazy"></iframe>Option B — JavaScript snippet
Injects the IP into your own <div> so you can style it to match your site. Place the <div id="wimip-widget"> where you want the IP to appear.
HTML
<div id="wimip-widget"></div> <script src="https://www.what-is-my-ip.best/embed/ip.js" async></script>
Prefer to build it yourself?
Both widgets are powered by our free IP API — call /api/ip directly and render the result however you like.
Attribution: both widgets include a small link back to what-is-my-ip.best. Keeping it helps us keep the API free — thank you.