Skip to content

Schema Markup Generator

Build one JSON-LD object from a type, a name, and a description. The page does not publish the markup or claim that a search engine will use it.

Result

Enter a name and a description

How to Use

  1. 1 Choose Product or Article.
  2. 2 Enter a name and a description.
  3. 3 Copy the JSON-LD. It is not uploaded.

Example Output

  • A Product named Oak mug includes that name and the description you typed.

About This Tool

The types are Product and Article. The object uses https://schema.org as the context.

Building One JSON-LD Object

Choose Product, type the name Oak mug, and type the description A mug with a thick handle. The headline is Product. The text is a JSON-LD object with @context set to https://schema.org, @type set to Product, name set to Oak mug, and description set to A mug with a thick handle. Those four members are the whole object. The page pretty-prints it so the keys sit on their own lines. Copy result copies that JSON. The page does not publish the markup, and it does not claim a search engine will use it.

Article is the other type. The same name and description fields are used, and @type becomes Article. There is no author field, no date field, no image field, and no price field. If you need those, they are not produced here. The name must be from 1 to 120 characters. The description must be from 1 to 500 characters. Extra spaces are folded into one space, and the ends are trimmed, before the length is judged and before the JSON is built. An empty name is refused with Name must be from 1 to 120 characters. An empty description uses the matching sentence for Description. A type that is not Product or Article is refused with Choose Product or Article.

The object is text on the page. Putting it on a website is a separate act the page does not perform. The page does not submit the markup to a search engine. It does not check whether the description is accurate. It copies the words you typed into the description string, and it copies the name you typed into the name string. Oak mug is the sample name because that is the field's starting value, not because the page knows about a product. A mug with a thick handle. is the sample description for the same reason.

The button says Build the markup. Reset restores Product, Oak mug, and the sample description. The labeled lines repeat the type and the name, which is a short reading of the object. The full object, including the context URL and the description, is the text. If you copy only the headline Product, you have not copied the markup. Copy the JSON. Keep a note that the page did not publish it and does not claim a search engine will use it.

What the Object Contains

The object has exactly four keys. @context is the string https://schema.org. @type is either Product or Article, matching the choice you made. name is the name after trimming and after repeated spaces are folded. description is the description after the same cleanup. For the sample, name is Oak mug and description is A mug with a thick handle. The period at the end of that description stays, because it is not extra space. The page does not add a price, a brand, an image, an author, or a date. It does not wrap the object in a script element. It does not publish the markup. It does not claim a search engine will use it.

The headline is the type, so the sample headline is Product. The Type label repeats Product. The Name label repeats Oak mug. The description appears in the JSON text and not as a third label. Read the JSON when you need the description, the context, and the type together. The steps under the result say the page sets the context to https://schema.org, sets the type, the name, and the description you typed, and does not submit the markup to a search engine. That last step is a limit, not a missing button. There is no submit-to-a-search-engine control.

How Oak mug Becomes JSON-LD

The type control offers Product and Article. Product is the sample. The name Oak mug is well under 120 characters. The description A mug with a thick handle. is well under 500. The page trims the ends and folds any run of spaces into one space, then checks the lengths, then builds the object. Pretty-printing puts each key on its own line and leaves slashes in https://schema.org as slashes rather than escaped characters. The headline reads Product. Copy result returns the JSON text. Change the type to Article and build again. @type changes to Article. The name and description stay. The headline changes to Article. The context URL stays https://schema.org. Nothing is published in either build.

A table of rows is a different shape. The JSON to CSV Converter turns a JSON array of objects into CSV. [{"a":1,"b":2}] becomes a header row a,b and a data row 1,2. Download CSV saves those rows. The object this page builds is one object, not an array of rows, and it is not CSV. You could, in a separate step you design yourself, place values in a spreadsheet. This page will not do that conversion. It also will not publish either format. Use the CSV converter when you already have an array of objects and you want rows. Use this page when you want one Product or Article object with a name and a description.

Fields the Builder Will Not Invent

The page will not invent a name. A blank name, or a name that is only spaces, is refused with Name must be from 1 to 120 characters. A name longer than 120 characters after the space fold gets the same sentence. The description uses Description must be from 1 to 500 characters for the empty case and the too-long case. The page will not cut a 501-character description down to 500. Shorten it yourself. The page will not pick Product for you if the type is something else. Choose Product or Article is the refusal. The control on the page only lists those two, so the refusal is what a tampered or empty type hits.

Product and Article Side by Side

Build the sample. In the JSON, find https://schema.org, Product, Oak mug, and A mug with a thick handle. Confirm the headline is Product and the Name label is Oak mug. Switch the type to Article and build again. The context and the two strings stay. @type and the headline become Article. Put two spaces between thick and handle and build again. The description in the JSON has a single space. The fold happens before the object is written. Clear the name and build. The page says Name must be from 1 to 120 characters and does not show a partial object. Clear the description with a legal name and confirm the Description sentence. The page does not publish the markup in the successful builds, and it does not claim a search engine will use the Product object or the Article object.

A feed item is another kind of text you might publish yourself, and this page still will not publish it. The RSS Feed Generator builds one RSS 2.0 item from a title, a link, and a description. It does not publish the feed. An RSS item is not JSON-LD, and it does not set @context to https://schema.org. Use it when you want that feed item. Use this page when you want the Product or Article object. Copying one does not create the other. Neither copy is a claim that a search engine or a reader has consumed it.

