Lorem ipsum generator
Generate placeholder text by paragraphs, sentences or words.
This tool runs in your browser. We never send what you type or paste to a server.
Where lorem ipsum comes from
Lorem ipsum is scrambled Latin based on a passage from Cicero's De finibus bonorum et malorum, written in 45 BC. It has been used as filler text in printing since the 1500s, because it has a natural-looking spread of letters without distracting readers with meaning.
Replace it before launch
Replace placeholder text with real content before you launch. Search engines treat lorem ipsum as low-quality content, and real words reveal layout problems placeholder text hides.
Tips
- Use about as much text as the real content will have. A layout that looks right with one sentence often breaks with five paragraphs.
- Tick Wrap in <p> tags to paste straight into HTML.
- Untick the classic opening if you need several blocks that do not all start with the same words.
How the text is put together
The generator picks words at random from a list based on the classic passage. A sentence has 7 to 15 words, those longer than nine get a comma somewhere in the middle, and a paragraph has 4 to 7 sentences. You can ask for up to 200 paragraphs, sentences or words. With the classic opening ticked, the first sentence is always the familiar one:
5 words Lorem ipsum dolor sit amet.
1 sentence Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua.
Everything after that is different each time you press Generate, so copy the result if you need the same text again. Wrap in <p> tags puts each paragraph in its own element, ready for an HTML mock-up.
What lorem ipsum will not show you
Lorem ipsum has short, evenly sized words with no long names, no links and no other scripts. Real content does, and that is where layouts break. Before you sign off a design, also try:
- Long unbroken words and URLs, which overflow narrow columns and buttons unless you set
overflow-wrap: anywhereorhyphens: auto. - Right-to-left text such as Arabic or Hebrew, which flips alignment and punctuation, and needs
dir="rtl"ordir="auto". - Emoji and combined characters, where one visible symbol is several code points, so character counts and truncation go wrong.
- Translations, which are often longer than English, and one-word labels where your design expected three.
- Exact lengths at the limit of a form field, a database column or a tweet.
// Strings that break layouts which look fine with lorem ipsum.
const samples = {
longWord: 'Donaudampfschifffahrtsgesellschaftskapitän',
url: 'https://example.com/a/very/long/path/without/any/spaces/at/all?and=a&long=query',
rtl: 'مرحبا بالعالم',
emoji: '👩💻 Ship it 🚀',
};
for (const [k, v] of Object.entries(samples)) console.log(k, [...v].length);
// → longWord 42
// → url 79
// → rtl 13
// → emoji 13
// Text of an exact length, for testing maxlength, truncation and database column limits.
const BASE = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. ';
const fill = (n) => BASE.repeat(Math.ceil(n / BASE.length)).slice(0, n);
console.log(fill(20)); // → Lorem ipsum dolor si
console.log(fill(255).length); // → 255
Placeholder text in code and editors
Most editors can produce lorem ipsum without a website. In VS Code and other editors with Emmet, type lorem and press Tab for a paragraph, lorem10 for ten words, or p*3>lorem for three paragraphs in <p> tags.
For tests and screenshots, random text that changes on every run makes snapshot tests fail for no reason. Seed the random generator so the text is the same every time:
import random
WORDS = ('lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor '
'incididunt ut labore et dolore magna aliqua').split()
rng = random.Random(42) # fixed seed: the same text on every run, good for tests and snapshots
def sentence(n=8):
s = ' '.join(rng.choice(WORDS) for _ in range(n))
return s.capitalize() + '.'
print(sentence()) # → Sit lorem sed elit elit amet sit magna.
print(len(sentence(12).split())) # → 12
For realistic test data such as names, addresses and dates rather than Latin, libraries like Faker (Python, PHP and JavaScript ports) are a better fit than lorem ipsum.
Check nothing is left before launch
Forgotten placeholder text is easy to miss on a page you have looked at a hundred times, and a screen reader will read it out to visitors in full. Search the source and the built site before you go live:
grep -ril 'lorem ipsum' site # → site/about.html
In Windows PowerShell, Get-ChildItem -Recurse site | Select-String -List 'lorem ipsum' does the same. Add the check to your build or CI so it cannot slip through again.
Questions
Is lorem ipsum real Latin?
Partly. It's altered Latin from Cicero with words cut and changed, so it doesn't make sense as Latin.
Can I generate an exact number of words?
Yes. Choose "words" and enter the number you need.
How do I generate lorem ipsum in VS Code?
Type lorem and press Tab, which uses the built-in Emmet abbreviations. lorem20 gives 20 words, and an abbreviation such as ul>li*5>lorem4 gives a list of five short items.
Why does the text change every time?
Words and sentence lengths are chosen at random on each Generate, so you get fresh text that does not repeat line for line. Copy the output if you need to keep it, or use a fixed seed in your own code.
Is there an alternative to lorem ipsum?
Draft real copy if you can, even rough copy: it shows whether the design works for the actual content. For data-heavy screens, use realistic generated data with long names, empty fields and big numbers.