> ads.txt --generate

Free Ads.txt Generator for AdSense and Ad Networks

Create a valid ads.txt or app-ads.txt file in minutes. Add your AdSense and ad network sellers, remove duplicates, check every line and download the file ready to upload.

5.0 (1 rating) · Built and tested by the SpellMistake team · Your data stays private
AT A GLANCE
  • What it doesBuilds a valid ads.txt or app-ads.txt file
  • AccuracyRule-based, follows the IAB standard
  • Works withAdSense, Ad Manager and any ad network
  • PriceFree, no sign-up, no limit
  • Last reviewed
Add a seller
Relationship
Paste lines from your ad networksDuplicates are removed
Optional details
Sellers
Ad systemAccount IDType
ads.txt

> define

What Is an Ads.txt Generator?

Short answer
An ads.txt generator is a tool that creates the ads.txt file for your website. This file lists every company that is allowed to sell ads on your site, such as Google AdSense. The generator writes each line in the correct format, so ad buyers can trust your inventory and you do not lose ad income.

Ads.txt means “Authorized Digital Sellers”. It was created by the IAB Tech Lab to stop ad fraud, where fake sellers pretend to sell ads on your site. Most ad buyers will not pay for ads on a site with a missing or wrong ads.txt file, so one small mistake can cut your earnings.

Quick facts
> how --to

How to Use the Ads.txt Generator

You can create and upload your file in about two minutes.
01

Choose ads.txt or app-ads.txt

Pick ads.txt for a website or app-ads.txt for a mobile or TV app.
02

Add your sellers

Enter the ad system domain, your account ID and the relationship, or paste the lines your ad networks gave you.
03

Add optional records

Add a contact email, owner domain or manager domain if your ad partners ask for them.
04

Fix any warnings

The tool checks every line and tells you what is wrong, such as a missing ID or a bad domain.
05

Download and upload

Download the file and upload it to the root of your domain, so it opens at yourdomain.com/ads.txt.

Where to upload ads.txt

  • The file must be at the root of your main domain: https://example.com/ads.txt. A subfolder will not work.
  • WordPress: upload it with your host’s file manager or FTP into the same folder as wp-config.php.
  • Open the URL in your browser to check that it shows plain text.
  • Ad systems can take a few days to read a new or changed file.
Ready to try it? It is free and takes less than a minute.
> ls ./guide

Ads.txt Line Format Explained

Every seller line has the same 4 parts, separated by commas.
PartExampleWhat it means
Ad system domaingoogle.comThe domain of the ad company that sells your ads
Account IDpub-0000000000000000Your publisher ID at that company
RelationshipDIRECT or RESELLERDIRECT if you control the account, RESELLER if a partner sells for you
Certification ID (optional)f08c47fec0942fa0The ad system’s ID from the Trustworthy Accountability Group (TAG)
CONTACTcontact=ads@example.comWho to contact about this file
OWNERDOMAINownerdomain=example.comThe business domain that owns the site
MANAGERDOMAINmanagerdomain=partner.comA company that manages your ad inventory
A full AdSense line looks like: google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0. Use your own publisher ID from your AdSense account.
> cat methodology.md

How the Ads.txt Generator Works

Here is how the generator turns your sellers into a valid file.
  1. 01

    You add or paste lines

    Add sellers one by one, or paste full lines from your ad networks. Comments and blank lines are handled for you.

    In your browser
  2. 02

    Each line is checked

    The ad system must be a domain, the account ID must be there, and the type must be DIRECT or RESELLER.

    In your browser
  3. 03

    Google IDs are verified

    AdSense IDs must start with pub- and have 16 digits. The tool warns you if one looks wrong.

    In your browser
  4. 04

    Duplicates are removed

    Lines that are the same are only kept once, so the file stays clean.

    In your browser
  5. 05

    The file is built

    Sellers come first, then the CONTACT, OWNERDOMAIN and MANAGERDOMAIN records, ready to download.

    In your browser
  • One record per line, fields separated by commas.
  • The ad system domain should be the company’s main domain, such as google.com.
  • The relationship must be DIRECT or RESELLER.
  • Lines that start with # are comments.
  • Variables like CONTACT=, OWNERDOMAIN= and MANAGERDOMAIN= use the name=value format.
  • The file is plain text and lives at the root of the domain.

Rules From the Ads.txt Standard

The generator follows the IAB Tech Lab ads.txt specification.
# ads.txt for example.com
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0
example-network.com, 12345, RESELLER
contact=ads@example.com
ownerdomain=example.com
A simple ads.txt for a site that uses AdSense and one partner network.
> test --report

