Beginner’s Guide to Adding Recipe Schema Markup on Your Site

How to Add Recipe Schema Markup to Your Website

Getting your recipe content noticed online takes more than just delicious photos and clear instructions. If you want to stand out in search results, you need to learn how to add Recipe schema to your website. This structured data helps search engines understand your content and display it as rich results—complete with star ratings, cook times, and even thumbnail images. It’s a simple yet powerful way to boost your recipe SEO and attract more clicks.

What is Recipe Schema?

Recipe schema is a type of structured data defined by Schema.org. It helps search engines better understand the content of your page by tagging specific elements like ingredients, instructions, cook time, and ratings.

example of recipe rich snippet on SERPs

When implemented, Recipe schema enhances how your content appears in search results—unlocking features like recipe cards, ratings, prep/cook times, and nutritional information. These are often presented as rich snippets, which are designed to catch users’ attention and provide them with a more engaging experience on the SERPs. 

This format is particularly useful for food bloggers, cooking websites, or any publisher sharing food content, as it gives recipes the chance to stand out on Google’s Recipe carousel and voice search.

Why Recipe Schema Matters for SEO?

While content quality will always matter, Recipe schema gives your website a structured advantage that improves both how your content is interpreted by search engines and how it appears to users.

  • Increased Visibility in SERPs – With Recipe schema, your content can show up in rich results and even appear in the recipe carousel or image preview cards.
  • Higher Click-Through Rates – Structured data adds visual enhancements—like images, ratings, and cook times—that make your result more appealing and informative.
  • Eligibility for Voice Search and Google Assistant – Google uses structured data to answer voice queries. Recipes with schema are more likely to be surfaced through smart devices.
  • More Accurate Indexing – You’re giving search engines precise information about your content, helping it rank for the right queries.

Author’s Note: If you’re optimizing food content for search, adding Recipe schema is a must, but it’s not the only thing you can do to improve your website’s visibility on Google. This is part of a larger series of hands-on SEO guides—like adding LocalBusiness, VideoObject, HowTo, Product, and Review schemas—to help your content get seen online. 

Properties You Should Include in Your Recipe Schema

To fully take advantage of Recipe schema, you’ll want to include both required and recommended fields. Here’s a quick breakdown:

Property Description Required?
@context Always set to “https://schema.org” Yes
@type Always set to “Recipe” Yes
name Title of the recipe Yes
description Short description of the recipe Yes
image One or more images of the dish Yes
recipeIngredient List of ingredients Yes
recipeInstructions Step-by-step instructions (can be text or structured) Yes
author Person or organization who created the recipe No, but recommended
prepTime Preparation time (ISO 8601 format, e.g., PT15M) No, but recommended
cookTime Cooking time (ISO 8601 format) No, but recommended
totalTime Total time (prep + cook) in ISO 8601 format No, but recommended
recipeYield Number of servings or quantity produced No, but recommended
nutrition Nutritional info (calories, fat, carbs, etc.) Optional
aggregateRating Average star rating from users Optional
review Individual user reviews Optional
video A video of the recipe being made (VideoObject) Optional
keywords Relevant keywords for the recipe Optional
recipeCuisine Type of cuisine (e.g., Italian, Filipino, Mexican) Optional
recipeCategory Type of dish (e.g., Dessert, Main Course, Appetizer) Optional

How to Add Recipe Schema Markup

Adding Recipe schema to your content may sound technical, but it’s straightforward once you have the right info on hand.

Prepare Your Recipe Content

Gather the essential elements of your recipe. This should include:

  • Recipe title and a brief description
  • One or more high-quality images of the finished dish
  • A complete list of ingredients
  • Step-by-step cooking instructions
  • Preparation, cooking, and total time (formatted in ISO 8601, e.g., PT30M)
  • Number of servings
  • Author name
  • Optional: nutrition facts, user ratings, or reviews

Create the JSON-LD Schema Markup

