Ad Placeholder – Top (Responsive Leaderboard)

Lorem Ipsum & Data Generator

Text + structured lists (emails, names, phones, addresses, usernames, UUIDs, companies) with WYSIWYG, history, CSV/Excel export.

Copy & Export History Permalink

Controls

For Words = total words, for others = count/blocks.
Affects paragraphs/sentences/words/lists/titles/html-blocks.
Comma-separated; sprinkled naturally.
Inline SVG data URL – loads instantly, no external calls.

History 0

No history yet. Generate to save.
Ad Placeholder – Inline Mid

Output

Words: 0 Chars: 0 Blocks: 0
CSV/Excel appear for structured lists.
Ad Placeholder – Bottom (In-Content)
`; downloadFile("output.html",page,"text/html"); }); btnDownloadMd.addEventListener('click',()=>{ const {text}=getActiveContent(); downloadFile("output.md",text,"text/markdown"); }); // CSV / Excel downloads for structured arrays function structuredToCSV(rows){ const lines = rows.map(r => `"${String(r).replace(/"/g,'""')}"`); return lines.join("\n"); } function structuredToXLS(rows){ // Excel-friendly HTML table const trs = rows.map(r=>`${String(r).replace(/&/g,"&").replace(/`).join(""); return `${trs}
value
`; } btnDownloadCSV.addEventListener('click', ()=>{ if (!build.lastStructured) return alert("CSV available only for structured lists."); downloadFile("data.csv", structuredToCSV(build.lastStructured), "text/csv"); }); btnDownloadXLS.addEventListener('click', ()=>{ if (!build.lastStructured) return alert("Excel available only for structured lists."); downloadFile("data.xls", structuredToXLS(build.lastStructured), "application/vnd.ms-excel"); }); // Actions document.getElementById('btnClearHistory').addEventListener('click',()=>{ localStorage.removeItem(LS_KEY); renderHistory(); }); btnGenerate.addEventListener('click',()=>{ build(getOptions()); }); btnReset.addEventListener('click',()=>{ setFromOptions({ type:"paragraphs", theme:"classic", count:6, startWithLorem:true, randomBoldItalic:false, insertLinks:false, addEmojis:false, addHeadings:false, headingEvery:3, wrapTag:false, tagName:"p", tagClass:"", customWords:"", phoneCountry:"IN", phoneWithCC:true, imgSize:"800x600", imgCaption:true }); output.innerHTML=""; outputHtml.value=""; outputText.value=""; statWords.textContent=0; statChars.textContent=0; statBlocks.textContent=0; build.lastStructured=null; }); btnRandomize.addEventListener('click',()=>{ const types=["paragraphs","sentences","words","list-ul","list-ol","titles","html-blocks","image-placeholders","emails","names-mixed","names-fl","names-fml","phones","addresses","usernames","uuids","companies"]; const themes=["classic","tech","business","food","travel","medical","finance","education"]; const v={ type: sample(types), theme: sample(themes), count: 2+rand(20), startWithLorem: chance(0.7), randomBoldItalic: chance(0.5), insertLinks: chance(0.4), addEmojis: chance(0.35), addHeadings: chance(0.5), headingEvery: 2+rand(5), wrapTag: chance(0.4), tagName: sample(["p","div","article","section","blockquote","code","pre"]), tagClass: chance(0.4)?"lead mb-3":"", customWords: chance(0.35)?"ZingChak, bootstrap, PHP":"", phoneCountry: sample(["IN","US","UK"]), phoneWithCC: chance(0.8), imgSize: sample(["400x300","800x600","512x512","1200x628"]), imgCaption: chance(0.7) }; setFromOptions(v); build(getOptions()); }); // Load URL options & init setFromOptions(queryToOpts()); renderHistory(); if (!output.textContent.trim() && !output.innerHTML.trim()) build(getOptions()); output.addEventListener('input',()=>{ outputHtml.value=output.innerHTML; outputText.value=output.innerText||output.textContent; }); })();