Home / Fix guides / Structured data and AI search

How to fix unparsable structured data in Google Search Console

Unparsable structured data means Google found your schema code but could not read it because of a syntax mistake, usually a missing comma, a stray quote or a broken tag. Find the exact line with a validator, correct it where the code is generated, then ask Google to validate the fix.

Unparsable structured data means Google found structured data on a page (usually JSON-LD inside a <script type="application/ld+json"> tag) but could not read it because the code is broken. A missing comma, a stray quote or a bit of HTML in the wrong place is enough. Google skips the whole block until it is fixed.

What you see

In Google Search Console, look in the left menu under Enhancements (or Shopping, depending on your site) for an item called Unparsable structured data. It lists the affected pages and a parsing error with a short description of what Google expected. You may also get an email saying new issues were found. Report names and positions change over time, so use the search box at the top of Search Console if you can't find it.

Your page looks normal to visitors. Only the hidden data meant for search engines is broken.

Why it matters

Structured data tells Google things like your business details, product prices, reviews, FAQs or breadcrumbs. When a block can't be parsed, none of that information can be used from it. That can mean losing eligibility for rich results such as star ratings or product details in search, and it gives search and AI systems fewer clear facts about your business. It is not normally a ranking penalty, but errors tend to spread because one template often feeds hundreds of pages.

How to check your site for free

  1. In Search Console, open the Unparsable structured data report and click an error row to see example URLs.
  2. Paste one affected URL into Google's Rich Results Test and run it. Parsing errors are shown with a line reference.
  3. For a second opinion, use the Schema Markup Validator at validator.schema.org. It checks syntax for all schema types, not only those Google turns into rich results.
  4. In your browser, right click the page, choose View page source and search for ld+json. Copy the content between the script tags into a JSON checker such as JSONLint.

Check more than one page. If every page of one type fails the same way, the fault is in a template or plugin. If only one page fails, someone probably typed or pasted something into that page.

The usual causes

  • A trailing comma after the last item in an object or list.
  • A missing comma between two properties.
  • Straight quotes replaced by curly "smart" quotes, often after copying from Word or a design tool.
  • A double quote inside a text value that is not escaped, for example in a product name or description.
  • Raw line breaks inside a text value. JSON strings can't contain them.
  • HTML tags or odd characters coming from an editor field.
  • A missing closing } or ], or two JSON-LD blocks merged into one script tag.
  • Template placeholders that never got filled in, such as {{ price }}.
  • The script tag itself being cut off or altered by a caching or optimising tool.

Here is a small example. The first version is broken, the second is correct:

{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "Bright Bakery"
  "url": "https://example.com",
}
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "Bright Bakery",
  "url": "https://example.com"
}

The first has no comma after the name and an extra comma after the url.

How to fix it

  1. Find where the code comes from: a plugin, the theme, a tag manager, or text pasted into a page.
  2. Copy the JSON into a validator and fix the exact line it points to. Fix one error at a time, because an early error can hide later ones.
  3. If the data is written by hand, correct it at the source. If it is generated, fix the field feeding it (for example remove line breaks from a description) or update the plugin or theme.
  4. If you can't find the cause, switch off one source of schema at a time and retest. Two plugins that both output schema is a common source of trouble.
  5. Retest with the Rich Results Test before asking Google to recheck.

For more on the underlying syntax errors, see invalid JSON-LD.

Common platforms

Where to look depends on your theme and tools, but these are the usual places.

  • WordPress: schema usually comes from an SEO plugin, a schema plugin or the theme. Check each, plus any custom fields or header script areas where code may have been pasted. See the WordPress guide.
  • Shopify: structured data usually comes from the theme (search theme files for ld+json, often in product templates) and sometimes from apps. Descriptions containing quotes or line breaks are a frequent trigger. See the Shopify guide.
  • Google Tag Manager: a Custom HTML tag holding JSON-LD can break if a variable inserts unescaped text.
  • Webflow: custom code in page settings or an Embed element is the usual place. Check for curly quotes.
  • Next.js and React: build the data as an object and output it with JSON.stringify instead of assembling the string by hand.
  • Cloudflare: anything that rewrites HTML (including Workers) can alter script content, so compare the live source with the original.

Confirm the fix worked

  1. Run the live page in the Rich Results Test and check the parsing error is gone.
  2. In Search Console, use URL Inspection on one fixed page and choose Test live URL.
  3. Open the Unparsable structured data report and click Validate fix. Google then rechecks the affected pages. This can take days or longer, so a count that doesn't drop right away is normal.

Stop it coming back

  • Test a few pages after any theme, plugin or template change.
  • Don't paste schema from word processors. Use a plain text editor.
  • Use one source of schema for each type instead of several plugins.
  • Escape or strip quotes and line breaks in generated fields.
  • Read Search Console emails and check the report after site updates.

Structured data is covered in week 16 of SiteMonday, which ends with a written report and a ranked fix list. Making the fix is still up to you or your developer.

Step by step for your platform

Questions

What does unparsable structured data mean?

Google found structured data on the page but could not read it because the code has a syntax error. Because of that, it ignores the affected block.

Will unparsable structured data hurt my rankings?

It is not normally a ranking penalty. You can lose rich result eligibility and give search engines less clear information about the page.

How long does Google take to clear the error after I fix it?

After you click Validate fix, Google rechecks the pages over time. It can take days or longer, so check back rather than expecting an instant change.

Is it a problem with my plugin or my theme?

It can be either. Test an affected page in the Rich Results Test, find where the code is output in the page source, then switch off one source of schema at a time to see which one is responsible.

Do I need a developer to fix it?

Not always. If you can edit a field or remove a stray comma or quote, you can fix it yourself. If the code comes from a theme template or custom script, a developer may be needed.

Why does the error affect only some of my pages?

Usually the data on those pages contains something the others don't, such as a quote mark or line break in a product description. A template error would normally hit every page of that type.

Related problems