Zahid Awais Get a free audit

Free ads.txt generator

Create and validate your ads.txt file for AdSense, Ad Manager and other ad partners in seconds.

By Zahid Awais · Technical SEO tools · Free, private, no sign-up

Result
0Records
0Variables
0Errors
    Ads.txt Generator: what it does and an example result

    The free ads.txt generator runs in your browser, needs no sign-up and never sends what you type anywhere.

    Quick answer

    This ads.txt generator builds the Authorized Digital Sellers file that lists who may sell your ad inventory. Each line holds the ad system domain, your publisher account ID, DIRECT or RESELLER, and an optional certification ID. Rule of thumb: copy lines exactly from each partner, host the file at your root domain and keep it updated.

    What is a ads.txt generator?

    An ads.txt generator is a tool that writes and checks the plain text file defined by the IAB Tech Lab ads.txt specification. It formats each record as domain, account ID, relationship and certification authority ID separated by commas, validates the relationship values and Google publisher ID format, removes duplicates and adds optional variables such as OWNERDOMAIN and CONTACT.

    How do you use the Ads.txt Generator?

    How to use the Ads.txt Generator: enter details, see the result and copy it
    Real screenshot of the Ads.txt Generator with the steps marked.
    1. Pick an ad system, enter your publisher ID and relationship, and click Add line, or paste lines from your ad partners.
    2. For AdSense use the exact line from your AdSense account, which includes the certification ID f08c47fec0942fa0.
    3. Optionally add OWNERDOMAIN, MANAGERDOMAIN and CONTACT details.
    4. Fix any red lines, then download ads.txt.
    5. Upload it to your root domain so it loads at https://example.com/ads.txt, then wait for your ad platform to recrawl it.

    What is the Google AdSense ads.txt line?

    The AdSense line is google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0, with the zeros replaced by your own 16 digit publisher ID. You can copy it from the Ads.txt section of your AdSense account. Google explains the setup in its AdSense ads.txt guide.

    How long does ads.txt take to be detected?

    AdSense usually picks up ads.txt changes within a few days, but sites with low ad request volume can take up to a month. Once the status shows as authorized, ads may take up to an hour to appear. Make sure the file is reachable at the root of your domain.

    What is the difference between DIRECT and RESELLER?

    DIRECT means you, the publisher, control the account named in that line, as with your own AdSense account. RESELLER means another company is authorized to sell your inventory through its account, as with header bidding partners. Use the value your partner gives you.

    Quick reference

    FieldExampleNotes
    1. Ad system domaingoogle.comDomain of the advertising system
    2. Account IDpub-1234567890123456Your publisher ID in that system
    3. RelationshipDIRECT or RESELLERDIRECT if you control the account
    4. Certification IDf08c47fec0942fa0Optional TAG ID; required in Google lines as provided
    VariableOWNERDOMAIN=example.comAds.txt 1.1 variables for owner, manager and contact

    Worked example

    Example

    Example: a blog using AdSense plus one header bidding partner adds google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0 and the partner's RESELLER line, plus OWNERDOMAIN=example.com. The tool outputs 2 valid records and 1 variable, flags nothing, and the file is ready to upload as /ads.txt.

    Frequently asked questions

    Where do I upload ads.txt?

    Upload ads.txt to the root of your domain so it loads at https://example.com/ads.txt. On WordPress you can upload it with FTP or your hosting file manager, or use a plugin that serves it. A file inside a subfolder will not be found.

    Do I need ads.txt for AdSense?

    It is strongly recommended. Without ads.txt, AdSense shows a warning and buyers may avoid unverified inventory, which can lower your earnings. Adding the correct line helps advertisers trust that ads on your site are sold by you.

    Can ads.txt have comments?

    Yes. Any text after a # is a comment and is ignored by crawlers. Comments are useful for noting which partner each block belongs to and when it was added. This tool keeps comment lines you paste.

    What are OWNERDOMAIN and MANAGERDOMAIN?

    They are variables added in ads.txt 1.1. OWNERDOMAIN names the business domain that owns the site, and MANAGERDOMAIN names a company that manages its monetization. Buyers match them with sellers.json files to trace the supply chain.

    Why does my ads.txt show as not found?

    Common causes are the file being on www while your site uses the bare domain, a redirect to an HTML page, a 404, or the file being blocked by a security plugin. Open the exact URL in a browser and confirm it shows plain text.

    Is this generator private?

    Yes. Your publisher IDs are processed only in your browser and are never sent to a server. The checks cover format only, so always copy partner lines exactly as they provide them and confirm the status inside each ad platform.

    Sources

    Facts checked against these official pages. Read how I check facts in my editorial policy.

    Related free tools

    All 104 tools

    Robots.txt Generator

    A robots.txt generator is a tool that writes the plain text file crawlers read at the root of your site…

    Security.txt Generator

    A security.txt generator is a tool that writes the machine readable file defined in RFC 9116, listing fields…

    Htaccess Generator

    An htaccess generator is a tool that writes per directory Apache configuration so you do not have to remember…

    Want a full audit instead?

    Send your website and I will check it for you, free.

    Get my free audit
    Chat on WhatsApp
    Free updates

    Get new tools, guides and coupons first

    One short email when something new goes live: articles, free SEO tools, package updates, discounts and price alerts. No spam, unsubscribe in one click.