SEO
sitemap.xml Validator
sitemap.xmlを検証 — 必須フィールド、日付形式、sitemaps.orgの制限、重複URL。
ドメインのみを指定すると/sitemap.xmlが補完されます(一般的な慣例ですが標準ではありません — 実際のsitemapは別のアドレスにある場合があります)。すべてのサイトで動作するわけではありません — クロスオリジンリクエスト(CORS)をブロックするサイトもあります。取得に失敗した場合は、新しいタブでsitemap.xmlを開き、内容を手動で貼り付けてください。
Search engines reject a sitemap.xml that doesn't match the sitemaps.org spec — even one invalid date or an exceeded limit can stop the whole file from being processed. This tool checks required fields, date formats, size limits, and duplicate URLs.
How to use it
- Paste the contents of sitemap.xml and required tags (<loc>, valid <lastmod>) are checked instantly.
- Duplicate URLs are detected automatically and flagged separately from other errors.
- The tool checks the file against the sitemaps.org limits: no more than 50,000 URLs and 50MB per file.
Common uses
- Checking a sitemap before submitting it to Google Search Console or Bing Webmaster Tools.
- Debugging why Google Search Console reports errors while processing a sitemap.
- Auditing a sitemap generated automatically by a CMS or plugin for duplicates and malformed dates.
Things to keep in mind
The date in <lastmod> must follow the W3C Datetime format (ISO 8601) — search engines simply ignore an arbitrary text date format.
URL order in a sitemap has no meaning under the spec — search engines process entries regardless of their sequence in the file.
よくある質問
1つのサイトマップファイルの最大サイズまたはURL数はいくつですか?
1つのサイトマップファイルには最大50,000個のURLを記載でき、非圧縮で50MBを超えてはいけません — より大きなサイトは、複数の小さなサイトマップファイルを参照するサイトマップインデックスファイルが必要です。
ブラウザでは問題なく開くのに、サイトマップの検証が失敗するのはなぜですか?
よくある問題には、不正な名前空間の宣言、<lastmod>の無効な日付形式(W3C Datetimeである必要があります)、またはサイトマップ自体のドメインと一致しないURLなどがあります — ブラウザはこれらのエラーがあっても生のXMLをレンダリングし続けます。
サイトマップファイルは検証のためにどこかにアップロードされますか?
いいえ。解析と検証はブラウザ内で完全に行われます — サーバーには何も送信されません。
sitemap.xmlをgzip圧縮できますか?
はい — sitemaps.orgではファイルをsitemap.xml.gzとして公開することが認められており、50MBの制限は非圧縮サイズに対して測定されるため、圧縮されたファイルは実際の制限を大幅に下回ることがあります。
新しいsitemapをGoogleに知らせるにはどうすればよいですか?
最も確実な方法は、robots.txtのSitemap:ディレクティブでそのアドレスを追加するか、Google Search Consoleを通じて手動で送信することです — どちらも互いに独立して機能し、同時に使うこともできます。