Leadmetrics
Free tool, no sign-up

Recipe schema generator

Generate Recipe JSON-LD with ingredients, steps and timings, with minutes converted to ISO 8601 for you.

Recipes without an image do not get a rich result.

Entered in minutes and converted to ISO 8601 for you.

Include the quantity in each line. Google parses the whole string.

JSON-LD

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Recipe"
}
</script>

Before you ship this

  • Error: Recipe name is required by Google for this type.
  • Error: Image URL is required by Google for this type.
  • Error: Ingredients is required by Google for this type.
  • Error: Steps is required by Google for this type.

How to use it

  1. Enter the recipe name and an image URL. Both matter for the rich result.
  2. Enter prep and cook time in minutes. They are converted to ISO 8601 durations automatically.
  3. Add ingredients one per line, then the method steps in order.
  4. Copy the generated script tag and paste it into the page head, then confirm it with the Google Rich Results Test.

Recipes are one of the richest results left

Unlike FAQ markup, recipe rich results have not been scaled back. A complete Recipe can earn a thumbnail, star rating, cook time and calorie count in search, plus eligibility for the recipe carousel and Google Images.

An image is effectively mandatory. A recipe without one is valid markup and will not get a rich result, because every recipe surface is visual.

Durations are ISO 8601, not minutes

Schema.org expects PT30M rather than "30 minutes" and PT1H15M rather than "1 hour 15". This generator takes minutes and converts them, and fills in totalTime from prep plus cook.

If you supply totalTime by hand, make sure it is at least the sum of the others. A total that is less than its parts is a validation error.

Ingredients and steps have a format

Each recipeIngredient should be one complete line including quantity, as a human would read it: 200g plain flour, not flour with the amount elsewhere. Google parses the whole string.

Steps become HowToStep entries. Keep each to a single action, and do not number them yourself. The position is already in the markup, and manual numbering reads badly when Google renders the list.

Recipe schema generator FAQ

Why do recipe times have to be in ISO 8601?

Because the schema.org specification uses durations like PT30M rather than plain minutes. This tool converts them, which removes the most common reason recipe markup fails validation.

Do I need an image for a recipe rich result?

Yes. Recipes compete visually, and a recipe with no image is valid markup that will not win the result. Use the largest version you have.

How do I get into the recipe carousel?

Valid markup makes you eligible; it does not guarantee inclusion. Ratings, images and host carousel eligibility all affect it, and Google decides per query.

Do I need ratings for the recipe result?

Not technically, and in practice they matter a great deal — the star rating is most of what makes a recipe result stand out. They must come from real reviews shown on the page. A recipe with no ratings is still eligible and will usually lose to one that has them.

Should I include nutrition information?

It is optional and it displays, which is reason enough for most food sites. Calories per serving is the field most often shown. Only publish figures you are confident in — this is one of the few places where a careless number can genuinely mislead someone.

What format does the yield take?

A plain string like 4 servings or 12 muffins. Write it the way the page does. A bare number is accepted but reads poorly in a result, where four alone could mean portions, pieces or hours.

How do I mark up a recipe video?

As a video object inside the recipe, with the content URL, a thumbnail, a duration and an upload date. It is one of the more valuable optional fields, because recipe results with video get a video badge and often a separate placement.

Should each step have its own image?

Where the page has them, yes. Step images support the expanded guidance view and are useful to the reader regardless of what search does with them. Steps also accept a URL pointing at an anchor on your page, which is worth adding if your steps have ids.

Does the story before the recipe hurt?

Not for the markup, which describes the recipe wherever it sits on the page. It hurts the reader, and a jump-to-recipe link is now standard practice for exactly that reason. The structured data and the page layout are separate decisions.

How should ingredients be written?

One complete line each, exactly as the page lists them, quantity and unit included: 200g plain flour, not flour with the quantity somewhere else. The specification has no separate fields for amount and item, so the string is the whole thing.