ToolsHub4u

Build a clean disavow file from domains and URLs

Paste the domains and URLs you have decided to disavow. The generator normalises them, removes duplicates, rejects malformed lines and writes the text file Search Console expects.

  • Validated entries
  • Duplicate removal
  • Download disavow.txt
Ready SEO & Web
Disavow is a last resortGoogle recommends removing or nofollowing unnatural links yourself first. Most sites should never need a disavow file. Review every entry before uploading, because removing a file later does not restore anything quickly.
1Enter
2Adjust
3Copy result

Disavow File Generator

1

Entries and options

One entry per line. A bare domain becomes a domain-level entry; a full URL stays a URL entry unless you force domains.

How to treat full URLs

A domain entry disavows every URL on that host, including subdomains you may not intend to include.

No data yet Live
2

disavow.txt

3 URL and 2 domain entries ready

Entries in file

5

disavow.txt

  • Review the list against your link reportRemove entries you cannot tie to a specific unnatural link. A domain entry also covers pages you have never seen.
  • 2 domain-level entriesDomain entries disavow every URL on that host. Prefer a path or URL when only one page is the problem.
  • 3 entries were rejectedRejected lines are listed below. Fix or remove them before using the file.
  • Upload only after a second reviewIn Search Console, open the Disavow links tool for the right property. Uploading is immediate; reversing it is not.
  • low-quality.example/guest-postNot a domain or http URL

    This line is not in the file.

  • not a domainContains a space

    This line is not in the file.

  • javascript:alert(1)Not a domain or http URL

    This line is not in the file.

Domain entries
2
URL entries
3
Duplicates
0
Rejected
3

A disavow file tells Google to ignore links you say are unnatural. It can take weeks to recrawl, and it does not remove the links from the web. Read Google's disavow documentation before uploading.

This page turns a list of domains and URLs into a disavow file. It normalises each line, rejects anything malformed, removes repeats and writes the plain-text file that Search Console accepts, with optional header comments explaining what the entries mean.

It is a formatter with a review step, not a link audit. It cannot tell you which links are unnatural, and it should not be used to disavow everything a tool has marked as low quality. Most sites never need a disavow file at all.

When a disavow file is appropriate

Google's guidance is narrow. You should disavow links only if you have a considerable number of spammy, artificial or low-quality links pointing at your site, and those links have caused a manual action or are likely to cause one. In most cases Google says it can assess which links to trust without additional help, so most sites will not need the tool.

The first step is removal. Contact the site, ask for the link to be taken down, and keep a record. Disavow is for links you cannot remove. Google also warns that the feature is advanced and can harm a site if used incorrectly, which is why the output here asks for a second review before upload.

What Google's format requires

The rules below come from Google's disavow documentation and are enforced by Search Console when you upload, not by this page.

Google's disavow file requirements
RuleRequirement
EntriesOne URL or domain per line
Domain entriesPrefix with domain:, as in domain:example.com
SubpathsNot supported; you cannot disavow example.com/en/ as a path
EncodingUTF-8 or 7-bit ASCII, file name ending in .txt
LengthMaximum 2,048 characters per URL
SizeMaximum 100,000 lines and 2 MB, including blank and comment lines
CommentsLines starting with # are ignored
ReplacingA new upload replaces the existing list for that property
TimingChanges can take a few weeks to appear as Google recrawls
Property typeThe tool does not support Domain properties

The Domain property point is the one that stops people late. If the site you are working on is verified as a Domain property, Search Console's disavow page does not apply to it, and a perfectly valid file has nowhere to go. Check the property type before you build the list.

What the generator does to each line

Blank lines and comments are dropped. Any line containing a space is rejected. A line starting with domain: is validated as a domain and written back in the same form. A line starting with http:// or https:// is checked as a URL, has any fragment removed, and can have a leading www. stripped if that option is on.

A bare domain such as spammy.example becomes a domain: entry. A bare domain with a path, such as spammy.example/page, is rejected, because it is neither a domain nor a full URL. Add the scheme if you mean one page.

