Recipe Schema Generator

Paste your ingredients and steps and get Recipe JSON-LD with times, calories and ratings in the right format.

Your details

Then test the page with Google's Rich Results Test.

What is Recipe schema?

Recipe markup describes a dish: its ingredients, step-by-step instructions, how long it takes, how much it makes, its nutrition and its ratings. Google can show recipes as rich results with an image, star rating and total time, and in recipe carousels.

Required and recommended properties

Google requires a name and an image. It recommends adding as many of these as you can:

  • recipeIngredient: one entry per ingredient, with quantities.
  • recipeInstructions: one HowToStep per step.
  • prepTime, cookTime and totalTime: ISO 8601 durations such as PT1H15M. Enter minutes and RankInject converts them.
  • recipeYield, nutrition.calories, recipeCategory, recipeCuisine and keywords.
  • aggregateRating, author, datePublished and a video if you have one.

Image tips

Use photos of the finished dish. Add several high-resolution versions, ideally in 16:9, 4:3 and 1:1 ratios, so Google can pick the best crop for each placement.

Keep markup and page in sync

The ingredients, steps and ratings in your markup must match what is shown on the page. If you change the recipe, update both.

Frequently asked questions

How do I write cook times?

Enter the number of minutes in RankInject. It writes them as ISO 8601 durations, so 75 minutes becomes PT1H15M, and adds the total time automatically.

Can I put ingredient groups (e.g. "For the sauce")?

recipeIngredient is a flat list of ingredients. Keep the group headings in your visible recipe and list every ingredient in the markup.

Why are calories written as "290 calories"?

schema.org defines calories as an energy value with a unit, so the number needs the word "calories" after it.

My recipe plugin already outputs markup. Do I need this?

Probably not for those recipes. Use the validator to check what your plugin outputs, and this generator for recipes outside the plugin.