Find your Publisher ID in AdSense → Account → Account information. Starts with "pub-" followed by 16 digits.

 Why Ads.txt?

Domain spoofing costs publishers over $1 billion annually. Ads.txt creates a public record of authorized sellers so advertisers can verify your site before bidding — stopping fraudsters from stealing your revenue.

ads.txt
# Enter your Publisher ID above to generate ads.txt

Quick Steps

1 Copy the generated ads.txt content
2 Create ads.txt in your root directory
3 Paste the content and save
4 Verify at yourdomain.com/ads.txt
5 Check in AdSense (takes 24-48 hours)

What Is an Ads.txt Generator and Why You Need One

An ads.txt generator creates a file that protects your ad revenue. This file lists who is allowed to sell ads on your site. It stops bad actors from faking your ad space, a problem called domain spoofing. If you use Google AdSense or any ad network, this tool is a must.

How to Use This Tool — Step by Step

1
Enter Your Ad Network Info Add your ad network name, like Google AdSense, and your publisher ID.
2
Add Your Account Details Enter your seller account information so the file knows who is authorized.
3
Set the Relationship Choose if the seller is direct or a reseller. This adds the correct rules.
4
Download and Upload Copy or download your ads.txt file, then place it in your website root folder.

Key Benefits

Protect Ad Revenue Stop scammers from selling fake ad space using your domain name.
Required by Networks Many ad networks now require ads.txt. This tool helps you stay compliant.
Build Trust Show advertisers your ad space is real and safe, which can increase your earnings.
Free and Fast Generate your ads.txt file instantly at no cost, with no technical knowledge needed.

Frequently Asked Questions

What is ads.txt for? Ads.txt lists who can legally sell ads on your site. It protects your ad revenue from fraud and spoofing.
Where do I put the ads.txt file? Upload it to your website root folder so it is reachable at yoursite.com/ads.txt.
Do I need ads.txt for AdSense? Yes, Google strongly recommends it. It protects your AdSense earnings and is easy to set up.

 Other Free Tools