Recipe Schema Generator

A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call

Free recipe schema generator. Turn your recipe's ingredients, steps, times and servings into Recipe JSON-LD, with ISO times worked out for you.

Recipe structured data (JSON-LD)

Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.

How to use the recipe schema generator

Enter your recipe the way it appears on your page, and the recipe schema generator turns it into Recipe JSON-LD:

  • Name, author and publish date.
  • Image addresses, one per line. Google requires at least one image for recipe results.
  • Prep time and cook time in minutes. The generator converts them into the ISO 8601 format search engines expect: 30 minutes becomes PT30M, 85 minutes becomes PT1H25M. Total time is prep plus cook unless you enter it yourself, which you should for recipes with rising, marinating or chilling time.
  • Yield, category and cuisine, such as "1 loaf (12 slices)", "Bread" and "Nordic".
  • Calories, rating and keywords if you have them.
  • Ingredients, one per line, and steps, one per line. Numbers or bullets at the start of a step ("1.", "-") are removed, because the markup numbers the steps itself.

It checks for the required name and image, valid image addresses and a sensible rating. Everything runs in your browser.

What recipe schema does

Recipe schema is structured data that describes a recipe's ingredients, steps, times, servings, nutrition and ratings. Google uses it to show recipes as rich results, with a large image, the rating, the total time and sometimes the calories, and in recipe carousels and filters on mobile. These results stand out far more than a plain blue link.

{
  "@context": "https://schema.org",
  "@type": "Recipe",
  "name": "Seeded rye bread",
  "image": ["https://crumbandco.example/img/rye-16x9.jpg"],
  "prepTime": "PT30M",
  "cookTime": "PT55M",
  "totalTime": "PT1H25M",
  "recipeYield": "1 loaf (12 slices)",
  "recipeIngredient": ["500 g dark rye flour", "12 g salt"],
  "recipeInstructions": [
    { "@type": "HowToStep", "text": "Mix the flour, seeds, starter, water and salt into a thick paste." }
  ]
}

For food bloggers, bakeries, restaurants, cookery schools and food brands, recipe markup is one of the most valuable types of structured data.

Required by Google

  • name: the name of the dish.
  • image: at least one image of the finished dish. Google recommends several crops (16×9, 4×3 and 1×1), each at least 50,000 pixels in total, such as 1200 × 675 for 16×9.

Recommended

  • author, datePublished, description and keywords.
  • prepTime, cookTime, totalTime in ISO 8601 duration format.
  • recipeYield: how much it makes, such as "4 servings" or "24 cookies".
  • recipeCategory (breakfast, dessert, bread) and recipeCuisine (Italian, Thai, Nordic).
  • recipeIngredient: each ingredient as text, with quantity.
  • recipeInstructions: the steps, as HowToStep items.
  • nutrition.calories: calories per serving.
  • aggregateRating: the average rating and number of ratings, if readers rate the recipe on your page.
  • video: if the recipe has a video.

ISO 8601 durations, explained

Recipe times use a format that looks odd at first: PT1H25M means a period of time (P), with a time part (T), of 1 hour (H) and 25 minutes (M). Some examples:

Minutes ISO 8601
15 PT15M
60 PT1H
85 PT1H25M
900 (15 hours) PT15H

The recipe schema generator does this conversion for you. Enter all times in minutes.

Total time

Total time should be the whole time from starting to eating, including resting, rising, marinating or chilling. For a bread that rises overnight, prep plus bake might be 1 hour 25 minutes, but the real total is closer to 15 hours. Enter 900 in the total time field in that case, and say so in the recipe text, so readers aren't caught out.

Writing ingredients and steps for markup

  • One ingredient per line, with its amount: "500 g dark rye flour", not just "flour".
  • Use the same text as the page. Markup must match what readers can see.
  • One step per line, written as an instruction: "Bake at 220°C for 15 minutes, then 190°C for 40 minutes."
  • Keep steps to actions. Tips and stories belong in the article around the recipe, not in the instructions.
  • Include temperatures and timings in the steps where they matter.

Ratings