Duplicates are removed after normalisation, so two lines that differ only by a fragment collapse into one. The optional all-domains mode takes every accepted URL and reduces it to its host, which is useful when a whole site is the problem and risky when one page is.

A worked example

Ten lines were pasted with the header switched on. The result was five entries, one duplicate and three rejected lines. The file looked like this:

The five entries written to the example disavow file
Line in disavow.txtKind
domain:spammy-directory.exampleDomain
https://spammy-directory.example/tools/seoURL
http://duplicate.example/pageURL
https://duplicate.example/pageURL
domain:bad-network.exampleDomain

The duplicate came from a second copy of the spammy-directory URL with #comments on the end. The fragment was removed, which left the same address, so the second line was counted and dropped. The two duplicate.example lines stayed separate because one is http and the other https; the generator does not decide which scheme you meant.

Three lines were rejected and listed with a reason: low-quality.example/guest-post because a bare domain with a path is not a valid entry, has space.example because of the space, and not_a_domain because of the underscore.

Read the rejected list, not just the countThree rejects out of ten is not a rounding error; it is a third of the list missing from the file. Each rejected line is shown with its reason, and fixing low-quality.example/guest-post is usually a matter of adding the scheme. Do that before upload, not after.

Domain or URL?

A URL entry covers that address. A domain entry covers every URL on the host and its subdomains, including pages you have never seen. Prefer a URL when one page is the problem, because a domain entry can disavow good links too.

Google does not support disavowing a subpath. If ten pages under /offers/ are the problem, list them individually as URLs or disavow the host, and accept the trade-off.

The all-domains mode makes this decision for you. In the second test, three lines became two domain entries: domain:one.example and domain:two.example. The third line, three.example/path, was rejected because it had no scheme, so the mode never saw it. That shrinks the file even though the two remaining entries look complete, which is another reason to read the rejected list.

Review before upload

Open the file and compare every entry with the link report it came from. Remove anything you cannot tie to a specific unnatural link. A domain entry can cover pages you have never reviewed, and there is no undo for a bad upload, only a replacement file.

Search Console validates the file on upload. If there are errors, the old list stays in place and you can fix the new one and try again. If the upload succeeds, give it weeks rather than days.

Keep a copy of each uploaded version with the date and the property it went to. If you later replace it, you will want to know what changed. The link prospect builder is for finding new links; this page is for the last resort when old ones cannot be removed.

Questions

Common questions

Short answers about this tool and its limits.

Do I need a disavow file for my site?

Probably not. Google says most sites will not need the tool, and that you should disavow only when a considerable number of spammy links have caused a manual action or are likely to. Try to remove the links first.

What is the difference between a domain and a URL entry?

A URL entry covers one address. A domain entry, written domain:example.com, covers every URL on that host and its subdomains, including pages you have not reviewed. Use a URL when one page is the problem.

Why was example.com/page rejected?

Because it is neither a bare domain nor a full URL. Add https:// and it becomes a valid single-page entry. The rejected list gives the reason for every line, so fix those before uploading.

Does this work with a Domain property?

No. Google's disavow page says the tool does not support Domain properties. If your site is verified as a Domain property, this file cannot be uploaded for it, however clean the format is.

Are duplicates and comments removed?

Duplicate entries are removed after normalisation, so two lines that differ only by a URL fragment become one. Comment lines starting with # are dropped from the input, and the optional header writes its own three comment lines.

What are the file limits?

Google accepts a .txt file encoded in UTF-8 or 7-bit ASCII, with at most 2,048 characters per URL, 100,000 lines and 2 MB. Blank and comment lines count towards the line limit.

Does uploading replace my previous disavow file?

Yes. A new upload for the same property replaces the old list. If the upload has errors, the old list stays in place. Keep a dated copy of each version so you can tell what changed.

How long does a disavow take to work?

Google says a few weeks, because it has to recrawl the web and reprocess the pages it sees. The links also remain in the Links report, and disavowing does not remove them from the other site.