Free Website Schema Generator

A sitelinks search box lets searchers query your site without leaving Google. NToolHub's free Website Schema Generator creates WebSite JSON-LD — with optional SearchAction markup — for your homepage. It's a two-minute win for any site with internal search, from blogs to large ecommerce catalogs.

Adds a SearchAction so Google can show a site search box under your result.
Private by design. This tool runs 100% in your browser — your content is never uploaded to any server.

How to Use the Website Schema Generator

  1. Enter your website name and homepage URL.
  2. Tick sitelinks search box if your site has internal search.
  3. Click Generate Schema to build the WebSite markup.
  4. Paste it into your homepage <head> and validate it.

Features

Enter your site name, alternate name and URL, then toggle the sitelinks search box to add a SearchAction with a customizable URL template. The generator outputs clean WebSite JSON-LD with copy and download, ready for your homepage head.

Benefits & Use Cases

Eligible sites get a branded search box under their homepage result, capturing navigational queries and sending motivated visitors straight to internal results pages. The WebSite entity also strengthens your brand's presence in Google's Knowledge Graph.

Tips

Only enable the search box if your site actually has working internal search, and test the URL template manually first. Place WebSite markup on the homepage only — repeating it site-wide adds no value.

Frequently Asked Questions

What is the sitelinks search box?

It's a search field Google sometimes shows under a site's homepage result, letting users search within your site directly from Google. It requires WebSite schema with a SearchAction.

What should the search URL template be?

Your internal search URL with {search_term_string} where the query goes — e.g. https://example.com/?s={search_term_string}. Test it by replacing the placeholder with a real word.

Will the search box always appear?

No — Google shows it at its discretion for sites with sufficient brand queries. Correct markup makes you eligible; it doesn't guarantee display.

Should I add WebSite markup to every page?

No. Put it on the homepage only. Google associates the WebSite entity with your domain from there.

Related Tools