Skip to main content

Create Recipe Schema Markup for Rich Search Results Generate Schema.org Recipe JSON-LD with ingredients, steps, nutrition, and cook time.

Recipe Schema Generator illustration
🔍

Recipe Schema Generator

Generate Schema.org Recipe JSON-LD with ingredients, steps, nutrition, and cook time.

1

Enter recipe details

Add recipe name, description, cuisine, prep time, cook time, and servings.

2

Add ingredients and steps

List ingredients and cooking instructions step by step.

3

Copy recipe schema

Copy the JSON-LD with nutrition, ratings, and images included.

Loading tool...

What Is Recipe Schema Generator?

A Recipe Schema Generator is a tool that creates structured data for cooking recipes following Google's recipe rich results requirements, enabling the visually rich recipe cards that appear in Google search. Food bloggers and website owners use it to increase their online visibility by providing recipe json-ld markup that can be easily understood by search engines like Google. One specific problem it solves is the difficulty of formatting recipe structured data correctly, which can lead to poor search engine rankings and reduced traffic.

The tool generates a JSON-LD output that includes detailed information about the recipe, such as ingredients, cooking time, and nutritional information, making it easy to implement google recipe markup on their websites. What makes this tool different is its ability to break down complex recipes into manageable parts, allowing users to easily add or remove instructions, ingredients, and other details as needed. For example, the tool allows users to add multiple instructions with a simple "Add Step" button, and also provides an option to input keywords related to the recipe.

It also supports advanced features like rating and review count, which can be included in the generated schema to provide a more comprehensive view of the recipe's popularity. By using this tool, website owners can ensure that their recipe structured data is accurate and up-to-date, increasing their chances of getting featured in Google's rich results and driving more traffic to their site. This can be especially useful for cooking websites looking to improve their search engine rankings and increase their online presence through the use of recipe schema generator and google recipe markup.

Why Use Recipe Schema Generator?

  • Enables Google's visually rich recipe cards in search results
  • Full support for ingredients, step-by-step instructions, and nutrition facts
  • Prep time, cook time, and total time display
  • Rating stars and review counts for social proof
  • Compatible with Google Discover and Assistant cooking features

Common Use Cases

Food Blogs

Add recipe cards to every recipe post for maximum search visibility.

Cooking Websites

Enable guided cooking steps in Google Assistant.

Nutrition Content

Display calorie and nutrition data in search results.

Cookbook Authors

Promote recipes with rich search result appearances.

Technical Guide

The Recipe Schema Generator tool works under the hood by utilizing React for building its user interface and managing state changes. It uses the `useState` hook from React to store values of various form fields such as recipe name, description, image URL, author name, preparation time, cooking time, total time, servings, category, cuisine, calories, ingredients, instructions, rating value, review count, and keywords. The tool then processes these stored values through a series of conditional statements in the `generateSchema` function to construct a schema object that adheres to Google's recipe rich results requirements.

The `toISO` function is used to convert preparation, cooking, and total times from minutes to ISO 8601 duration format, which is required by Google for recipe rich results. For instance, if the user inputs 30 minutes for preparation time, this function converts it into PT30M. The tool also uses JavaScript's built-in `JSON.stringify` method to convert the schema object into a JSON-LD string with indentation for better readability.

The ingredients and instructions are processed using array methods like `split`, `filter`, and `map`. Ingredients are split by newline characters, filtered to remove empty lines, and then included in the schema as an array of strings. Instructions are mapped over to create HowToStep objects with a text property, which is required by Google for recipe rich results. The tool also checks if rating value and review count are provided, and if so, it creates an AggregateRating object to include in the schema.

When the user clicks the "Copy with Script Tag" button, the `handleCopy` function uses the `copyToClipboard` utility from the `@/lib/utils` module to copy the generated JSON-LD string wrapped in a script tag to the clipboard. This allows users to easily paste the schema into their website's HTML code, enabling Google to parse and display rich recipe results. The tool's output is formatted according to Google's requirements for recipe schema, which includes properties like name, image, author, description, prepTime, cookTime, recipeYield, recipeCategory, recipeCuisine, nutrition, and aggregateRating.

Tips & Best Practices

  • 1
    Use ISO 8601 duration format for times: PT1H30M = 1 hour 30 minutes
  • 2
    Include a high-quality image (minimum 1200px wide for best display)
  • 3
    List ingredients individually in recipeIngredient array, not as a block of text
  • 4
    Write instructions as individual HowToStep entries
  • 5
    Include calorie count — it displays prominently in recipe cards

Related Tools

Frequently Asked Questions

Q What are the minimum requirements for recipe rich results?
Google requires name, image, and either recipeIngredient or recipeInstructions. For best results, include all recommended properties.
Q How should I format cooking times?
Use ISO 8601 duration format: PT30M (30 minutes), PT1H (1 hour), PT1H30M (1.5 hours).
Q Can recipe schema include video?
Yes. Include a VideoObject property for recipe videos. This enables video recipe rich results in search.

About This Tool

Recipe Schema Generator is a free online tool by FreeToolkit.ai. All processing happens directly in your browser — your data never leaves your device. No registration or installation required.