Google disavow file creation: The Complete 2026 Guide
A technical guide to creating properly formatted Google disavow files with domain and URL patterns, validation checks, and submission readiness.
- Google accepts a plain text file with a .txt extension encoded in UTF 8 or ASCII.
- Use domain level disavow domain: when a referring domain has a pattern of toxic links and you want to disavow all links from that domain.
- Export your toxic link list from your link audit spreadsheet or tool.
- Run these checks before uploading: No blank lines in the middle of entries blank lines are allowed but no trailing whitespace .
- The most common disavow file mistake in 2025 was including legitimate links.
- Name your file descriptively so you can track versions.
- A correctly formatted disavow file is a precise technical artifact, not a bulk dump.
A disavow file tells Google to ignore specific backlinks pointing to your site. When formatted and submitted correctly, it can lift manual actions or prevent algorithmic penalties. When done incorrectly, it can harm your rankings by instructing Google to ignore valuable links. This guide covers...
Disavow file format requirements
Google accepts a plain text file with a .txt extension encoded in UTF 8 or ASCII. Each line contains either a single URL to disavow or a domain prefixed with domain:. The file must not exceed 100,000 lines and must not exceed 2 MB in size. Lines beginning with # are treated as comments and ignored.
Basic structure:
# Disavow file for example.com
# Generated 2026 06 25 after Q2 link audit
# Disavow specific URLs
http://spam site.com/directory/page1.html
http://spam site.com/directory/page2.html
# Disavow entire domain
domain:low quality directory.net
domain:paid links.org
Each entry must be a single line. No trailing spaces, no HTML, no XML. Google parses the file as raw text.
Domain level vs. URL level disavow
Use domain level disavow (domain:) when a referring domain has a pattern of toxic links and you want to disavow all links from that domain. Use URL level disavow when only specific pages on an otherwise legitimate domain are problematic.
Domain disavow is more aggressive. If you disavow domain:wikipedia.org (which you should never do), Google would ignore every link from Wikipedia. Use URL level disavow for fine grained control. In 2025, Google's Public Liaison for Search confirmed that domain level disavow remains the recommended approach for spam sites with large link counts.
Creating the file step by step
- Export your toxic link list from your link audit spreadsheet or tool.
- Separate domains from URLs. Group links by domain. If more than 20 percent of links from a single domain are toxic, use domain level disavow.
- Format each entry as
domain:example.comor a full URL. Strip protocol if using domain format. Ensure URLs are complete paths. - Add comments for maintainability. Use
# Domain name contact personor# Reason for disavow. - Sort entries alphabetically for easier auditing in future cycles.
- Validate the file before submission.
Validation checklist
Run these checks before uploading:
- No blank lines in the middle of entries (blank lines are allowed but no trailing whitespace).
- No protocol on domain entries (
domain:https://example.comis invalid; usedomain:example.com). - No wildcard characters. Google does not support
*or regex. - No subdomain prefix on domain entries.
domain:sub.example.comis valid and disavows only that subdomain. - No URL fragments (
#anchor). Strip them. - File size under 2 MB.
- Line count under 100,000.
Common mistakes to avoid
The most common disavow file mistake in 2025 was including legitimate links. Never bulk export your entire backlink profile and submit it as a disavow file. Only include links that are confirmed toxic after the audit process. Accidental disavow of high value links can cause traffic loss within 2 4 weeks.
Another frequent error is disavowing links that Google already ignores. Nofollow, UGC, and sponsored links do not pass PageRank, so disavowing them has no effect but wastes file capacity. Google's 2025 updated guidance on link annotation means these attributes are more reliably honored than ever.
File naming conventions
Name your file descriptively so you can track versions. Use a convention like:
disavow_example_com_2025_03.txtdisavow_example_com_2025_06_update.txt
Store each version in your project repository or link audit archive. Disavow changes over time as you add new toxic links and remove previously disavowed domains that have since been cleaned.
Audit closing
A correctly formatted disavow file is a precise technical artifact, not a bulk dump. Validate every line, use domain level entries for obvious spam, and maintain version history. Google processes disavow files within a few weeks, but full recovery from a manual action can take 2 4 weeks after submission. When the file is right, the recovery timeline is predictable.
References
- Google Search Central. "Disavow backlinks." Google Developers, 2025. https://developers.google.com/search/docs/monitor/debug/disavow-links
- Google Search Central. "Link scheme policies." Google Developers. https://developers.google.com/search/docs/essentials/spam-policies
- Ahrefs. "Google Disavow Tool: How to Disavow Backlinks." Ahrefs Blog, 2025. https://ahrefs.com/blog/google-disavow-tool/