Website Schema Generator - Create WebSite Structured Data (JSON-LD)

Generate WebSite schema markup for your homepage with sitelinks search box. Help search engines understand your site structure.

Website Details

Use {search_term_string} as placeholder

Generated Schema

{
  "@context": "https://schema.org",
  "@type": "WebSite",
  "name": "Website Name",
  "url": "https://example.com",
  "potentialAction": {
    "@type": "SearchAction",
    "target": {
      "@type": "EntryPoint",
      "urlTemplate": "https://example.com/search?q={search_term_string}"
    },
    "query-input": "required name=search_term_string"
  }
}

Pro Tips

  • Homepage only: Use WebSite schema on your homepage
  • Search box: Enable if you have site search functionality
  • Validation: Test with Google Rich Results Test
  • Combine: Use with Organization schema for best results

Implementation

Placement: Add in <head> or <body>

Format: JSON-LD in script tag

Testing: Use Google Search Console

Updates: Keep schema current with site changes

What is WebSite Schema & Sitelinks Search Box

WebSite schema helps search engines understand your website's structure and enables sitelinks search box.

WebSite Schema Benefits & Sitelinks Search

  • Sitelinks: Get search box in Google results
  • Better indexing: Help search engines understand your site
  • Rich results: Enhanced search appearance
  • User experience: Direct search from results page

WebSite Schema Properties (Name, URL & Search Action)

Key properties for WebSite schema markup.

  • name: Official website name
  • url: Homepage URL
  • alternateName: Common abbreviation or alternate name
  • potentialAction: SearchAction for sitelinks search box

Related Audit Categories

See how we check these areas in a full website audit:

All Free SEO Tools

Ready to see how your site scores?

Get a full breakdown of your website's health across all 15 categories in under 3 minutes.

Start Your Audit