---
title: "Framer Help: Structured data through JSON-LD"
description: Learn how to add and validate structured data on your Framer site using JSON-LD.
published: "Nov 9, 2026, 7:45 AM UTC"
---

# Structured data through JSON-LD

Learn how to add and validate structured data on your Framer site using JSON-LD.

Structured data helps search engines better understand your page content by providing information in a standardized format. For example, a recipe page can define ingredients, cooking time, and calorie count in a way that search engines can easily interpret. Google Search Central recommends using structured data to improve content comprehension and categorization. 

### [Add structured data to your site](#add-structured-data-to-your-site)

Before adding structured data, identify the most appropriate schema type for your content. Resources such as [Understanding how structured data works](https://developers.google.com/search/docs/advanced/structured-data/intro-structured-data#:~:text=Structured%20data%20is%20a%20standardized,the%20calories%2C%20and%20so%20on) and the [Search Gallery](https://developers.google.com/search/docs/advanced/structured-data/search-gallery) can help you choose the correct format.

On Framer sites, you can add structured data using the **Custom Code** feature. [JSON-LD](../../../dictionary/json-ld) is the recommended format and should be placed inside a `<script type="application/ld+[json](../../../dictionary/json)">` tag in the `<head>` section of your site.

### [Add structured data to CMS pages](#add-structured-data-to-cms-pages)

You can also use the **Custom Code** feature to add structured data to [CMS](../../../dictionary/cms) detail pages. By referencing CMS fields with the `{{}}` syntax, you can generate unique structured data for each page.

For example:
- `{{Title}}` references the CMS **Title** field.
- `{{Title | json}}` ensures the value is formatted safely for JSON output.

Here is a more complete example that references several CMS fields in a `BlogPosting` schema:

```
<script type="application/ld+json">{  "@context": "https://schema.org",  "@type": "BlogPosting",  "headline": {{Title | json}},  "description": {{Excerpt | json}},  "image": {{Cover_Image | json}},  "datePublished": {{Created | json}},  "dateModified": {{Updated | json}},  "author": {    "@type": "Person",    "name": {{Author_Name | json}}  }}</script>
```

- `{{Title | json}}` and `{{Excerpt | json}}` reference plain text CMS fields for the post’s headline and summary.
- `{{Cover_Image | json}}` references an image CMS field, which outputs the image URL automatically.
- `{{Created | json}}` and `{{Updated | json}}` are built-in variables available on every CMS item — no need to create them manually.
- `{{Author_Name | json}}` references a field pulled from a [Collection Reference](https://www.framer.com/academy/lessons/cms-collection-references-introduction) to an Authors collection.
- The `| json` filter ensures all values are safely escaped for valid JSON output.

After publishing, inspect your live site to confirm that variables such as `{{Title | json}}` are correctly rendered for each page.

### [Store schema in a CMS text field](#store-schema-in-a-cms-text-field)

While dynamically generating schema with CMS variables is recommended, you can also store complete JSON-LD markup in a plain text CMS field.

To output this field in the `<head>`, use:

```
<script type="application/ld+json">
  {{variable_name | unsafeRaw}}
</script>
```

The `{{variable_name | unsafeRaw}}` filter outputs the stored content without modification. This approach is useful when you want full control over the JSON-LD markup directly within the CMS.

**Warning:** Use `unsafeRaw` carefully. It does not escape content. Invalid HTML or malformed JSON can break your site or introduce security risks.

### [Validate structured data](#validate-structured-data)

After publishing your site, validate your structured data using Google’s [Rich Results Test](https://search.google.com/test/rich-results). This tool confirms whether your schema is correctly implemented and eligible for enhanced search results.

Test specific schema types, such as breadcrumbs or recipes, to ensure they function as expected.

#### FAQ

### How can I add structured data like JSON-LD to my Framer website?

On Framer sites, use the Custom Code feature to embed structured data such as JSON-LD. You can add your JSON-LD markup directly using this feature to enhance your site's SEO and enable rich results.

### How do I add unique structured data to each CMS page in Framer?

You can use the Custom Code feature on CMS detail pages and insert CMS variables using the `{{}}` syntax. For example, `{{Title}}` references the CMS 'Title' field, and `{{Title | json}}` ensures JSON-safe formatting. This allows you to generate unique structured data for every page.

### What is the safest way to store and output schema markup from a CMS field in Framer?

You can write schema markup as JSON in a plain text CMS field and output it in the `<head>` tag using the syntax: `<script type="application/ld+json">{{variable_name | unsafeRaw}}</script>`. Be cautious with `unsafeRaw`, as it does not escape the content—invalid HTML or unsafe input **can break your website or introduce security issues**.

Updated

September 15, 2026

## Your next idea starts here

Create personal portfolio, Build startup site, `Launch landing page`, Start company blog

[Start without AI](https://framer.com/signup)

---

## Navigation

- [Enterprise](../../../enterprise/)
- [Pricing](../../../pricing)
- [Log in](https://framer.com/login)
- [Sign up](https://www.framer.com/r/signup/)
- [Brand guidelines](../../../brand)
- [Help center](../../)
- [SEO](../../seo/)
- [AI](../../../ai/)
- [Agents](../../../agents/)
- [MCP New](../../../mcp/)
- [Design](../../../design/)
- [Collaborate](../../../collaborate/)
- [CMS](../../../cms/)
- [Hosting](../../../hosting/)
- [Performance](../../../performance/)
- [Analytics](../../../analytics)
- [SEO](../../../seo/)
- [Skills New](../../../skills)
- [Convert](../../../convert/)
- [Publish](../../../publish/)
- [Updates](../../../updates)
- [Templates](https://www.framer.com/community/marketplace/templates/)
- [Components](https://www.framer.com/community/marketplace/components/)
- [Vectors](https://www.framer.com/community/marketplace/vectors/)
- [Plugins](https://www.framer.com/community/marketplace/plugins/)
- [Gallery](https://www.framer.com/community/gallery/)
- [Hire Experts](https://www.framer.com/community/members/)
- [Switch New](../../../switch/)
- [Agencies](../../../agencies/)
- [Startups](../../../startups/)
- [Academy](../../../academy/)
- [Desktop App](../../../downloads/)
- [Developers](../../../developers/)
- [Affiliates](../../../creators)
- [Experts New](../../../expert/apply/)
- [Guides](../../../guides)
- [Blog](../../../blog/)
- [Newsletter](../../../newsletter)
- [Stories](../../../stories/)
- [Skills Index New](../../../skills/index)
- [Students](../../../education/students/)
- [Ambassadors](../../../)
- [Help Articles](../../)
- [Meetups](../../../meetups/)
- [Contact](../../../contact/)
- [Designers](../../../solutions/designers/)
- [Agencies](../../../solutions/agencies/)
- [Marketers](../../../solutions/marketers/)
- [Growth](../../../solutions/growth/)
- [Builders](../../../solutions/builders/)
- [Engineers](../../../solutions/engineers/)
- [Site Teams](../../../solutions/site-teams/)
- [Founders](../../../solutions/founders/)
- [AI website builder](../../../solutions/ai-website-builder/)
- [AI design agent](../../../solutions/ai-designer/)
- [Pro sites](../../../solutions/website-builder/)
- [Landing pages](../../../solutions/landing-pages/)
- [Portfolio maker](../../../solutions/portfolio-website/)
- [UI/UX design](../../../solutions/ui-ux-design/)
- [Figma to HTML](../../../solutions/figma-to-html/)
- [No-code](../../../solutions/no-code-website-builder/)
- [Compare](../../../compare)
- [Webflow](../../../compare/framer-vs-webflow)
- [Figma](../../../compare/framer-vs-figma)
- [Wix](../../../compare/framer-vs-wix)
- [Squarespace](../../../compare/framer-vs-squarespace)
- [WordPress](../../../compare/framer-vs-wordpress)
- [Readymag](../../../compare/framer-vs-readymag)
- [Ceros](../../../compare/framer-vs-ceros)
- [Unbounce](../../../compare/framer-vs-unbounce)
- [Lovable](../../../compare/framer-vs-lovable)
- [Claude Code](../../../compare/framer-vs-claude-code)
- [ChatGPT](../../../compare/framer-vs-chatgpt)
- [Codex](../../../compare/framer-vs-codex)
- [Contentful](../../../compare/framer-vs-contentful)
- [Sanity](../../../compare/framer-vs-sanity)
- [AEM](../../../compare/framer-vs-adobe-experience-manager)
- [Replit](../../../compare/framer-vs-replit)
- [Astro](../../../compare/framer-vs-astro)
- [v0](../../../compare/framer-vs-v0)
- [About New](../../../about)
- [Careers](../../../careers/)
- [Security](../../../legal/security)
- [Brand](../../../brand)
- [Abuse](mailto:abuse@framer.com)
- [Legal](../../../legal/community-terms)
- [Trust](https://app.eu.vanta.com/framer.com/trust/ow67ujg7iav0t6qtd1o6r2)
- [Merch](../../../store)
- [Keyboard](../../../f1)
- [Stack Score](../../../stack-score/)
- [Free domains](../../../domains/)
- [CanvasBench](../../../canvasbench/)
- [State of Sites](https://www.framer.com/state-of-sites-2026/)
- [AEO scanner](../../../aeo)
- [Link Preview](https://www.linkpreview.app/)
- [Checking status](https://www.framerstatus.com/)
