Generate valid JSON-LD for rich results in seconds.
Pick a schema type, fill in the fields and your JSON-LD updates live on the right. Copy and paste it into your page head. Works for FAQ, Article, LocalBusiness, Product, HowTo, Event, Person and Breadcrumb. Free, no signup, runs entirely in your browser.
Marks up Q&A content. Google may show your FAQs as dropdowns in search results.
Rich result previewFAQPage
People also ask
Your question here?▼
Add a second question▼
Generated JSON-LDValid schema
application/ld+jsonFAQPage
✓ Copied!
Article schema
Structured data for blog posts and news. Helps Google show author and date in results.
Rich result previewArticle
yoursite.com › article
Article Headline
By Author · Fill in the date
Your article description will appear here.
Generated JSON-LDValid schema
application/ld+jsonArticle
✓ Copied!
Local Business schema
Helps Google show your business in local search, Maps and Knowledge Panel with accurate info.
Rich result previewLocalBusiness
Business Name
LocalBusiness
📍 Address, City, State
📞 Phone number
Generated JSON-LDValid schema
application/ld+jsonLocalBusiness
✓ Copied!
Product schema
Enables rich results for products including price, availability and ratings in Google Search.
Rich result previewProduct
Product Name
Brand
★★★★★
Fill in price
In Stock
Generated JSON-LDValid schema
application/ld+jsonProduct
✓ Copied!
HowTo schema
Enables step-by-step rich results in Google showing your how-to guide with individual steps.
Steps
1
2
Rich result previewHowTo
1
Your first step
2
Your second step
Generated JSON-LDValid schema
application/ld+jsonHowTo
✓ Copied!
Event schema
Enables rich event cards in Google showing date, location and ticket info directly in results.
Rich result previewEvent
Event Name
📅 Fill in the date
📍 Venue, Address
Generated JSON-LDValid schema
application/ld+jsonEvent
✓ Copied!
Person schema
Marks up an individual: author bios, team pages, personal brands. Helps Google build an entity for the person.
Rich result previewPerson
Your Name
Job Title · Organization
Brief bio or description will appear here.
Generated JSON-LDValid schema
application/ld+jsonPerson
✓ Copied!
BreadcrumbList schema
Tells Google your page hierarchy. Breadcrumbs appear in search result URLs, improving CTR and navigation clarity.
Rich result previewBreadcrumbList
Home›Services›Current page
Generated JSON-LDValid schema
application/ld+jsonBreadcrumbList
✓ Copied!
';
el.innerHTML = highlight(wrap);
}
function buildFaqPrev(items) {
var el = document.getElementById('dvs-faq-prev'); if (!el) return;
var src = items.length ? items : [{name:'Your question here?'},{name:'Add a second question'}];
el.innerHTML = src.slice(0,4).map(function(x){ return '
'+esc2(x.name)+'▼
'; }).join('');
}
function buildArtPrev() {
var el = document.getElementById('dvs-art-prev'); if (!el) return;
var url = v('art-url')||'yoursite.com/article';
var hl = v('art-headline')||'Article Headline';
var au = v('art-author'); var dt = v('art-date'); var de = v('art-desc')||'Your article description will appear here.';
var uStr = esc2(url.replace(/^https?:///,'').replace(//$/,''));
var meta = (au||dt) ? '
';
}
function buildLbPrev() {
var el = document.getElementById('dvs-lb-prev'); if (!el) return;
var n = v('lb-name')||'Business Name', tp = sv('lb-type')||'LocalBusiness';
var parts = [v('lb-street'),v('lb-city'),v('lb-state')].filter(Boolean);
var addr = parts.join(', '); var ph = v('lb-phone'); var ur = v('lb-url');
var html = '
';
el.innerHTML = html;
}
function buildPrPrev() {
var el = document.getElementById('dvs-pr-prev'); if (!el) return;
var n = v('pr-name')||'Product Name', b = v('pr-brand');
var rt = parseFloat(v('pr-rating')||'0'), pr = v('pr-price');
var cu = sv('pr-currency')||'USD', av = sv('pr-avail')||'InStock';
var stars = ''; for(var i=1;i<=5;i++) stars += (i<=Math.round(rt)?'★':'☆');
var avText = av==='InStock'?'In Stock':av==='OutOfStock'?'Out of Stock':'Pre-Order';
var avColor = av==='InStock'?'#2f7d43':'#c0472b';
var html = '
'+esc2(n)+'
';
if (b) html += '
'+esc2(b)+'
';
if (rt) html += '
'+stars+' '+rt.toFixed(1)+'
';
html += '
'+(pr?esc2(cu)+' '+esc2(pr):'Fill in price')+'
';
html += '
'+avText+'
';
el.innerHTML = html;
}
function buildHtPrev() {
var el = document.getElementById('dvs-ht-prev'); if (!el) return;
var rows = document.querySelectorAll('#dvs-ht-steps .dvt-step-row'); var html = ''; var i = 0;
rows.forEach(function(r){ i++; var n=r.querySelector('[data-ht-name]'); var nm=(n&&n.value.trim())||('Step '+i); if(i<=4) html+='
'+i+'
'+esc2(nm)+'
'; });
if (!html) html = '
1
Your first step
2
Your second step
';
el.innerHTML = html;
}
function buildEvPrev() {
var el = document.getElementById('dvs-ev-prev'); if (!el) return;
var n = v('ev-name')||'Event Name', s = v('ev-start'), vn = v('ev-venue'), va = v('ev-addr');
var dateStr = s ? s.replace('T',' ') : 'Fill in the date';
var loc = [vn,va].filter(Boolean).join(', ') || 'Venue, Address';
el.innerHTML = '
'+esc2(n)+'
📅 '+esc2(dateStr)+'
📍 '+esc2(loc)+'
';
}
function buildPePrev() {
var el = document.getElementById('dvs-pe-prev'); if (!el) return;
var n = v('pe-name')||'Your Name', t = v('pe-title'), o = v('pe-org'), d = v('pe-desc')||'Brief bio or description will appear here.';
var sub = [t,o].filter(Boolean).join(' · ') || 'Job Title · Organization';
el.innerHTML = '
';
}
function buildBcPrev() {
var el = document.getElementById('dvs-bc-prev'); if (!el) return;
var pairs = document.querySelectorAll('#dvs-bc-items .dvt-pair'), parts = [];
pairs.forEach(function(p){ var n=p.querySelector('[data-bc-name]'); if(n&&n.value.trim()) parts.push(n.value.trim()); });
if (!parts.length) parts = ['Home','Services','Current page'];
var html = '
';
}
function buildFaq() {
var pairs = document.querySelectorAll('#dvs-faq-pairs .dvt-pair');
var items = [];
pairs.forEach(function(p){
var q=p.querySelector('[data-faq-q]'); var a=p.querySelector('[data-faq-a]');
if(q&&q.value.trim()) items.push({'@type':'Question',name:q.value.trim(),acceptedAnswer:{'@type':'Answer',text:(a&&a.value.trim())||''}});
});
render('dvs-out-faq',{'@context':'https://schema.org','@type':'FAQPage',mainEntity:items.length?items:[{'@type':'Question',name:'Your question here?',acceptedAnswer:{'@type':'Answer',text:'Your answer here.'}}]});
buildFaqPrev(items);
}
function buildArticle() {
var o={'@context':'https://schema.org','@type':'Article',headline:v('art-headline')||'Article Headline'};
var d=v('art-desc'); if(d) o.description=d;
var dp=v('art-date'); if(dp) o.datePublished=dp;
var dm=v('art-modified'); if(dm) o.dateModified=dm;
var u=v('art-url'); if(u) o.url=u;
var au=v('art-author'); if(au){o.author={'@type':'Person',name:au};var auu=v('art-author-url');if(auu)o.author.url=auu;}
var pu=v('art-pub'); if(pu){o.publisher={'@type':'Organization',name:pu};var lo=v('art-logo');if(lo)o.publisher.logo={'@type':'ImageObject',url:lo};}
var im=v('art-image'); if(im) o.image={'@type':'ImageObject',url:im};
render('dvs-out-article',o);
buildArtPrev();
}
function buildLb() {
var o={'@context':'https://schema.org','@type':sv('lb-type')||'LocalBusiness',name:v('lb-name')||'Business Name'};
var s=v('lb-street'),c=v('lb-city'),st=v('lb-state'),z=v('lb-zip'),co=v('lb-country');
if(s||c){o.address={'@type':'PostalAddress'};if(s)o.address.streetAddress=s;if(c)o.address.addressLocality=c;if(st)o.address.addressRegion=st;if(z)o.address.postalCode=z;if(co)o.address.addressCountry=co;}
var ph=v('lb-phone');if(ph)o.telephone=ph;
var ur=v('lb-url');if(ur)o.url=ur;
var pr=v('lb-price');if(pr)o.priceRange=pr;
var ho=v('lb-hours');if(ho)o.openingHours=ho;
render('dvs-out-lb',o);
buildLbPrev();
}
function buildProduct() {
var o={'@context':'https://schema.org','@type':'Product',name:v('pr-name')||'Product Name'};
var d=v('pr-desc');if(d)o.description=d;
var b=v('pr-brand');if(b)o.brand={'@type':'Brand',name:b};
var sk=v('pr-sku');if(sk)o.sku=sk;
var u=v('pr-url');if(u)o.url=u;
o.offers={'@type':'Offer',price:v('pr-price')||'0',priceCurrency:sv('pr-currency')||'USD',availability:'https://schema.org/'+(sv('pr-avail')||'InStock')};
if(u)o.offers.url=u;
var r=v('pr-rating');if(r)o.aggregateRating={'@type':'AggregateRating',ratingValue:parseFloat(r),bestRating:5,worstRating:1,reviewCount:parseInt(v('pr-reviews'))||1};
render('dvs-out-product',o);
buildPrPrev();
}
function buildHowTo() {
var o={'@context':'https://schema.org','@type':'HowTo',name:v('ht-title')||'How To...'};
var d=v('ht-desc');if(d)o.description=d;
var t=v('ht-time');if(t)o.totalTime=t;
var c=v('ht-cost');if(c)o.estimatedCost={'@type':'MonetaryAmount',value:c};
var rows=document.querySelectorAll('#dvs-ht-steps .dvt-step-row');
var steps=[];
rows.forEach(function(r,i){var n=r.querySelector('[data-ht-name]');var tx=r.querySelector('[data-ht-text]');var nm=(n&&n.value.trim())||('Step '+(i+1));steps.push({'@type':'HowToStep',position:i+1,name:nm,text:(tx&&tx.value.trim())||nm});});
o.step=steps.length?steps:[{'@type':'HowToStep',position:1,name:'Step 1',text:'Describe what to do.'}];
render('dvs-out-howto',o);
buildHtPrev();
}
function buildEvent() {
var mode=sv('ev-mode')||'OfflineEventAttendanceMode';
var o={'@context':'https://schema.org','@type':'Event',name:v('ev-name')||'Event Name',eventAttendanceMode:'https://schema.org/'+mode,eventStatus:'https://schema.org/EventScheduled'};
var s=v('ev-start');if(s)o.startDate=s;
var e=v('ev-end');if(e)o.endDate=e;
var vn=v('ev-venue'),va=v('ev-addr');
if(vn||va){o.location={'@type':mode==='OnlineEventAttendanceMode'?'VirtualLocation':'Place'};if(vn)o.location.name=vn;if(va&&mode!=='OnlineEventAttendanceMode')o.location.address=va;}
var org=v('ev-org');if(org)o.organizer={'@type':'Organization',name:org};
var ti=v('ev-ticket');if(ti)o.offers={'@type':'Offer',url:ti};
var u=v('ev-url');if(u)o.url=u;
render('dvs-out-event',o);
buildEvPrev();
}
function buildPerson() {
var o={'@context':'https://schema.org','@type':'Person',name:v('pe-name')||'Your Name'};
var t=v('pe-title');if(t)o.jobTitle=t;
var org=v('pe-org');if(org)o.worksFor={'@type':'Organization',name:org};
var d=v('pe-desc');if(d)o.description=d;
var u=v('pe-url');if(u)o.url=u;
var im=v('pe-image');if(im)o.image=im;
var li=v('pe-linkedin');if(li)o.sameAs=li;
render('dvs-out-person',o);
buildPePrev();
}
function buildBc() {
var pairs=document.querySelectorAll('#dvs-bc-items .dvt-pair');
var items=[];
pairs.forEach(function(p,i){var n=p.querySelector('[data-bc-name]');var u=p.querySelector('[data-bc-url]');if(n&&n.value.trim())items.push({'@type':'ListItem',position:i+1,name:n.value.trim(),item:(u&&u.value.trim())||undefined});});
render('dvs-out-bc',{'@context':'https://schema.org','@type':'BreadcrumbList',itemListElement:items.length?items:[{'@type':'ListItem',position:1,name:'Home',item:'https://yoursite.com'}]});
buildBcPrev();
}
window.dvsUpdate = function(){ buildFaq();buildArticle();buildLb();buildProduct();buildHowTo();buildEvent();buildPerson();buildBc(); };
window.dvsCopy = function(preId, copId) {
var el=document.getElementById(preId); if(!el) return;
if(navigator.clipboard){navigator.clipboard.writeText(el.textContent).then(function(){var c=document.getElementById(copId);if(c){c.classList.add('show');setTimeout(function(){c.classList.remove('show')},2400);}});}
};
window.dvsAddFaqPair = function() {
var c=document.getElementById('dvs-faq-pairs');
var d=document.createElement('div');d.className='dvt-pair';d.style.marginTop='4px';
d.innerHTML='
';
c.appendChild(d);dvsUpdate();
};
window.dvsAddBc = function() {
var c=document.getElementById('dvs-bc-items');
var d=document.createElement('div');d.className='dvt-pair';d.style.marginTop='8px';
d.innerHTML='
';
c.appendChild(d);dvsUpdate();
};
window.dvsAddStep = function() {
var c=document.getElementById('dvs-ht-steps');
var num=c.querySelectorAll('.dvt-step-row').length+1;
var d=document.createElement('div');d.className='dvt-step-row';d.style.marginTop='8px';
d.innerHTML='
From blank form to valid JSON-LD in under two minutes.
01
Choose schema type
Pick from FAQ, Article, LocalBusiness, Product, HowTo, Event, Person or Breadcrumb using the tab bar at the top of the tool.
02
Fill in the fields
Enter your content in the form on the left. Each schema type shows only the fields relevant to it. No jargon, no guesswork.
03
Preview the JSON-LD
The right panel updates live as you type with syntax-highlighted JSON-LD showing exactly what Google will see on your page.
04
Copy and paste
Hit "Copy JSON-LD" and paste the script block into your page head. Test it in Google's Rich Results Test to confirm eligibility.
Learn
What is schema markup and why does it matter?
Schema markup is structured data added to your page that tells search engines exactly what your content means, not just what it says. JSON-LD is Google's preferred format: a single script block placed in your page head that never touches your visible content or layout.
Pages with valid schema can earn enhanced SERP features: FAQ dropdowns, star ratings, event cards, breadcrumb trails and HowTo steps. These features increase click-through rate without changing your rank. AI search tools also rely on structured data to understand and cite your content in AI Overviews.
✦Unlock FAQ dropdowns, star ratings and rich event cards in search
✦Improve click-through rate from search results without changing rank
✦Get cited more often in Google AI Overviews and AI-powered search
✦Paste into any CMS: WordPress, Shopify, Webflow or plain HTML
After adding schema, test it in Google's Rich Results Test (search.google.com/test/rich-results) to confirm which rich result types your page qualifies for.
By the numbers
Schema markup delivers measurable results
36%
Average CTR lift for pages with FAQ rich results
8+
Rich result types Google unlocks with valid JSON-LD
3x
More likely to appear in AI Overviews with structured data
Free
No signup, no limits, no data stored anywhere
FAQ
Schema Markup Generator: FAQ
Common questions about schema markup, JSON-LD and structured data.
What is schema markup and do I need it? +
Schema markup is structured data you add to your page so search engines understand its content in a machine-readable way. It is not required for ranking, but it unlocks rich result features like FAQ dropdowns, star ratings and event cards that significantly increase click-through rates.
What is JSON-LD and how is it different from Microdata? +
JSON-LD lives in a separate script block in your page head. Microdata and RDFa are embedded directly in your HTML. Google recommends JSON-LD because it is cleaner, easier to maintain and does not risk breaking your visible content.
Will schema markup directly improve my ranking? +
Schema does not directly change your position in results. It makes your listing richer, which typically increases click-through rate. Higher CTR signals can indirectly influence ranking over time. For AI-powered search, schema is increasingly used to decide which pages get cited.
Can I add multiple schema types to one page? +
Yes. A page can have multiple schema blocks: for example a blog post can have both Article and BreadcrumbList schema. Add each type as its own script block. Avoid duplicating the same type twice on the same page.
How do I test that my schema is valid? +
Use Google's Rich Results Test (search.google.com/test/rich-results) or Schema.org Validator (validator.schema.org). Paste your JSON-LD or your page URL. Both tools show errors and which rich result types your page qualifies for.
Is this tool free? Do you store my data? +
Completely free, no signup required. All processing happens in your browser using JavaScript. We do not store, transmit or log any data you enter into the tool.
Devlet implements schema, fixes technical SEO and writes on-page copy that turns rankings into real traffic. Get a free audit and a clear action plan within 24 hours.