Free AdSense ads.txt Generator — Instant & Accurate

FREE TOOL

AdSense ads.txt Generator

Enter your AdSense Publisher ID and get the exact ads.txt line to upload — no guessing the format, no copy-paste errors.

Find this in AdSense under Account → Account Information. It always starts with “pub-” followed by 16 digits.
That doesn’t look like a valid Publisher ID. It should be “pub-” followed by 16 digits.
Your ads.txt line
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0

What to Do With This Line

  1. Create a plain text file named exactly ads.txt (all lowercase, no other extension).
  2. Paste the generated line into that file and save it.
  3. Upload it to your site’s root directory, so it’s accessible at yoursite.com/ads.txt — not inside a subfolder.
  4. If you’re on WordPress and can’t access the root directly, plugins like “Ads.txt Manager” can publish it for you without needing FTP access.
  5. Give it a day or two, then verify it by visiting yoursite.com/ads.txt directly in your browser — you should see your line displayed as plain text.

Why This File Matters

ads.txt (Authorized Digital Sellers) is an industry-standard file that tells advertisers and ad exchanges which companies are actually allowed to sell ad space on your site. Without it, some advertisers won’t bid on your inventory at all, since they can’t verify you’re a legitimate seller — which can quietly reduce your AdSense earnings even if your account is fully approved and running normally.

It’s a one-time setup per site. Once it’s live and correctly formatted, you generally don’t need to touch it again unless you add another ad network later.

Common Questions

What if I already have an ads.txt file for another network?

Add this line as a new line in your existing file rather than replacing it — ads.txt files can list multiple authorized sellers at once, one per line.

Will my AdSense application get rejected without this?

ads.txt isn’t typically an approval requirement itself, but running without it once you’re live can reduce the advertiser demand competing for your ad space, which can lower your earnings even after approval.

Does this tool store my Publisher ID?

No. Everything runs in your browser — nothing you enter is saved, logged, or sent anywhere. Your Publisher ID isn’t a secret credential, but we still don’t store it.