Only add an aggregate rating if readers can rate the recipe on your page, and the numbers in the markup match what's shown. Don't invent ratings or copy them from another site. If you don't have ratings yet, leave the fields empty; the rest of the markup still works.

Where to add it

Add the generated JSON-LD to the recipe's page. If you use WordPress, recipe plugins such as WP Recipe Maker or Tasty Recipes add Recipe markup automatically from their recipe cards; check the page source for "@type": "Recipe" before adding more, so you don't have two. On other platforms, or hand-built sites, paste the code into the page's HTML.

Then test the page with Google's Rich Results Test and check the Recipes report in Search Console.

Getting more from recipe pages

Recipe searches are competitive, and structured data alone won't win them. What helps:

  • Great photos of the finished dish, in the crops Google recommends.
  • A clear recipe card near the top, or a "jump to recipe" link, so readers don't have to scroll through a long story.
  • Useful extras: substitutions, storage, make-ahead tips and common mistakes.
  • A video, which can appear in video results too. The video schema generator marks it up.
  • Pinterest, where recipes do especially well.

Many recipe pages are long articles; the reading time calculator adds a reading time label, and article schema and breadcrumb schema describe the rest of the page.

Common mistakes

  • No image, or an image that isn't of the finished dish.
  • Times written as text ("1 hour 25") instead of ISO durations.
  • Total time that leaves out rising or chilling.
  • Ingredients without amounts.
  • Steps merged into one long paragraph.
  • Markup that doesn't match the visible recipe.
  • Several recipes in one Recipe item. If a page has two recipes, mark up each one separately.

Recipe markup for restaurants and food businesses

Recipe schema isn't only for food blogs. Bakeries, cafés, cookery schools and food brands can use it too:

  • Signature dishes: publish a home version of a popular dish, with a link to order the real thing.
  • Product recipes: a flour mill, a spice brand or a farm shop can publish recipes that use its products.
  • Seasonal content: holiday baking, summer salads and festival dishes are searched for every year, so a well-marked-up recipe can bring visitors back each season.
  • Cookery classes: publish the recipe from a class, and mark up the class itself with event schema.

Each recipe needs its own page, with the full recipe visible on that page, not hidden behind a download or a sign-up form.

A worked example

A bakery publishes its seeded rye recipe on its blog. In the recipe schema generator, the owner enters the name, the author, the publish date, two image crops, 30 minutes prep and 55 minutes baking, and 900 minutes total, because the dough rises for 12 to 14 hours. The yield is "1 loaf (12 slices)", the category "Bread" and the cuisine "Nordic". The six ingredients and five steps are pasted in from the recipe card.

The generator writes PT30M, PT55M and PT15H, and shows "Looks good". The Rich Results Test detects a valid recipe, and a few weeks later the recipe appears with its photo and total time in recipe results.

Search ads for the searches that matter now

Good markup helps your pages rank over time. Google Ads puts the same pages in front of buyers today. That is the whole job of DeepRit: a PPC-only agency that sets up and runs Google Ads accounts so every click is accounted for. You keep full ownership of your account, get a written report every week, and can stop at any time. See our pricing or ask for a free audit.

Frequently asked questions

What is recipe schema?

Structured data, usually JSON-LD, that describes a recipe's name, images, ingredients, steps, times, servings, nutrition and ratings, so Google can show it as a rich result.

What does Google require for recipe rich results?

The recipe's name and at least one image. Times, ingredients, instructions, yield and ratings are strongly recommended.

How do I write cooking times for schema?

In ISO 8601 durations, like PT1H25M. The recipe schema generator converts minutes for you.

Should total time include rising and chilling?

Yes. Total time is the whole time from start to finish, so include resting, rising, marinating and chilling.

Can I add ratings?

Only if readers can rate the recipe on your page and the markup matches the ratings shown.

Is the recipe schema generator free?

Yes. It's free with no sign-up, and it runs entirely in your browser.

Free PPC audit

See where your ad budget leaks.

We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.

Book a free audit call 30-minute call · Free · The audit is yours to keep