{"id":20940,"date":"2026-11-20T23:28:48","date_gmt":"2026-11-20T17:58:48","guid":{"rendered":"https:\/\/www.fast2sms.com\/help\/free-otp-widget-for-website\/"},"modified":"2026-11-20T23:34:06","modified_gmt":"2026-11-20T18:04:06","slug":"free-otp-widget-for-website","status":"publish","type":"post","link":"https:\/\/www.fast2sms.com\/help\/free-otp-widget-for-website\/","title":{"rendered":"Free OTP widget for your website: add mobile number verification without coding"},"content":{"rendered":"<p>The Fast2SMS <strong>free OTP widget<\/strong> is a ready-made phone verification box (an OTP verification widget for your website) that you add to any website with two lines of code. Your visitor types their mobile number, gets a 6-digit code by SMS or WhatsApp through <strong>Smart OTP<\/strong>, and the widget tells your page that the number is verified. You do not need a server, a backend or an API key on the website. The widget itself costs nothing. You pay only for each OTP it sends.<\/p>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Add a free OTP widget to your website<\/strong><p>Create a widget in Smart OTP, paste 2 lines on your site and pay only for the OTPs you send.<\/p><\/div><div class=\"f2s-cta__actions\"><a class=\"f2s-cta__btn f2s-cta__btn--primary\" href=\"https:\/\/www.fast2sms.com\/\"><span>Sign up free<\/span> <span class=\"f2sh-btn__arrow\" aria-hidden=\"true\">&rarr;<\/span><\/a><a class=\"f2s-cta__btn f2s-cta__btn--ghost\" href=\"https:\/\/www.fast2sms.com\/meet\/\" target=\"_blank\" rel=\"noopener\">Book a free meeting<\/a><\/div><\/aside>\n<h2>What your visitors see<\/h2>\n<p>The widget shows a <strong>Mobile number<\/strong> field with +91 in front and a <strong>Send OTP<\/strong> button. You can add a title such as &#8220;Verify your mobile number&#8221; and your logo. Here it is on the sign-up page of a sample website:<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-site-signup-hd.webp\" width=\"768\" height=\"468\" loading=\"lazy\" decoding=\"async\" alt=\"Sample sign-up page Create your account with the OTP widget: title Verify your mobile number, a Mobile number field with +91 and a Send OTP button, Secured by Fast2SMS below\"><figcaption>The OTP widget on a sample sign-up page, before the visitor types a number.<\/figcaption><\/figure>\n<p>After <strong>Send OTP<\/strong>, a short &#8220;I am human&#8221; check runs inside the widget. Then the visitor sees &#8220;Enter the 6-digit code sent to 90xxxxxx01&#8221; with a <strong>Change<\/strong> link, six code boxes, a <strong>Verify<\/strong> button and a <strong>Resend code<\/strong> timer. On phones, the keyboard can offer to fill in the code from the SMS.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-site-signup-code-hd.webp\" width=\"768\" height=\"527\" loading=\"lazy\" decoding=\"async\" alt=\"OTP widget asking to enter the 6-digit code sent to 90xxxxxx01, with a Change link, six code boxes with 4 digits typed, a Verify button and Resend code in 24s\"><figcaption>The code step: six boxes, Verify and a Resend timer.<\/figcaption><\/figure>\n<p>When the code is right, the widget shows &#8220;Mobile number verified&#8221; with a <strong>Use a different number<\/strong> link. Your page gets a one-time token, so your form or your server can go ahead.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-site-signup-verified-hd.webp\" width=\"768\" height=\"397\" loading=\"lazy\" decoding=\"async\" alt=\"OTP widget showing a green tick with Mobile number verified and a Use a different number link\"><figcaption>After a correct code the number is verified.<\/figcaption><\/figure>\n<p>The widget fits small screens. This is the same page on a phone:<\/p>\n<figure class=\"f2s-shot\" style=\"max-width:360px;margin-left:auto;margin-right:auto\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-site-signup-m-code-hd.webp\" width=\"412\" height=\"534\" loading=\"lazy\" decoding=\"async\" alt=\"The OTP widget on a phone screen on the Demo Traders sign-up page: code sent to 90xxxxxx01, six code boxes, Verify button and Resend code in 24s\"><figcaption>The same widget on a phone.<\/figcaption><\/figure>\n<h2>Is the OTP widget really free?<\/h2>\n<p>Yes. There is no widget fee, no setup fee and no monthly fee. Each OTP the widget sends is charged from your Fast2SMS wallet at your normal Smart OTP rate, the same as an OTP sent with the Smart OTP API. Codes you send from the <strong>Test<\/strong> tab are real OTPs, so they are charged too.<\/p>\n<div class=\"f2s-note f2s-volume\"><p><strong>Sending in bulk?<\/strong> For high OTP volumes our team offers discounted rates. <a href=\"https:\/\/www.fast2sms.com\/meet\/\" target=\"_blank\" rel=\"noopener\">Talk to our team<\/a> or see <a href=\"https:\/\/www.fast2sms.com\/bulk-sms-pricing\">OTP pricing<\/a>.<\/p><\/div>\n<p>Spend limits in <strong>Settings<\/strong> (step 6) keep your wallet safe from bots.<\/p>\n<h2>Before you start<\/h2>\n<ul>\n<li>A Fast2SMS account with wallet balance.<\/li>\n<li>An approved Smart OTP template (OTP ID): SMS with an approved DLT template, or WhatsApp with an approved authentication or utility template.<\/li>\n<li>The address of your website, for example demotraders.in.<\/li>\n<li>Visitors with Indian mobile numbers. The widget accepts 10-digit numbers that start with 6, 7, 8 or 9.<\/li>\n<\/ul>\n<h2>How to add the free OTP widget to your website<\/h2>\n<ol class=\"f2s-steps\">\n<li>\n<h3>Get an approved OTP ID<\/h3>\n<p>The widget sends codes with one Smart OTP template, called an OTP ID. In <strong>Smart OTP<\/strong>, open <strong>OTP Template List<\/strong> and click <strong>Add OTP Template<\/strong>. For SMS, choose your approved DLT OTP template. For WhatsApp, choose an approved authentication or utility template. You can add the other channel as a fallback. For the full steps, see the <a href=\"https:\/\/www.fast2sms.com\/help\/smart-otp-setup-guide-fast2sms\/\">Smart OTP setup guide<\/a>.<\/p>\n<\/li>\n<li>\n<h3>Open New Widget and give it a name<\/h3>\n<p>In the Smart OTP sidebar, find the <strong>OTP WIDGET<\/strong> group and click <strong>New Widget<\/strong>. In <strong>Widget name<\/strong>, type a name you will recognise later, such as &#8220;Website signup&#8221;.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-new-hd-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Empty New widget page with Setup, Design and Settings tabs, fields Widget name, OTP ID and Websites, a Template variables switch and a Create widget button\"><figcaption>New Widget in the OTP WIDGET group of the Smart OTP sidebar.<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Choose the OTP ID<\/h3>\n<p>Click <strong>Select OTP ID<\/strong>. The <strong>Select OTP Template<\/strong> pop-up shows each approved template as a phone preview, with the filters <strong>All<\/strong>, <strong>SMS<\/strong> and <strong>WhatsApp<\/strong> and a search box. Click the template you want. It becomes a card with its channel and sender, and the message preview shows on the right. To pick another one later, click <strong>Change OTP ID<\/strong>.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-new-otp-picker-hd-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Select OTP Template pop-up with All, SMS and WhatsApp filters and phone previews of WhatsApp and SMS OTP templates, each with its OTP ID on top\"><figcaption>Pick the OTP template the widget should send.<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Add your websites and template variables<\/h3>\n<p>In <strong>Websites<\/strong>, type each address on its own line, for example demotraders.in and www.demotraders.in. Use *.example.com to allow all subdomains. The widget works only on these websites. On any other site it shows &#8220;Mobile verification is not available on this page right now.&#8221; To try it on your own computer first, you can add localhost.<\/p>\n<p>If your OTP template has other variables besides the code, such as a validity time, turn on <strong>Template variables<\/strong> and type fixed values for them, separated by | (the same format as the variables_values field of the API). Then click <strong>Create widget<\/strong>.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-sms-setup-hd-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Setup tab of the widget Website signup with SMS OTP ID b35f0e7a91 from sender DMTRDS, websites demotraders.in, www.demotraders.in and localhost, and the SMS message preview\"><figcaption>The Setup tab after the widget is created (test account).<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Match the design to your site<\/h3>\n<p>On <strong>Design<\/strong>, set the <strong>Button colour<\/strong> (teal #12AA9E by default) and the <strong>Button text<\/strong> (default &#8220;Send OTP&#8221;). Turn on <strong>Title and logo<\/strong> to show a heading such as &#8220;Verify your mobile number&#8221; and your logo from a <strong>Logo URL<\/strong>. The preview on the right changes as you type. Click <strong>Save changes<\/strong>.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-sms-design-hd-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Design tab with Button colour #12AA9E, Button text Send OTP, the Title and logo switch on with the title Verify your mobile number, and a live preview of the widget\"><figcaption>Colour, button text, title and logo, with a live preview.<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Set limits, the next page and a webhook<\/h3>\n<p>On <strong>Settings<\/strong>, the <strong>Limits<\/strong> protect your wallet from bots. Each limit has a switch. A limit that is off uses the safe default:<\/p>\n<div class=\"f2s-facts\">\n<table>\n<thead>\n<tr>\n<th>Limit<\/th>\n<th>Default when off<\/th>\n<th>Highest you can set<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Max spend per day<\/td>\n<td>&#8377;100<\/td>\n<td>&#8377;5,000<\/td>\n<\/tr>\n<tr>\n<td>Max spend per month<\/td>\n<td>&#8377;1,000<\/td>\n<td>&#8377;50,000<\/td>\n<\/tr>\n<tr>\n<td>Max codes per day<\/td>\n<td>200<\/td>\n<td>5,000<\/td>\n<\/tr>\n<tr>\n<td>Max codes per number per hour<\/td>\n<td>3<\/td>\n<td>10<\/td>\n<\/tr>\n<tr>\n<td>Max codes per visitor per hour<\/td>\n<td>10<\/td>\n<td>50<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>When a daily or monthly cap is reached, the widget stops sending until midnight IST, and <strong>My Widgets<\/strong> shows &#8220;Stopped today&#8221;.<\/p>\n<p>Two more options sit on the same tab. <strong>After verify, open a page<\/strong> sends the visitor to a page you choose, such as a thank-you page. <strong>Send verified numbers to my webhook<\/strong> posts each verified number to your https URL. Developers can read how both work in <a href=\"https:\/\/www.fast2sms.com\/help\/otp-widget-verify-token-webhook\/\">OTP widget webhook and f2s_token check<\/a>.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-settings-on-full-hd-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Settings tab with all five limits switched on: max spend per day 50 rupees, per month 500 rupees, 100 codes per day, 3 codes per number per hour and 5 per visitor per hour\"><figcaption>Limits switched on with lower values than the defaults.<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Test it in the panel<\/h3>\n<p>After saving, the widget page has six tabs: <strong>Setup<\/strong>, <strong>Design<\/strong>, <strong>Settings<\/strong>, <strong>Test<\/strong>, <strong>Install<\/strong> and <strong>Usage<\/strong>. Open <strong>Test<\/strong>, type your own number and click <strong>Send OTP<\/strong>. As the tab says, a real OTP is sent and charged. Type the code to check the whole flow. <strong>Reload<\/strong> starts again.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-sms-test-number-hd-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Test tab with the note Try it with your own number. A real OTP is sent and charged, the widget with a number typed and a Reload link\"><figcaption>The Test tab runs the real widget inside the panel.<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Paste the code into your website HTML<\/h3>\n<p>Open <strong>Install<\/strong>, stay on the <strong>Widget<\/strong> sub-tab and click <strong>Copy<\/strong>. Paste the two lines into your page where the box should appear:<\/p>\n<pre><code class=\"language-html\">&lt;script src=&quot;https:\/\/www.fast2sms.com\/widget\/otp-js?v=1.0.5&quot; defer&gt;&lt;\/script&gt;\n&lt;div data-f2s-otp-widget=&quot;YOUR_WIDGET_KEY&quot;&gt;&lt;\/div&gt;<\/code><\/pre>\n<p>Your widget key is already filled in when you copy from the panel. Always copy from there, because the version number in the first line can change.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-install-simple-hd-2-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Install tab, Widget sub-tab with the text Paste this on your website where the widget should show, a Copy button and the script and div code\"><figcaption>Install, Widget: two lines to paste.<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Watch usage and switch it off when needed<\/h3>\n<p><strong>Usage<\/strong> shows today&#8217;s <strong>Sent<\/strong>, <strong>Verified<\/strong>, <strong>Wrong codes<\/strong>, <strong>Bots blocked<\/strong> and <strong>Spent today<\/strong>, plus the amount for <strong>This month<\/strong>. The <strong>Widget on<\/strong> switch at the top right turns the widget off on all your sites at once.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-sms-usage-hd-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Usage tab with tiles Sent, Verified, Wrong codes, Bots blocked, Spent today and This month, all at zero\"><figcaption>Usage for today and this month.<\/figcaption><\/figure>\n<\/li>\n<\/ol>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Verify mobile numbers on your site today<\/strong><p>Make your first OTP widget in a few minutes. No server and no widget fee.<\/p><\/div><div class=\"f2s-cta__actions\"><a class=\"f2s-cta__btn f2s-cta__btn--primary\" href=\"https:\/\/www.fast2sms.com\/\"><span>Sign up free<\/span> <span class=\"f2sh-btn__arrow\" aria-hidden=\"true\">&rarr;<\/span><\/a><a class=\"f2s-cta__btn f2s-cta__btn--ghost\" href=\"https:\/\/www.fast2sms.com\/meet\/\" target=\"_blank\" rel=\"noopener\">Book a free meeting<\/a><\/div><\/aside>\n<h2>Four ways to show the widget<\/h2>\n<p>The <strong>Install<\/strong> tab has five sub-tabs. The first four are ways to put the widget on your page. The fifth, <strong>Server<\/strong>, is for developers who check the result on their own server.<\/p>\n<div class=\"f2s-facts\">\n<table>\n<thead>\n<tr>\n<th>Install sub-tab<\/th>\n<th>What you add<\/th>\n<th>Good for<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Widget<\/td>\n<td>A <code>div<\/code> with <code>data-f2s-otp-widget<\/code><\/td>\n<td>A verification box on a sign-up or login page<\/td>\n<\/tr>\n<tr>\n<td>Popup<\/td>\n<td><code>data-f2s-otp-popup<\/code> on your own button<\/td>\n<td>A &#8220;Verify mobile&#8221; or cash on delivery button<\/td>\n<\/tr>\n<tr>\n<td>Mobile field<\/td>\n<td><code>data-f2s-otp-attach<\/code> on your mobile input<\/td>\n<td>A form that already has a mobile number field<\/td>\n<\/tr>\n<tr>\n<td>Form<\/td>\n<td><code>data-f2s-otp-protect<\/code> on your form<\/td>\n<td>A form that must not submit until the number is verified<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>Full code for each mode, the 9 popup positions and the JavaScript events are in <a href=\"https:\/\/www.fast2sms.com\/help\/otp-widget-popup-button-mobile-field\/\">OTP popup on button click, mobile field and form protect<\/a>. To check the result on your server, see <a href=\"https:\/\/www.fast2sms.com\/help\/otp-widget-verify-token-webhook\/\">verify f2s_token and the OTP widget webhook<\/a>.<\/p>\n<h2>Hosted OTP widget or OTP widget kits<\/h2>\n<p>Fast2SMS also has the older OTP widget kits. They are open-source code that you run on your own server with your own API key, and they suit developers who want full control. If you prefer to host the code yourself, see the <a href=\"https:\/\/www.fast2sms.com\/help\/otp-verification-widget-fast2sms\/\">OTP widget kits<\/a>.<\/p>\n<div class=\"f2s-facts\">\n<table>\n<thead>\n<tr>\n<th><\/th>\n<th>Hosted OTP widget (this page)<\/th>\n<th>OTP widget kits<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Your own server<\/td>\n<td>Not needed<\/td>\n<td>Needed (PHP, Node.js, Python and others)<\/td>\n<\/tr>\n<tr>\n<td>API key<\/td>\n<td>Never on your website or server<\/td>\n<td>In your backend settings<\/td>\n<\/tr>\n<tr>\n<td>Setup<\/td>\n<td>Panel settings plus 2 lines of code<\/td>\n<td>Download, configure and deploy<\/td>\n<\/tr>\n<tr>\n<td>Limits and bot check<\/td>\n<td>Built in, set in Settings<\/td>\n<td>Handled by your backend<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>Mobile number verification for a website without coding<\/h2>\n<p>You only paste the code the panel gives you, so you do not have to write any. Most website builders have a place for your own HTML, such as an HTML block or a code embed. We have separate guides for <a href=\"https:\/\/www.fast2sms.com\/help\/add-otp-verification-wordpress-without-plugin\/\">WordPress without a plugin<\/a>, <a href=\"https:\/\/www.fast2sms.com\/help\/shopify-otp-verification-widget\/\">Shopify<\/a> and <a href=\"https:\/\/www.fast2sms.com\/help\/add-otp-verification-wix-webflow-blogger\/\">Wix, Webflow and Blogger<\/a>. For a login that sends the code on WhatsApp, see the <a href=\"https:\/\/www.fast2sms.com\/help\/whatsapp-otp-widget-for-website\/\">WhatsApp OTP widget<\/a>. In Hindi: <a href=\"https:\/\/www.fast2sms.com\/help\/website-par-otp-verification-kaise-lagaye\/\">website par OTP verification kaise lagaye<\/a>.<\/p>\n<p>Some builders run custom code inside their own frame on a different domain. There the widget shows &#8220;not available&#8221;. Use the builder&#8217;s site-wide custom code or a code block that runs on your own domain instead, then check it with the <strong>Test<\/strong> tab and on the live page.<\/p>\n<p>If your site sends a Content Security Policy header, allow Fast2SMS in it: <code>script-src https:\/\/www.fast2sms.com; frame-src https:\/\/www.fast2sms.com<\/code>. Most small sites do not have one.<\/p>\n<h2>How the widget keeps your account safe<\/h2>\n<ul>\n<li>Your API key never goes into the website. The widget runs in a frame from www.fast2sms.com.<\/li>\n<li>Your page gets only a one-time token and the masked number, such as 98xxxxxx10. The code and the full number stay inside the widget. Your server can get the full number through the token check or the webhook.<\/li>\n<li>A bot check runs on every send and resend, on top of the per-number, per-visitor, per-day and spend limits. Read more about <a href=\"https:\/\/www.fast2sms.com\/help\/otp-sms-pumping-fraud-protection\/\">OTP SMS pumping fraud<\/a>.<\/li>\n<li>The code has 6 digits and is valid for 10 minutes. Resend works after 30 seconds and your own Smart OTP resend setting.<\/li>\n<\/ul>\n<h2>Common problems and fixes<\/h2>\n<div class=\"f2s-facts\">\n<table>\n<thead>\n<tr>\n<th>What you see<\/th>\n<th>What to do<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>&#8220;Mobile verification is not available on this page right now.&#8221;<\/td>\n<td>Add the exact address in <strong>Websites<\/strong> (with and without www), check that <strong>Widget on<\/strong> is on, and see the website builder note above.<\/td>\n<\/tr>\n<tr>\n<td>Nothing shows on the page<\/td>\n<td>Check that both lines were pasted and that your builder did not remove the script line.<\/td>\n<\/tr>\n<tr>\n<td>&#8220;Stopped today&#8221; in My Widgets<\/td>\n<td>A daily or monthly cap was reached. Raise the limit in <strong>Settings<\/strong> or wait until midnight IST.<\/td>\n<\/tr>\n<tr>\n<td>The code does not arrive<\/td>\n<td>Check your wallet balance, the OTP template and the Smart OTP <strong>Delivery Report<\/strong>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<section class=\"f2s-faq\">\n<h2>Frequently asked questions<\/h2>\n<h3>Is the Fast2SMS OTP widget free?<\/h3>\n<p>Yes. Creating and using the widget is free, with no setup or monthly fee. You pay only for each OTP sent, at your Smart OTP rate, from your wallet.<\/p>\n<h3>Can I add OTP verification to my website without coding?<\/h3>\n<p>Yes. You set everything in the panel and paste two lines of code that the <strong>Install<\/strong> tab gives you. No server or backend is needed.<\/p>\n<h3>Can the widget send the OTP on WhatsApp?<\/h3>\n<p>Yes. Choose a WhatsApp OTP ID in <strong>Setup<\/strong>. See the <a href=\"https:\/\/www.fast2sms.com\/help\/whatsapp-otp-widget-for-website\/\">WhatsApp OTP widget guide<\/a>.<\/p>\n<h3>How do I show an OTP popup on my website?<\/h3>\n<p>Use the <strong>Popup<\/strong> install mode. Your own button opens the widget in a popup. Details are in the <a href=\"https:\/\/www.fast2sms.com\/help\/otp-widget-popup-button-mobile-field\/\">popup and mobile field guide<\/a>.<\/p>\n<h3>How many widgets and websites can I add?<\/h3>\n<p>Up to 20 widgets per account, and up to 20 websites per widget.<\/p>\n<h3>How does my server know the number was really verified?<\/h3>\n<p>Check the one-time f2s_token with the verify-token API, or receive the number on your webhook. Both are explained in the <a href=\"https:\/\/www.fast2sms.com\/help\/otp-widget-verify-token-webhook\/\">f2s_token and webhook guide<\/a>.<\/p>\n<\/section>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Start with the free OTP widget<\/strong><p>Sign up, create an OTP template and a widget, and verify your first visitor.<\/p><\/div><div class=\"f2s-cta__actions\"><a class=\"f2s-cta__btn f2s-cta__btn--primary\" href=\"https:\/\/www.fast2sms.com\/\"><span>Sign up free<\/span> <span class=\"f2sh-btn__arrow\" aria-hidden=\"true\">&rarr;<\/span><\/a><a class=\"f2s-cta__btn f2s-cta__btn--ghost\" href=\"https:\/\/www.fast2sms.com\/meet\/\" target=\"_blank\" rel=\"noopener\">Book a free meeting<\/a><\/div><\/aside>\n<h2>Related guides<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.fast2sms.com\/help\/otp-widget-popup-button-mobile-field\/\">OTP popup on button click, mobile field and form protect<\/a><\/li>\n<li><a href=\"https:\/\/www.fast2sms.com\/help\/otp-widget-verify-token-webhook\/\">OTP widget webhook and f2s_token check<\/a><\/li>\n<li><a href=\"https:\/\/www.fast2sms.com\/help\/whatsapp-otp-widget-for-website\/\">WhatsApp OTP widget for your website<\/a><\/li>\n<li><a href=\"https:\/\/www.fast2sms.com\/help\/smart-otp-setup-guide-fast2sms\/\">Smart OTP setup guide<\/a><\/li>\n<li><a href=\"https:\/\/www.fast2sms.com\/otp-sms\">Smart OTP: SMS and WhatsApp OTP<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The Fast2SMS free OTP widget is a ready-made phone verification box (an OTP verification widget for your website) that you add to any website with two lines of code. Your visitor types their mobile number, gets a 6-digit code by SMS or WhatsApp through Smart OTP, and the widget tells your page that the number [&hellip;]<\/p>\n","protected":false},"featured_media":20924,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-20940","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-otp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Free OTP Widget for Website (No Coding) | Fast2SMS<\/title>\n<meta name=\"description\" content=\"Add the free Fast2SMS OTP widget to any website with 2 lines of code. Visitors verify their mobile number by SMS or WhatsApp. No server, pay per OTP only.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fast2sms.com\/help\/free-otp-widget-for-website\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Free OTP Widget for Website (No Coding) | Fast2SMS\" \/>\n<meta property=\"og:description\" content=\"Add the free Fast2SMS OTP widget to any website with 2 lines of code. Visitors verify their mobile number by SMS or WhatsApp. No server, pay per OTP only.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fast2sms.com\/help\/free-otp-widget-for-website\/\" \/>\n<meta property=\"og:site_name\" content=\"Fast2SMS\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Fast2SMS\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-20T17:58:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-20T18:04:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-site-signup-hd.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1536\" \/>\n\t<meta property=\"og:image:height\" content=\"936\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@fast2sms\" \/>\n<meta name=\"twitter:site\" content=\"@fast2sms\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/free-otp-widget-for-website\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/free-otp-widget-for-website\\\/\"},\"author\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"headline\":\"Free OTP widget for your website: add mobile number verification without coding\",\"datePublished\":\"2026-11-20T17:58:48+00:00\",\"dateModified\":\"2026-11-20T18:04:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/free-otp-widget-for-website\\\/\"},\"wordCount\":2037,\"publisher\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/free-otp-widget-for-website\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/otpw-site-signup-hd.webp\",\"articleSection\":[\"OTP\"],\"inLanguage\":\"en-IN\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/free-otp-widget-for-website\\\/\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/free-otp-widget-for-website\\\/\",\"name\":\"Free OTP Widget for Website (No Coding) | Fast2SMS\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/free-otp-widget-for-website\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/free-otp-widget-for-website\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/otpw-site-signup-hd.webp\",\"datePublished\":\"2026-11-20T17:58:48+00:00\",\"dateModified\":\"2026-11-20T18:04:06+00:00\",\"description\":\"Add the free Fast2SMS OTP widget to any website with 2 lines of code. Visitors verify their mobile number by SMS or WhatsApp. No server, pay per OTP only.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/free-otp-widget-for-website\\\/#breadcrumb\"},\"inLanguage\":\"en-IN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/free-otp-widget-for-website\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-IN\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/free-otp-widget-for-website\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/otpw-site-signup-hd.webp\",\"contentUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/otpw-site-signup-hd.webp\",\"width\":1536,\"height\":936,\"caption\":\"Sample sign-up page Create your account with the OTP widget: title Verify your mobile number, a Mobile number field with +91 and a Send OTP button, Secured by Fast2SMS below\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/free-otp-widget-for-website\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OTP\",\"item\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Free OTP widget for your website: add mobile number verification without coding\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/#website\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/\",\"name\":\"Fast2SMS\",\"description\":\"Help\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"inLanguage\":\"en-IN\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\",\"name\":\"Fast2SMS\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#logo\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/Fast2SMS.png\",\"contentUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/Fast2SMS.png\",\"caption\":\"Fast2SMS\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#logo\"},\"email\":\"support@fast2sms.com\",\"telephone\":\"+91-6262778822\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Fast2SMS\",\"https:\\\/\\\/www.instagram.com\\\/fast2sms\",\"https:\\\/\\\/x.com\\\/fast2sms\",\"https:\\\/\\\/www.youtube.com\\\/Fast2SMSofficial\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/fast2sms\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Free OTP Widget for Website (No Coding) | Fast2SMS","description":"Add the free Fast2SMS OTP widget to any website with 2 lines of code. Visitors verify their mobile number by SMS or WhatsApp. No server, pay per OTP only.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.fast2sms.com\/help\/free-otp-widget-for-website\/","og_locale":"en_US","og_type":"article","og_title":"Free OTP Widget for Website (No Coding) | Fast2SMS","og_description":"Add the free Fast2SMS OTP widget to any website with 2 lines of code. Visitors verify their mobile number by SMS or WhatsApp. No server, pay per OTP only.","og_url":"https:\/\/www.fast2sms.com\/help\/free-otp-widget-for-website\/","og_site_name":"Fast2SMS","article_publisher":"https:\/\/www.facebook.com\/Fast2SMS\/","article_published_time":"2026-11-20T17:58:48+00:00","article_modified_time":"2026-11-20T18:04:06+00:00","og_image":[{"width":1536,"height":936,"url":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-site-signup-hd.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","twitter_creator":"@fast2sms","twitter_site":"@fast2sms","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.fast2sms.com\/help\/free-otp-widget-for-website\/#article","isPartOf":{"@id":"https:\/\/www.fast2sms.com\/help\/free-otp-widget-for-website\/"},"author":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"headline":"Free OTP widget for your website: add mobile number verification without coding","datePublished":"2026-11-20T17:58:48+00:00","dateModified":"2026-11-20T18:04:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fast2sms.com\/help\/free-otp-widget-for-website\/"},"wordCount":2037,"publisher":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"image":{"@id":"https:\/\/www.fast2sms.com\/help\/free-otp-widget-for-website\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-site-signup-hd.webp","articleSection":["OTP"],"inLanguage":"en-IN"},{"@type":"WebPage","@id":"https:\/\/www.fast2sms.com\/help\/free-otp-widget-for-website\/","url":"https:\/\/www.fast2sms.com\/help\/free-otp-widget-for-website\/","name":"Free OTP Widget for Website (No Coding) | Fast2SMS","isPartOf":{"@id":"https:\/\/www.fast2sms.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.fast2sms.com\/help\/free-otp-widget-for-website\/#primaryimage"},"image":{"@id":"https:\/\/www.fast2sms.com\/help\/free-otp-widget-for-website\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-site-signup-hd.webp","datePublished":"2026-11-20T17:58:48+00:00","dateModified":"2026-11-20T18:04:06+00:00","description":"Add the free Fast2SMS OTP widget to any website with 2 lines of code. Visitors verify their mobile number by SMS or WhatsApp. No server, pay per OTP only.","breadcrumb":{"@id":"https:\/\/www.fast2sms.com\/help\/free-otp-widget-for-website\/#breadcrumb"},"inLanguage":"en-IN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fast2sms.com\/help\/free-otp-widget-for-website\/"]}]},{"@type":"ImageObject","inLanguage":"en-IN","@id":"https:\/\/www.fast2sms.com\/help\/free-otp-widget-for-website\/#primaryimage","url":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-site-signup-hd.webp","contentUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otpw-site-signup-hd.webp","width":1536,"height":936,"caption":"Sample sign-up page Create your account with the OTP widget: title Verify your mobile number, a Mobile number field with +91 and a Send OTP button, Secured by Fast2SMS below"},{"@type":"BreadcrumbList","@id":"https:\/\/www.fast2sms.com\/help\/free-otp-widget-for-website\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fast2sms.com\/help\/"},{"@type":"ListItem","position":2,"name":"OTP","item":"https:\/\/www.fast2sms.com\/help\/otp\/"},{"@type":"ListItem","position":3,"name":"Free OTP widget for your website: add mobile number verification without coding"}]},{"@type":"WebSite","@id":"https:\/\/www.fast2sms.com\/help\/#website","url":"https:\/\/www.fast2sms.com\/help\/","name":"Fast2SMS","description":"Help","publisher":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"inLanguage":"en-IN"},{"@type":"Organization","@id":"https:\/\/www.fast2sms.com\/#organization","name":"Fast2SMS","url":"https:\/\/www.fast2sms.com\/","logo":{"@type":"ImageObject","@id":"https:\/\/www.fast2sms.com\/#logo","url":"https:\/\/www.fast2sms.com\/Fast2SMS.png","contentUrl":"https:\/\/www.fast2sms.com\/Fast2SMS.png","caption":"Fast2SMS"},"image":{"@id":"https:\/\/www.fast2sms.com\/#logo"},"email":"support@fast2sms.com","telephone":"+91-6262778822","sameAs":["https:\/\/www.facebook.com\/Fast2SMS","https:\/\/www.instagram.com\/fast2sms","https:\/\/x.com\/fast2sms","https:\/\/www.youtube.com\/Fast2SMSofficial","https:\/\/www.linkedin.com\/company\/fast2sms"]}]}},"_links":{"self":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/20940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/comments?post=20940"}],"version-history":[{"count":1,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/20940\/revisions"}],"predecessor-version":[{"id":21000,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/20940\/revisions\/21000"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/media\/20924"}],"wp:attachment":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/media?parent=20940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/categories?post=20940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/tags?post=20940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}