Limits of Four Keys

Two types, one name, one description, one context URL. That is the builder. It will not emit a graph of several products. It will not emit a list. It will not accept HTML in a special way. If you type a tag in the description, the tag is characters inside the JSON string. The page does not strip it and does not render it. It does not check the description for accuracy. A mug with a thick handle. can be typed under a name that has nothing to do with mugs. The JSON will still pair them. The page does not publish the markup, and it does not claim a search engine will use it, including in the case where the words happen to be true.

Mistakes About What Was Built

The serious mistake is to treat the JSON as published. The page does not publish the markup. It does not claim a search engine will use it. A copied object sitting in a note is not on a website until you put it there yourself, and even then this page has no view of that website. Another mistake is to expect a price because the type is Product. Product here means the @type string Product plus a name and a description. Another mistake is to expect an author because the type is Article. Article here is the same four keys with a different type string. Another mistake is to count the headline as the markup. The headline is the word Product or the word Article. The markup is the JSON text. Another mistake is to leave a 501-character description and retry without shortening it. The refusal will repeat.

Language links are a different fragment of a page. The Hreflang Generator builds alternate hreflang link tags from a page URL, a language, and one alternate per line. It does not build JSON-LD, and it does not set @type to Product. Use it when you need those link tags. Use this page when you need the Oak mug object or an Article with the same kind of name and description. Neither tool publishes the text it builds, and neither one claims a search engine will use the result.

Copying the Object on Purpose

Build, read the four keys, then copy the JSON if the name and description match what you typed. Check the type in the headline and inside @type. They should match. Check the context. It should be https://schema.org. If any key is missing, you are not looking at this page's object. The page does not publish the markup after you copy it. Pasting the copy into a file is your action. The page does not claim a search engine will use it after that paste either. Keep the claim out of your note. Write what you built: a Product or an Article, the name, and the description, as JSON-LD text.

Reading the JSON Before You Keep It

Read the sample object in key order. @context is https://schema.org. @type is Product. name is Oak mug. description is A mug with a thick handle. Then read the headline Product and the Name label Oak mug. The description has no separate label, so the JSON is the place it must be checked. Switch to Article and read @type again rather than assuming the headline is the only place the type lives. If you shorten a description to satisfy the 500 character limit, read the folded text in the JSON, not the draft you started with, because repeated spaces will have been collapsed. The page does not publish that text, and it does not claim a search engine will use it. The record you keep should say those limits in your own words if someone else might treat the file as live markup.

A robots file is a different text with a different job. The Robots.txt Generator builds a robots.txt file from a user agent, a disallow path, an optional allow path, and an optional sitemap URL. It does not upload the file. It does not emit JSON-LD. Use it when you want that file's text. Use the four-key object here when you want schema text for a Product or an Article. Keep the two copies in different notes so a disallow path is never confused with a mug description.

After the JSON Is Copied

The copy is the markup. The page's job ended when it printed the object. It does not publish the markup. It does not claim a search engine will use it. If you place the copy on a page, that placement is outside this tool, and this tool will not confirm it. If you never place the copy, nothing about the build has failed. Building and publishing are not the same step here. The build is the JSON you can read. Oak mug and A mug with a thick handle. are in the sample so you can see the strings survive. They are not a listing.

Checks on the Sample Object

Build the sample and confirm @context is https://schema.org, @type is Product, name is Oak mug, and description is A mug with a thick handle. Confirm the headline is Product. Switch to Article and confirm only the type changes. Fold a double space in the description and confirm the JSON has one space. Clear the name and confirm Name must be from 1 to 120 characters. Clear the description and confirm the Description sentence. The page should not add a price, an image, or an author on any of these builds. It should not publish the markup, and the result should not claim a search engine will use it.

A sentence about an image is a different builder. The Alt Text Generator writes one alt sentence from the subject you type. A subject of a red bicycle becomes Photo of a red bicycle. It does not look at an image, and it does not emit JSON-LD. Use it when you want that sentence. Use this page when you want the Product or Article object. The mug description is not alt text unless you also decide to write an alt sentence elsewhere. This builder will not do it for you.

Frequently Asked Questions

What does the Oak mug sample produce?

JSON-LD with @context https://schema.org, @type Product, name Oak mug, and description A mug with a thick handle. The headline is Product. The page pretty-prints that object.

What is the other type?

Article. The name and description fields stay. @type and the headline become Article. The context stays https://schema.org. No author or date is added.

Does the page publish the markup?

No. The page does not publish the markup or claim a search engine will use it. Copy result copies the JSON so you can place it yourself if you choose to.

How long can the name and description be?

The name is 1 to 120 characters. The description is 1 to 500. Ends are trimmed and repeated spaces are folded before the count. Too long or empty is refused.

Are price, image, and author included?

No. The object has the context, the type, the name, and the description. Words in the description do not become extra keys.

What if the type is not Product or Article?

The page says Choose Product or Article. It does not accept a type you spell yourself.

Do line breaks in the description survive?

No. Runs of whitespace, including line breaks, fold into a single space. Read the description string in the JSON to see the folded text.

What does Reset restore?

Type Product, name Oak mug, and description A mug with a thick handle. Copy the JSON before you reset if you still need an Article you built.