ads.txt Generator
Build a correct ads.txt file for your website in seconds. Free, no sign-up, and it runs entirely in your browser.
Generate your ads.txt file
Find it in AdSense under Settings, then Account information. It starts with pub- followed by 16 digits.
Your ads.txt file
What each line means
Every ads.txt line has four fields, separated by commas. The last field is optional.
| Field | Meaning | Example |
|---|---|---|
| Advertising system domain | The ad system allowed to sell your inventory | google.com |
| Publisher ID | Your account ID with that ad system | pub-2589969366997656 |
| Relationship | DIRECT if you work with the system directly, RESELLER if another company sells for you | DIRECT |
| Certification authority ID | An optional ID buyers use to verify the seller | f08c47fec0942fa0 |
How ads.txt works
This free ads.txt generator is for website owners, bloggers, and publishers who run Google AdSense or other ad networks and need a valid ads.txt file. It runs entirely in your browser, needs no sign-up, and never sends your publisher ID anywhere. Enter your AdSense publisher ID, tick your networks, and copy or download the finished file.
What is an ads.txt file?
An ads.txt file is a small text file that lists the advertising sellers allowed to sell your website inventory. You place it at the root of your domain, for example yoursite.com/ads.txt. It helps advertisers check that the seller offering your ad space is authorised, which reduces fraud and protects your revenue from unauthorised resellers.
Why does Google require an ads.txt file?
Google recommends every AdSense publisher adds an ads.txt file with their publisher ID, and warns missing or incorrect entries can reduce earnings. Without a correct file, Google may treat your inventory as unauthorised and show fewer ads or none at all. The Interactive Advertising Bureau launched the ads.txt standard in 2017 to fight domain spoofing (IAB Tech Lab, 2017).
How do I add the ads.txt file to my website?
Generate the file with this tool, copy the text, and save it as a text file named ads.txt. Upload it to the root folder of your website, the same folder that holds your homepage, with your hosting file manager or FTP. WordPress users can use a file manager plugin. After uploading, open yoursite.com/ads.txt in a browser to confirm it loads.
What does each line in ads.txt mean?
Each line has four fields separated by commas: the advertising system domain, the publisher or seller ID, the relationship type, and the certification authority ID. The relationship is DIRECT when you deal with the ad system yourself, or RESELLER when another company sells your inventory. The last field is an optional tag that helps buyers verify the seller.
| Network | Line this tool adds |
|---|---|
| Google AdSense | google.com, your pub ID, DIRECT, f08c47fec0942fa0 |
| Google Ad Manager | google.com, your pub ID, RESELLER, f08c47fec0942fa0 |
| Ezoic | ezoic.com, YOUR-EZOIC-ID, DIRECT |
| Mediavine | mediavine.com, YOUR-MEDIAVINE-ID, DIRECT |
| Monumetric | monumetric.com, YOUR-MONUMETRIC-ID, DIRECT |
| Amazon | amazon-adsystem.com, YOUR-AMAZON-ID, DIRECT |
| Criteo | criteo.com, YOUR-CRITEO-ID, DIRECT |
How do I find my AdSense publisher ID?
Sign in to your AdSense account, open Settings, then Account information, and your publisher ID is shown there, starting with pub- followed by sixteen digits. The same ID appears in your AdSense ad code. Copy it exactly, including the pub- prefix, because a single wrong digit means Google will not match the file to your account.
How often should I update my ads.txt file?
Check your ads.txt file every few months and whenever you add or remove an ad network. Google AdSense flags incorrect entries in your account and it can take up to 24 hours for Google to crawl a change. Keep a copy of your file so you can rebuild it quickly after a site move or a new network signup.
Frequently asked questions
Is this ads.txt generator free?
Yes. It is completely free, with no sign-up and no limits. The file is generated in your browser, so your publisher ID never leaves your device.
Where do I upload the ads.txt file?
Upload it to the root folder of your website, the same folder that holds your homepage, using your hosting file manager or FTP. Then open yoursite.com/ads.txt in a browser to check that it loads.
What happens if my ads.txt file is wrong?
A wrong publisher ID or a missing line can reduce your earnings, because Google may treat your inventory as unauthorised. Fix the ID, re-upload the file, and allow up to 24 hours for Google to crawl the change.
Do I need ads.txt if I only use AdSense?
Yes. Google recommends an ads.txt file for every AdSense publisher, even if AdSense is your only network. The file has one line for AdSense, and it protects your inventory from unauthorised sellers.
What is the difference between DIRECT and RESELLER?
DIRECT means you have a direct account with the ad system, so it sells your inventory itself. RESELLER means another company is authorised to resell your inventory on your behalf.
How long does Google take to notice my ads.txt file?
Google usually crawls ads.txt within 24 hours of a change, although it can take longer on small or rarely crawled sites. You can check the status in AdSense under Account, then Settings.
Does this generator store my publisher ID?
No. The generator runs entirely in your browser. Nothing you type is uploaded, stored, or shared.
More tools you may need
Estimating what AdSense could pay? Try our AdSense Earnings Calculator. Also try the Meta Tag Generator for SEO tags and the QR Code Generator to share your site offline.


Listed on Awesome ToolsFree Online DirectoryinternetThe Launch Directorysoftware
