Website Schema Generator - JSON-LD for Site Name & Search Box
Site Information
The name Google should display for your site in search results.
An abbreviation or commonly used alternative name for your site.
Search Action
Use {search_term_string} as the query placeholder.
JSON-LD Output
Why WebSite Schema Matters
WebSite schema is one of the simplest structured data types you can add,
yet most sites skip it entirely. Its primary job is straightforward: tell
Google the official name of your website. Google then uses that name in
search results instead of guessing from your <title>
tags, Open Graph data, or headings. If you have ever seen Google display
the wrong name next to your URLs, this markup fixes that. It takes under a
minute to implement and belongs on your homepage. Nowhere else.
Site Name Display in Search Results
Google introduced site name display to give searchers a clearer picture of which website each result comes from. The name property in your WebSite JSON-LD is the primary signal Google reads. If your site is known by a shortened version or acronym, add that as an alternateName so Google can match it to the way people actually refer to your site. For example, a site called "The New York Public Library" might include "NYPL" as an alternate name. Without this markup, Google falls back on heuristics that frequently produce truncated or incorrect names, particularly for sites with descriptive rather than branded titles.
The Sitelinks Search Box Is Gone
For years, WebSite schema included a SearchAction property that could trigger a search box directly in Google search results. Google deprecated this feature in October 2024. The Sitelinks Search Box no longer appears regardless of whether your markup includes SearchAction. You can still include SearchAction for the benefit of other structured data consumers, but do not add it expecting a visible search box in Google. If you see older guides recommending it as a reason to implement WebSite schema, that advice is outdated. The real value now is entirely in controlling your site name.
Implementation Checklist
Add a single <script type="application/ld+json"> block
to your homepage containing a WebSite object with @type,
name, and url at minimum. Include
alternateName if your site has a well-known abbreviation.
Do not place this markup on subpages. It describes the site as a whole
and only needs to exist once. Validate your output with Google's Rich
Results Test or Schema Markup Validator, then confirm in Google Search
Console that the site name appears correctly. This is a set-and-forget
piece of structured data: once it is in place and validated, you rarely
need to touch it again.