ads.txt validator
This free ads.txt validator checks an ads.txt or app-ads.txt file against the IAB Tech Lab specification. Paste the file below to find format errors, invalid relationships, duplicate lines and missing fields. The check runs in your browser, and nothing is uploaded.
How is an ads.txt line built?
| Field | Example | Meaning |
|---|---|---|
| 1. Ad system domain | google.com | The SSP or exchange that sells your inventory |
| 2. Account ID | pub-0000000000000000 | Your seller account in that system |
| 3. Relationship | DIRECT | DIRECT if you control the account, RESELLER if a partner sells for you |
| 4. Certification ID (optional) | f08c47fec0942fa0 | The ad system's TAG certification ID |
Lines can also set variables: contact, subdomain, inventorypartnerdomain, ownerdomain and managerdomain. Anything after # is a comment.
Common ads.txt errors
- Writing the domain with https:// or a path instead of a bare domain.
- Relationship values other than DIRECT or RESELLER, such as "PARTNER".
- Empty or mistyped account IDs, which make the whole line useless to buyers.
- Duplicate lines, and the same account listed as both DIRECT and RESELLER.
- Curly quotes or hidden characters pasted in from a word processor.
A clean file is only half the job: each line also has to match the ad system's sellers.json. Our ad quality and compliance service keeps ads.txt and sellers.json in line for publishers, as part of publisher ad operations.
Frequently asked questions
What is ads.txt?
ads.txt (Authorized Digital Sellers) is a plain-text file, published by the IAB Tech Lab, that a website places at its root, for example example.com/ads.txt. It lists the ad systems and account IDs allowed to sell the site's inventory, so buyers can avoid spoofed or unauthorized supply.
What is the difference between ads.txt and app-ads.txt?
They use the same line format. ads.txt sits on a website's own domain. app-ads.txt is for mobile and CTV apps and sits on the developer website listed in the app store.
What does each line in ads.txt mean?
A record has three or four comma-separated fields: the ad system's domain, your publisher account ID in that system, the relationship (DIRECT if you control the account, RESELLER if someone else sells on your behalf) and an optional certification authority ID.
Does this tool fetch my live ads.txt file?
No. Paste the contents of the file and the check runs in your browser. Nothing you paste is sent to our servers.
How does ads.txt relate to sellers.json?
sellers.json is published by the ad system and lists the sellers behind each account ID. Buyers match your ads.txt lines to those entries, so the account IDs and relationships in both files need to agree.

