BYTETOOLS

WebSite Schema Generator

Create WebSite JSON-LD with site name, alternate name and an optional SearchAction for the Google sitelinks search box. Free, instant and private.

Fix before publishing:

  • name — the site name is required.
  • url — the homepage URL is required (use the canonical version).

WebSite JSON-LD

What is the WebSite Schema Generator?

The WebSite Schema Generator produces the small but influential schema. org WebSite markup for your homepage.

  • Valid schema.org WebSite JSON-LD for the homepage
  • Site name and alternateName for Google's site name display
  • Optional SearchAction for the sitelinks search box
  • Placeholder validation for {search_term_string}
  • Copy or download the ready-to-paste snippet
  • Runs entirely in your browser

How to use the WebSite Schema Generator

  1. 1

    Enter your site name exactly as you want it shown in search.

  2. 2

    Add an alternate name if a shorter variant exists.

  3. 3

    Paste your canonical homepage URL.

  4. 4

    Optionally enable the SearchAction and provide your search URL template with {search_term_string}.

  5. 5

    Copy the generated script tag into your homepage's head.

About the WebSite Schema Generator

The WebSite Schema Generator produces the small but influential schema.org WebSite markup for your homepage. It declares your site's canonical name and URL — the signal Google uses when choosing the site name shown in search results — plus an optional alternateName for shorter variants.

If your site has its own search feature, the tool can add a SearchAction block, which makes your pages eligible for the sitelinks search box directly under your listing. It validates that your search URL template contains the required {search_term_string} placeholder before you copy anything.

Everything is generated 100% locally in your browser with nothing uploaded. Add the markup once to your homepage; it applies site-wide and takes a couple of minutes to get right with this form.

Frequently asked questions

What does WebSite schema do?

It tells search engines your site's official name, URL and optionally how your internal search works. Google specifically documents WebSite markup as the way to influence the site name shown above your URLs in search results.

What is the sitelinks search box?

It is a search field Google can display under your homepage result, letting users search your site directly from Google. Adding a SearchAction with your search URL template makes you eligible, though Google only shows it for sites with meaningful search demand.

What is the {search_term_string} placeholder?

It marks where the user's query goes in your search URL, e.g. https://example.com/search?q={search_term_string}. Google substitutes the real query for the placeholder. The tool warns you if your template is missing it, because the markup is invalid without it.

Where should WebSite markup go?

On the homepage only — one WebSite entity per site. Repeating it on every page is unnecessary and Google's site name documentation explicitly reads it from the homepage.

Why is Google showing the wrong name for my site?

Google picks a site name from several signals: WebSite markup, your title tags, headings and well-known references to the brand. Correct WebSite schema with a consistent name and alternateName is the strongest direct hint you control, though changes can take time to appear.

Related tools