Quick answer

If you use priority, it must be a number between 0.0 and 1.0.

Sitemap priority Range

If you use priority, it must be a number between 0.0 and 1.0. Outside range is invalid.

Common causes

How to fix

If you are validating a sitemap XML file, the priority value must stay within the supported range of 0.0 to 1.0. This checker helps identify entries where the priority is missing, malformed, or outside the allowed bounds, which can cause sitemap validation errors and reduce the reliability of your site’s crawl instructions. It is commonly used by SEO teams, developers, CMS operators, and technical auditors who need to confirm that sitemap metadata is formatted correctly before submission to search engines.

How This Validator Works

This validator checks the priority field in sitemap XML entries and compares the value against the sitemap protocol range. A valid priority is a numeric value from 0.0 to 1.0, inclusive. The tool flags values that are:

In sitemap standards, priority is optional, but when present it should be syntactically valid and consistent across your XML output.

Common Validation Errors

Where This Validator Is Commonly Used

Why Validation Matters

Validation helps ensure your sitemap is machine-readable and consistent with the sitemap protocol. Search engines may ignore invalid fields, and broken XML can make it harder for crawlers to process your sitemap reliably. Even when priority is treated as a hint rather than a directive, keeping it within the correct range supports cleaner automation, better QA, and fewer parsing issues across tools that consume sitemap data.

Technical Details

The sitemap priority element is defined as a decimal value between 0.0 and 1.0. It is typically used alongside other sitemap fields such as loc, lastmod, changefreq, and urlset. The value should be represented in standard XML numeric form and should not rely on locale-specific formatting.

Field Expected Format Valid Example
priority Decimal number from 0.0 to 1.0 0.5
priority Decimal number from 0.0 to 1.0 1.0
priority Decimal number from 0.0 to 1.0 0.0

When generating sitemaps programmatically, it is best to normalize values before output and validate them as part of your XML build or deployment process.

FAQ

What is the valid range for sitemap priority?

The valid sitemap priority range is 0.0 to 1.0, inclusive. Values inside that range are syntactically valid for sitemap XML. Values outside the range, such as 1.1 or -0.2, should be treated as invalid and corrected before publishing the sitemap.

Is sitemap priority required?

No, sitemap priority is generally optional. Many sitemaps work without it. If you choose to include it, the value should still follow the expected numeric range and formatting rules so the XML remains valid and consistent for downstream tools.

Does priority guarantee higher rankings?

No. Sitemap priority is best understood as a hint, not a ranking signal with guaranteed impact. Search engines may use it as one of many crawl-related inputs, but it does not ensure indexing or ranking changes. Validation is still important because malformed values can create processing issues.

Why would a sitemap priority value be rejected?

A value may be rejected if it is outside the allowed range, contains non-numeric characters, uses the wrong decimal separator, or is generated in a format that does not match XML expectations. Automated sitemap generators and CMS plugins are common sources of these errors.

Can I use values like 0.75 or 0.8?

Yes. Decimal values such as 0.75 and 0.8 are valid as long as they remain between 0.0 and 1.0. The exact precision is usually less important than staying within range and keeping the output consistent across your sitemap generation process.

Should every URL in a sitemap have the same priority?

Not necessarily. Some teams assign different priorities based on page importance, while others keep the same value across all URLs or omit the field entirely. The main requirement is that any included value remains valid and reflects a deliberate sitemap strategy.

What happens if my sitemap contains invalid priority values?

Invalid values can cause sitemap validation failures, reduce confidence in your XML output, or be ignored by tools that parse the file. In some cases, the rest of the sitemap may still be processed, but correcting the error is the safest approach for reliable automation.

How can I prevent priority range errors?

Use input validation in your CMS, build pipeline, or sitemap generator to enforce numeric values between 0.0 and 1.0. It also helps to test generated XML before deployment and to review any custom logic that calculates priority dynamically.

Related Validators & Checkers

FAQ

Valid priority?
0.0 to 1.0.
Useful?
Most engines ignore.

Fix it now

Try in validator (prefill this example)

Related

All tools · Canonical