Code · Made a little simpler

Ads.txt Validator

Validate saved ads.txt seller rows and variables. Find invalid relationships, duplicate records and misplaced subdomain referrals by line and column.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

Ads.txt Validator: how to use it

  1. Paste your ads.txt contents or open a local text file. Add the supplied file URL if you want to review the root location and subdomain referrals.
  2. Select Validate ads.txt. Inspect errors and warnings, including earlier line references for repeated records and manager declarations.
  3. Review the seller and variable previews or download a JSON report with the source and all findings.

Limits and notes

Checks local text up to 256,000 UTF-16 units and 10,000 physical lines using ads.txt 1.1 record syntax. Country declarations are checked for two-letter format. The report uses supplied URLs and the bundled Public Suffix List. A deployment check requires separate HTTP, redirect and publisher evidence.

How your privacy works →

Ads.txt Validator: common questions

Which fields does a seller record need?

Enter the advertising system’s domain, your account ID and DIRECT or RESELLER. The fourth certification ID is optional. An extension can follow a semicolon.

How does the duplicate check handle case?

Host names and relationship labels are compared case-insensitively. The account ID, certification ID and extension text retain their spelling.

What if the file intentionally authorizes no sellers?

Use the standard placeholder row with placeholder.example.com, placeholder, DIRECT and placeholder. The report counts it separately from seller records.

Where should a web subdomain referral be declared?

Put SUBDOMAIN in the ads.txt at the root of the registered domain. With a supplied file URL, the tool can compare the referral with the root domain.

Guides