Submitting a sitemap feels like a one-click job: generate the file, hand the address to Google, done. The file itself rarely gets a second look. Yet a sitemap is just a list, and lists collect dirt: a malformed line Google will quietly skip, the same page entered twice under slightly different spellings, a typo in a scheme no browser follows. Google sends no tidy report about most of that. The pages simply do not get the visit the sitemap was meant to earn.

So audit the list before you submit the file. Pull the URLs out as plain text, run them through a checker, and fix what it flags. This guide uses the free URL List Validator on Ovatly, which checks pasted URL lists for syntax and duplicates entirely in your browser.

Contents

  • Quick answer
  • A sitemap is a list, and lists go dirty
  • Step one: extract the URLs as plain text
  • Step two: fix the malformed lines
  • Step three: hunt the duplicates that do not look like duplicates
  • How to audit the list, step by step
  • Worked example: four sitemap entries
  • Limitations and honest tradeoffs
  • Common mistakes
  • FAQs
  • Conclusion
  • References

Quick answer

To audit a sitemap URL list before submitting it to Google: open the sitemap file, extract the location entries as plain text with one URL per line, and paste that list into the URL List Validator. Fix every malformed line it reports, and remove every duplicate, remembering that a fragment, a default port, host letter case and a trailing slash do not make a URL different, so the same page can be listed twice without looking duplicated. One honest limit: the validator checks syntax and duplicates only and never fetches anything, so a valid line is not proof the page is live, indexable or returns 200. The audit covers the list, not the site.

A sitemap is a list, and lists go dirty

A sitemap file is usually generated, and generated files inherit every inconsistency in the system that produced them. One part of a site emits URLs with trailing slashes, another without. A plugin adds a fragment. An export step breaks a character or drops a protocol. Each flaw is small, and the file still looks official and gets submitted.

Google reads the file literally. A line it cannot parse is a page it will not visit from your sitemap. A page listed twice is wasted attention. Neither flaw announces itself, which is why the audit has to happen on your side, before submission.

Step one: extract the URLs as plain text

The validator works on a pasted list, one URL per line, so the first step is getting the URLs out of the sitemap file in that shape. A sitemap is an XML file, and every entry carries its address in a location element. Extract those addresses into a plain text list, one per line, and set the rest of the XML aside.

This gives you the exact list Google will work from, separated from the XML wrapping, and it is the list you will correct. If you fix a line, the fix has to travel back into the sitemap file (or better, into whatever generated it) before you submit.

Step two: fix the malformed lines

Paste the list into the validator and start with the invalid lines. The usual cause is a missing protocol: an entry that names a host and path but never says https:// or http://. After that come stray spaces and characters broken during export.

One flag deserves its own look. A line starting with htp:// is reported as a non-web scheme rather than counted as invalid. The distinction matters for fixing (it is a one-character typo, not a missing piece), but not for Google: a scheme no browser follows is a line that earns no visit. Fix it like any other malformed entry.

Step three: hunt the duplicates that do not look like duplicates

Duplicates are where sitemaps quietly waste themselves, because sitemap duplicates rarely look identical. The same page appears once with a trailing slash and once without. One copy carries a fragment, the other does not. The host is written in capitals in one section and lowercase in another, or the default port is spelled out in one entry only.

The validator's duplicate check ignores all four differences: the fragment, the default port, host letter case and a trailing slash. That matches reality. Those variants name the same page, so the list should carry it once, in its canonical spelling. Delete the extra lines, and where the two spellings disagree, keep the one the page itself uses.

How to audit the list, step by step

  1. Open the sitemap file and extract every location entry into a plain text list, one URL per line.
  2. Open the URL List Validator and paste the list in. Thousands of lines are fine.
  3. Fix every malformed line the report flags, starting with missing protocols, and note the non-web scheme flags separately.
  4. Work through the duplicates. For each repeated page, keep one line in the canonical spelling and remove the rest.
  5. Carry the fixes back into the sitemap file or its generator, re-extract, and run the audit once more. Submit only when the report is clean.

Worked example: four sitemap entries

Imagine the extraction step produces a short list of four entries. Pasted into the validator, the report reads: 3 valid, 0 invalid, 1 duplicate.

Read as sitemap entries, that says the file is well-formed but wasteful: line 3 repeats line 1, so one page is asking for two slots in the submission. The two lines need not look identical; a trailing slash or a fragment is enough, and the duplicate check ignores both. Keep the line that matches the page's real address, delete the repeat, and put the corrected list back into the sitemap. A fifty-thousand-URL sitemap fails in exactly the same places, just more often.

Limitations and honest tradeoffs

Be clear about what this audit is. The validator checks syntax and duplicates only. It never visits or fetches the URLs: browser CORS rules mean a pasted list cannot be live-tested. So the audit cannot tell you whether a page returns 200, allows indexing, redirects, or exists at all. A valid, unique line is a well-formed address written once. Nothing more.

That means the audit is one layer, not the whole pre-submission review. Live and indexability checks happen elsewhere, with other tools. What the list audit guarantees is narrower and still worth having: no line Google must skip as malformed, and no page listed twice under two spellings.

Common mistakes

  • Submitting the generated file unread. Generation inherits inconsistencies. Extract the URLs and audit them as a list first.
  • Eyeballing for duplicates. Sitemap duplicates hide behind slashes, fragments, case and ports. Use a check that ignores those differences, because your eyes will not.
  • Fixing the text list but not the sitemap. The audit list is a scratch copy. Fixes must reach the file, or its generator, before submission.
  • Reading a clean report as a health certificate. Valid and unique does not mean live, indexable or returning 200. The audit covers the list, not the site.
  • Auditing once and never again. Sitemaps regenerate. A list that was clean at launch collects new flaws as the site changes, so re-audit after big updates.

FAQs

Does a valid line mean the page is live and indexable? No. The validator checks syntax and duplicates only, and it never fetches anything. A valid line is a well-formed address. Whether the page returns 200, allows indexing or even exists is a separate check the audit does not make.

How do duplicates get into a sitemap? Through small differences that look harmless: the same page listed with and without a trailing slash, a fragment left on one copy, the host written in different letter case, or a default port spelled out. The duplicate check ignores all four, so it flags pairs a visual skim calls different.

What usually makes a sitemap URL malformed? A missing protocol is the usual cause, followed by stray spaces and characters broken during export. A line starting with htp:// is flagged as a non-web scheme rather than counted as invalid, but Google cannot use it either way.

Can the validator fetch my sitemap from its URL? No. You paste the URLs as text. The tool never visits or fetches any URL, because browser CORS rules prevent a pasted list from being live-tested. Extract the location entries from the sitemap file and paste those lines.

How many URLs can I audit at once? Thousands of lines are fine. The check runs locally in your browser, so a full sitemap's URL list can be audited in one pass before you submit the file.

Conclusion

A sitemap earns its keep only if every line in it is usable: well-formed, and listed once. Extracting the URLs and running them through the URL List Validator takes minutes and removes the two flaws Google will never report back to you. It is the same preparation discipline used for redirect work, covered in our guide on preparing a URL list for a bulk redirect import. For more guides in this series, see our Website and Webmaster Tools guides.

References