Use JSON-LD (JavaScript Object Notation for Linked Data), which is the format Google recommends. Here’s a sample you can customize:

<script type=“application/ld+json”>

{

  “@context”: “https://schema.org”,

  “@type”: “Recipe”,

  “name”: “Classic Chocolate Chip Cookies”,

  “author”: {

    “@type”: “Person”,

    “name”: “Sean Si”

  },

  “description”: “A chewy, gooey classic chocolate chip cookie recipe with a crisp edge and soft center.”,

  “image”: [

    “https://example.com/images/chocochip1.jpg”

  ],

  “recipeYield”: “24 cookies”,

  “prepTime”: “PT15M”,

  “cookTime”: “PT10M”,

  “totalTime”: “PT25M”,

  “recipeIngredient”: [

    “2 1/4 cups all-purpose flour”,

    “1 tsp baking soda”,

    “1/2 tsp salt”,

    “1 cup unsalted butter, softened”,

    “3/4 cup sugar”,

    “3/4 cup brown sugar”,

    “2 eggs”,

    “2 tsp vanilla extract”,

    “2 cups semisweet chocolate chips”

  ],

  “recipeInstructions”: [

    {

      “@type”: “HowToStep”,

      “text”: “Preheat oven to 375°F (190°C).”

    },

    {

      “@type”: “HowToStep”,

      “text”: “In a small bowl, combine flour, baking soda, and salt. Set aside.”

    },

    {

      “@type”: “HowToStep”,

      “text”: “In a large bowl, beat butter and sugars until creamy. Add eggs and vanilla, mix well.”

    },

    {

      “@type”: “HowToStep”,

      “text”: “Gradually blend in the flour mixture, then stir in chocolate chips.”

    },

    {

      “@type”: “HowToStep”,

      “text”: “Drop by rounded spoonfuls onto a baking sheet and bake for 10 minutes or until golden brown.”

    }

  ],

  “aggregateRating”: {

    “@type”: “AggregateRating”,

    “ratingValue”: “4.8”,

    “reviewCount”: “256”

  }

}

</script>

Add the Schema to Your Page

Once you’ve generated your JSON-LD code, add it to the <head> section or just before the closing </body> tag of your recipe page. If you’re using WordPress, plugins like Yoast SEO offer built-in recipe schema support that makes implementation even easier.

Test Using Google’s Rich Results Test

testing recipe schema on rich snippet test

Before you hit publish, verify that your markup is working correctly. Use the Rich Results Test tool by Google to check if:

  • Your recipe schema is valid.
  • You’re eligible for recipe-rich snippets.
  • There are no errors or warnings to fix.

Best Practices for Recipe Schema

To get the most out of your structured data, follow these key tips:

  • Use clean, specific instructions. Break down your recipe steps clearly, especially if using HowToStep objects.
  • Keep images high quality and relevant. Google displays them in SERPs, so make them appetizing and properly sized.
  • Don’t keyword-stuff. Write naturally in your name, description, and instructions.
  • Keep your schema up to date. Update nutrition info, ratings, or ingredients as the recipe evolves.
  • Combine your schema with good UX. A well-designed recipe page with schema performs best—not just in search, but for your users too.

Key Takeaway

Using Recipe schema to your website isn’t just for developers or SEO pros—it’s a practical step any food creator can take to boost visibility. When you know how to add Recipe schema to your pages, you achieve better indexing, richer search results, and a stronger chance of being featured on Google’s recipe carousel. Structured data gives your culinary content the spotlight it deserves.

Share on:
Sean Si

About Sean

is a Filipino motivational speaker and a Leadership Speaker in the Philippines. He is the head honcho and editor-in-chief of SEO Hacker. He does SEO Services for companies in the Philippines and Abroad. Connect with him at Facebook, LinkedIn or Twitter. He’s also the founder of Sigil Digital Marketing. Check out his new project, Aquascape Philippines.