Is the Ads.txt Generator Accurate?

Yes. Every line is built and checked against the IAB Tech Lab ads.txt format, and the tool warns you about missing IDs, wrong types and bad domains before you download.
Rule-based
accuracy level
checks every line
IAB spec
what results are based on
ads.txt standard
Monthly
full re-test
against known answers
24/7
bug reports open
fixed as high priority
What we test every month

Accuracy in plain words

The tool checks the format of each line. It cannot check whether an account ID really belongs to you, because only the ad network knows that. Always copy IDs straight from your ad accounts.

Keep in mind
A valid format does not mean the IDs are right. Copy each line from your ad network dashboard, and update the file when you add or drop a partner.
> features

Features of the Ads.txt Generator

Everything you need for a clean, valid ads.txt file.

ads.txt and app-ads.txt

Make the file for a website or for a mobile or TV app.

Bulk paste

Paste the lines your ad networks gave you in one go.

Line checks

Every line is checked, with a clear message for each problem.

No duplicates

Repeated lines are removed automatically.

Extra records

Add CONTACT, OWNERDOMAIN and MANAGERDOMAIN in a click.

Download or copy

Get the finished file ready to upload to your site root.

> limits --honest

Limitations of This Tool

No tool does everything. Here is what this one does not do, and what you should do yourself.
What the tool cannot do
What you should do
> whoami

Who Can Use This Ads.txt Generator?

Anyone who earns money from ads on a website or app.

AdSense publishers

Fix the "ads.txt file not found" warning and protect your earnings.

Bloggers and news sites

List every network that sells ads on your pages.

App developers

Create app-ads.txt for apps that show ads.

Ad ops teams

Merge seller lines from many partners into one clean file.

> git log

Updates, Bug Fixes and Reviews

We test this tool every month and fix reported bugs as a high priority. Every change is listed here.
Oct 2026

Ads.txt Generator launched

First release with ads.txt and app-ads.txt, bulk paste, line checks, duplicate removal and download.

Launch
Every month

Full re-test and rules review

We run the tool against our test cases again and check the IAB Tech Lab ads.txt specification for changes.

Monthly

Tool page last reviewed on .

Found a bug or a wrong result?

Tell us what you entered, what happened and what you expected. Our developer checks every report, fixes confirmed bugs as a high priority and tests the fix before it goes live.

> git blame

Who Built and Reviewed This Tool

The SpellMistake team built this tool from our own daily SEO work and official rules.
H
Built and tested by

Hassan

Senior Web Developer, 4+ years
Built the line checks, the duplicate filter and the file builder.
MA
Reviewed by

Muhammad Ahtesham

SEO Strategist and Founder, 4+ years
Checked the format rules against the IAB Tech Lab ads.txt specification.
A
Guide and help text

Afza

Marketing Expert and Co-founder, 4+ years
Made the labels, tips and this guide simple and easy to follow.

Our standards

This page follows our Editorial Policy and Methodology. If something here is wrong, our Corrections Policy explains how we fix it. Learn more about the SpellMistake team.

> rate --tool

Ratings From Real Users

Did this tool help you? Your rating helps other people find a tool they can trust.
5.0out of 5

Based on 1 real user rating

  • 5 ★1
  • 4 ★0
  • 3 ★0
  • 2 ★0
  • 1 ★0

Rate this tool

How useful was the Ads.txt Generator for you?

Ratings come from real visitors. One rating per person. We never add, edit or remove ratings.

> faq

Ads.txt Generator FAQ

Quick answers to the questions people ask most about this tool.

What is an ads.txt file?

An ads.txt file is a plain text file that lists every company allowed to sell ads on your website. Ad buyers check it to make sure they are buying real ad space from you, not from a fake seller.

Is this ads.txt generator free?

Yes. It is 100% free, with no sign-up and no limits.

What is the ads.txt line for Google AdSense?

It is google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0, with your own publisher ID in place of the zeros. You can find your ID in your AdSense account.

Where do I upload ads.txt?

Upload it to the root folder of your main domain, so it opens at https://yourdomain.com/ads.txt. It will not work in a subfolder.

What is the difference between DIRECT and RESELLER?

Use DIRECT when you own the ad account. Use RESELLER when another company sells your ads through their own account.

What is app-ads.txt?

app-ads.txt is the same idea for mobile and TV apps. It goes on the developer website listed in your app store page.

How long does it take for ads.txt changes to work?

Ad systems re-read the file on their own schedule, so changes can take a few days to show in your ad account.

Want the technical side fixed for you?
Our technical SEO team finds and fixes crawl, index, speed and server problems across your whole website.