New: 500+ free SEO and AI search tools, no sign-up.Explore tools β†’

How to Use the WebSite Schema Generator (Step by Step Guide)

By Hasnain Sanmal
WebSite Schema Generator: how to fill in the tool

This guide explains how to use WebSite Schema Generator, step by step, with screenshots of the real tool. It is written for site owners and SEOs who add structured data to their pages. Create WebSite JSON-LD schema with your site name, alternate name and site search action to help Google show the right site name.

Quick answer: To use the WebSite Schema Generator, open the free tool, enter the site name, enter the alternate name, enter the homepage URL and enter the search URL, then copy the text it creates. Everything runs in your browser, so there is no sign up and nothing you type is stored on a server.

how to use WebSite Schema Generator: WebSite Schema Generator with example inputs
Screenshot of the live WebSite Schema Generator with its example values.

What is the WebSite Schema Generator?

Create WebSite JSON-LD with name, alternateName, URL and SearchAction for the Google site name feature.

WebSite schema on your homepage helps Google pick the correct site name to show in results.

How to use WebSite Schema Generator step by step

  1. Step 1: Open the WebSite Schema Generator

    Go to the WebSite Schema Generator on hasnainsanmal.com. It loads with example values already filled in, so you can see how it works straight away. It works the same way on a phone, tablet or computer.

  2. Step 2: Enter Site name

    In the Site name box, type your own value.

  3. Step 3: Enter Alternate name

    In the Alternate name box, type your own value.

  4. Step 4: Enter Homepage URL

    In the Homepage URL box, type your own value.

  5. Step 5: Enter Search URL

    In the Search URL (optional) box, type your own value. The example uses https://example.com/?s={search_term_string}, which you can replace.

  6. Step 6: Read the results

    The output appears inside the tool card. Change any input to compare different scenarios.

    WebSite Schema Generator results example
    Screenshot of the WebSite Schema Generator results.
  7. Step 7: Copy or download the output

    Use Copy code to take the result into your document, CMS, spreadsheet or report.

What does each field in the WebSite Schema Generator mean?

Field What to enter Example
Site name Your text Your own value
Alternate name Your text Your own value
Homepage URL Your text Your own value
Search URL (optional) Your text https://example.com/?s={search_term_string}

What does a worked example look like?

With the example inputs (Search URL (optional): https://example.com/?s={search_term_string}), the WebSite Schema Generator returns: <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Web, Site" } </script>

Replace the example with your own input to get your own result, then review it before you use it.

How do you get the best results from the WebSite Schema Generator?

  • Fill in the fields; the JSON-LD code updates as you type.
  • Paste the code into the page HTML. In WordPress use a Custom HTML block or your SEO plugin’s schema box.
  • Test the page in Google’s Rich Results Test and request indexing in Search Console.
  • Keep the schema text identical to what the page shows.
  • Use one main type per page and test it in the Rich Results Test.

For background, read the Google introduction to structured data. If you are working on a related task, our guide on how to use the Profile Page Schema Generator walks through it the same way. You can also browse all free Schema Markup Generators.

What mistakes should you avoid with the WebSite Schema Generator?

  • Marking up content that visitors cannot see on the page.
  • Adding fake ratings or reviews, which breaks Google guidelines.
  • Not testing the code in the Rich Results Test before publishing.

Key terms

Structured data
Code added to a page, usually as JSON-LD, that describes its content in the Schema.org vocabulary. Search engines use it to understand entities such as products, articles and businesses, and some types can unlock rich results in Google.
JSON-LD
JavaScript Object Notation for Linked Data, the format Google recommends for structured data. It sits in a script tag, separate from the visible HTML, which makes it easy to add, test and update without changing the page design.
HTML
HyperText Markup Language, the standard language that structures web pages with elements such as headings, paragraphs, links and images. Search engines read the HTML to understand page content, links and metadata.
JSON
JavaScript Object Notation, a light text format for data made of key and value pairs, arrays and nested objects. It is used by APIs, configuration files and JSON-LD structured data, and must follow strict syntax to be valid.
Search engine optimisation
The practice of improving a website so it ranks higher in unpaid search results. It covers technical health, on-page content, links and user experience, and it follows Google Search Essentials rather than shortcuts.

Related free tools

Frequently asked questions

Is the WebSite Schema Generator free to use?

Yes. The WebSite Schema Generator is completely free, with no sign up, no daily limit and no watermark. It is one of more than 500 free SEO and marketing tools on hasnainsanmal.com.

Is my data stored when I use the WebSite Schema Generator?

No. The WebSite Schema Generator runs in your browser with JavaScript, so the values and text you enter are processed on your own device and are not sent to or saved on our server.

How accurate is the WebSite Schema Generator?

It creates a solid first draft from your inputs. Always review and edit the output so it is accurate, specific and sounds like you before you publish or send it.

Does the WebSite Schema Generator work on a phone?

Yes. The tool is built for screens from 360 pixels wide, so you can use the WebSite Schema Generator on a phone, tablet or computer in any modern browser.

Can I use the WebSite Schema Generator for client work?

Yes. You can use the results for your own sites and for client projects. Check the output first, and keep a note of the inputs you used so you can repeat the check later.

What should I do after using the WebSite Schema Generator?

Apply the result on your page, campaign or document, then measure the effect. If you would like expert help, see the SEO services or message Hasnain on WhatsApp for a free recommendation.

How we checked this guide: every step and screenshot was taken from the live WebSite Schema Generator on 2 November 2026. Further reading: Schema.org.

Hasnain Sanmal
Hasnain Sanmal

SEO and guest post outreach specialist with 2000+ completed orders and a list of 1000+ hand-picked, high-authority websites. More about me

Need high-authority backlinks?

Get niche-relevant guest posts from my own outreach list of 1000+ websites.

Chat on WhatsApp

More to read

All articles