Guide
Formatting a disavow file for Google Search Console
Links to your site come from places you do not control. Most are harmless, and Google’s systems ignore the ones that look manipulative. In a few cases, such as a manual action for unnatural links or a campaign of paid or spammy links that you cannot get removed, you can ask Google to ignore specific links with a disavow file. The file must follow a strict format. This tool takes the list you have decided on, however messy, and produces the file.
The file format
A disavow file is plain text in UTF-8. Each line is a full address, a domain: entry for a whole site or a comment that starts with #. Google reads the comments as notes for you and ignores them. The file may be up to 2 MB and 100,000 lines long, and you upload it in the disavow links tool of Search Console for a verified site. Uploading a new file replaces the old one, so keep every entry you still want, not only the new ones.
Cleaning a pasted list
Paste your list in any order. Lines that start with # are kept as comments. Everything else is treated as a domain or an address. With “Turn addresses into whole domains” on, the tool reduces a full address such as https://www.spam-links.example/page1 to the domain and writes domain:spam-links.example, and it also removes a leading www so two versions of a site do not count twice. Duplicates are removed, and sorting puts the lines in alphabetical order after the comments.
What gets left out
Lines that are neither a domain nor an address, such as a note typed without a hash, are left out and listed in a warning, so nothing is silently lost. If no valid line is found the tool reports an error instead of an empty file. The result rows show how many lines were kept, how many duplicates were removed and how many lines were left out.
Deciding what to disavow
The tool does not judge links. Before you disavow, try to have the links removed by asking the site owner, check that the pattern is unnatural and not just low value, and keep a record of what you did. A wrong entry can throw away links that help you. Google also advises that most sites never need to use the tool, which is why a note repeats it below the output.
A worked example
The sample list begins with a comment line, # spam found 2026-11-10, then two addresses on the same domain, https://www.spam-links.example/page1 and https://spam-links.example/page2, an existing domain:cheap-seo.example, the bare domain link-farm.example listed twice and the text “not a domain”. With the domain option and sorting on, the file contains the comment and three domain lines: domain:cheap-seo.example, domain:link-farm.example and domain:spam-links.example. The result reads 3 lines kept, 2 duplicates removed and 1 line left out.
Limits
The tool formats text only. It does not fetch your backlinks, test whether a link is harmful, submit the file or check that the domains exist. Once you upload a disavow file, Google may take weeks to process it, and the effect is not guaranteed. Treat the file as a small, careful list for a real problem, and review it from time to time.
Related tools
- Anchor Text Ratio Analyzer looks at the wording of your backlinks before you decide.
- HTML Link Extractor lists the links on a page you control.
- Diff Checker compares an old disavow file with a new one.
- Sitemap to CSV Extractor turns your own sitemap into a list for comparison.
Checked against the current version of the Disavow File Generator on .

