The Disavow File: Format, Limits, Examples and Costly Mistakes

The disavow file is a plain UTF-8 text file with a .txt ending that lists the URLs or domains you ask Google to ignore when it judges your site. Each entry sits on its own line, and the file caps at 100,000 lines and 2MB.
Quick answer: The disavow file is a UTF-8 text file with a .txt ending that lists the URLs or domains you ask Google to ignore when it judges your site. Each entry sits on its line, a domain entry starts with domain:, and hash-mark lines are comments Google skips. The file caps at 100,000 lines and 2MB, according to Google Search Console help.
TL;DR: One entry per line, domain: for whole domains, hash marks for comments, and a hard cap of 100,000 lines and 2MB, according to Google Search Console help. Upload a new file to replace the old one.
Key takeaways
- The disavow file is a plain UTF-8 text file with a .txt ending, and Google ignores it for Domain properties.
- Each entry sits on its own line, a domain entry starts with domain:, and a hash mark starts a comment Google skips.
- The file caps at 100,000 lines, including blank and comment lines, and 2MB, according to Google Search Console help.
- A URL entry can be at most 2,048 characters long, according to Google Search Console help, and you cannot disavow a subpath such as example.com/en/.
- Google says to disavow only when you have many spammy links and they caused, or are likely to cause, a manual action.
- A new upload replaces the old list, so download the current file before you change it.
What the disavow file is
The disavow file is the list you give Google when you want it to ignore certain links to your site. It is a plain text file, and it does only one thing: it asks Google to discount the links on the list when it judges your site. The links stay live on the web.
The disavow file is not a removal tool. The links it lists are still on the other sites, and they still exist for readers. Google simply stops counting them for your site, and that takes a few weeks to show up.
The tool behind the file launched on October 16, 2012, and Google's advice has barely changed since. Most sites do not need the tool at all, because Google can already judge which links to trust without extra guidance.
The anatomy of a file, line by line
A disavow file has three kinds of lines. A URL line names one page, such as http://spam.example.com/stuff/comments.html. A domain line starts with domain: and names a whole domain, such as domain:shadyseo.com. A comment line starts with a hash mark, and Google ignores it.
One entry per line is the rule, and it has no exceptions. A line with two URLs is not two entries, it is one broken entry, and Google will not read it the way you meant. Keep the file simple: one entry, one line.
The file name must end in .txt, and the encoding must be UTF-8 or 7-bit ASCII. A Word document, a spreadsheet, or a file with smart quotes will not work, and Google will reject the upload or misread the entries.
How to create a disavow file is the step-by-step version of this article, and it walks through the same rules with the upload screen. This article is about the file itself: what each line does, and what breaks it.
The hard limits
Google Search Console help states the limits in plain numbers: a maximum of 100,000 lines, including blank lines and comment lines, and a maximum file size of 2MB. A file that passes either limit is rejected, not trimmed.
The URL limit is easy to miss. A single URL entry can be at most 2,048 characters long, according to Google Search Console help, and a longer entry is ignored. Most spam URLs are short, so this limit bites only on very long tracking URLs.
The line limit bites sooner than most people expect, because blank lines and comment lines count toward the 100,000, according to Google Search Console help. A file with 90,000 entries and 15,000 comment lines is over the limit, and Google will reject it.
| Limit | Value | What happens if you pass it |
|---|---|---|
| Lines | 100,000, including blank and comment lines | Google rejects the file |
| Size | 2MB | Google rejects the file |
| URL length | 2,048 characters | The entry is ignored |
| Encoding | UTF-8 or 7-bit ASCII | Google misreads the file |
| Property type | URL-prefix only | Domain properties not supported |
The disavow file caps at 100,000 lines, including blank and comment lines, and 2MB, according to Google Search Console help, and a single URL entry can be at most 2,048 characters long. Source: Google Search Console help, Disavow links to your site (2026).
What goes in the file and what stays out
Put in the links you could not get removed and that meet Google's two conditions: a considerable number of spammy, artificial or low-quality links, and a manual action they caused or are likely to cause. Both conditions must hold, not just one.
Use a domain entry for a site that is spam throughout. If every link from a domain is bad, one domain: line replaces hundreds of URL lines, and it catches new bad pages from the same domain as they appear.
Leave out your good links. Blindly adding every backlink to the file is not a good-faith effort, according to Google's own guidance, and it can hurt your site by telling Google to ignore links that were helping you.
What Google says about disavowing links is the policy behind this article. Google works hard to make sure actions on third-party sites do not hurt your site, so most sites will never need the tool.
Leave out subpaths. You cannot disavow a folder such as example.com/en/, because Google does not support subpath entries. Disavow the page, or disavow the domain, and there is no third option.
How to build the file in six steps
- Export your backlinks from Search Console, which shows up to 100,000 rows per export according to Google Search Console help, or from a tool such as Ahrefs or Semrush.
- Sort the list and mark the links you could not get removed after asking the site owner.
- Write one entry per line in a plain text editor, with domain: for whole domains.
- Add a comment line above each group, so a future reader knows why the entries are there.
- Save the file as UTF-8 with a .txt ending, and check the size stays under 2MB, according to Google Search Console help.
- Upload it in the Disavow Links tool, and download the current file first so you can undo the change.
The whole build takes an hour for a small site and a day for a large one, because the slow part is deciding what goes in, not typing the lines. A file built in ten minutes is a file built on guesses.
Uploading and replacing the file
You must be a property owner to upload a disavow list, and the tool does not support Domain properties. Open the Disavow Links tool, choose the correct URL-prefix property, and upload the file.
A new upload replaces the old list completely. Google does not merge the two files, so download the current file before you upload a new one, or the old entries are gone for good.
Processing takes a few weeks, according to Google Search Console help, because Google must recrawl the disavowed pages before the change shows up. Do not expect a ranking change the next day, and do not upload a second file while the first is still processing.
The Google disavow tool overview covers the upload screen itself, including the warning Google shows before you upload. The warning is blunt: used wrongly, the tool can harm your site's performance in search results.
Seven mistakes that break a file
- Disavowing good links: a file that lists every backlink tells Google to ignore the links that were helping you.
- Disavowing a subpath: Google does not support folder entries, so the entry is ignored.
- Saving in the wrong format: a Word document or a spreadsheet is not a .txt file, and Google will reject it.
- Forgetting the domain: prefix: a domain written without domain: is read as one URL, not as a whole domain.
- Uploading to the wrong property: the tool needs a URL-prefix property, and Domain properties are not supported.
- Uploading without downloading first: a new file replaces the old list, and the old entries are gone.
- Expecting instant results: processing takes a few weeks, and a second upload while the first is processing only adds confusion.
Removal comes before disavow, and how to remove toxic backlinks is the guide for the removal step. Google recommends removing as many spammy or low-quality links as possible before you disavow, and a removal request that succeeds means the file never needs the entry.
Does disavowing links help rankings is the question most buyers ask, and the honest answer is that it helps only when a manual action was the problem. Without a manual action, disavowing rarely moves rankings, because Google was already ignoring most of the bad links.
Frequently Asked Questions
What is a disavow file?
A disavow file is a plain UTF-8 text file with a .txt ending that lists the URLs or domains you ask Google to ignore when it judges your site. Each entry sits on its own line.
How do I write a disavow file?
Write one URL or domain entry per line in a plain text editor, start a domain entry with domain:, and add comments on lines that start with a hash mark. Save it as UTF-8 with a .txt ending.
What is the maximum size of a disavow file?
The file caps at 100,000 lines, including blank and comment lines, and 2MB, according to Google Search Console help. A single URL entry can be at most 2,048 characters long.
Can I disavow a whole domain?
Yes. Start the line with domain:, such as domain:example.com, and Google will ignore every link from that domain. Use it for sites that are spam throughout.
Does the disavow file delete the links?
No. The links stay live on the other sites, and readers can still click them. Google simply stops counting them when it judges your site, and that takes a few weeks.
How long does disavowing take to work?
Processing takes a few weeks, according to Google Search Console help, because Google must recrawl the disavowed pages. Do not expect a ranking change the next day.
Expert verdict
Best for: site owners with a manual action for unnatural links, or a large set of spammy links they could not get removed.
Not for: most sites, because Google can already judge which links to trust, and a wrong file can hurt the links that were helping you.
Pros: the format is simple, one file covers a whole domain, and a new upload replaces the old list cleanly.
Cons: the tool can hurt your site if used wrongly, it takes weeks to work, and it does nothing without a manual action behind it.
Bottom line
One entry per line, domain: for whole domains, comments on hash-mark lines, and a hard cap of 100,000 lines and 2MB. Build it slowly, download the old file first, and use it only when a manual action says you must.
Sources
The BacklinkPrice Team researches backlink prices, publisher sites and link building tools. We check prices and plans against each provider's own pages and date them, so you know how current the numbers are.
More from BacklinkPrice TeamRelated guides





