How to Use the Random Text Generator
- Type a number in How Many, such as 5.
- Under Text, pick English Words for sentences of real words, or Random Characters for a string of letters, digits and symbols.
- For English Words, pick Words, Sentences, Paragraphs or Characters under Count By.
- For Random Characters, turn on the sets you want under Characters to Use, and turn on Spaces between groups for a text that looks like words.
- Press Copy Text to copy the text. Press New Text for a different text of the same length.
Example With Five Random Sentences
By default, How Many is 5, Text is English Words and Count By is Sentences. You get five sentences with 53 words and 429 characters in all, and they start like this:
Informing potatoes hesitate rule naps matters smacked. Insolence scripture knowing torpedo bent attacks, sparrows implanted dominate kerosene coating outspoken yang.
The words are real English words, picked at random, so the sentences have the look of real text without meaning anything. Press New Text for a new set, which starts Pity toenails ravaged punches deliberately humbug.
Change Count By to Words and type 20, and you get the same text cut to 20 words: here that is the first two sentences, since they have 20 words between them.
Random Text to an Exact Length
With English Words and Count By set to Characters, the text is exactly as long as you ask, counting spaces and punctuation. Type 280 and you get 34 words in 280 characters, which is a quick way to check a field, a card or a post with a 280 character limit. To hit the length exactly, the last word may be cut short, and a space at the very end becomes a full stop.
With Count By set to Words, you get exactly that many words, with a full stop after the last one, and Sentences and Paragraphs give whole sentences, so their length in characters varies. The number of words and the number of characters are given with every text.
Random Characters and Strings
With Random Characters, every character is picked at random from the sets that are on, with each character in those sets equally likely. Symbols are the 23 keyboard symbols in the table. With Spaces between groups on, the characters come in groups of 2 to 9 with one space between them, and the text never starts or ends with a space.
| Set | Characters | Which |
|---|---|---|
| a to z | 26 | abcdefghijklmnopqrstuvwxyz |
| A to Z | 26 | ABCDEFGHIJKLMNOPQRSTUVWXYZ |
| 0 to 9 | 10 | 0123456789 |
| Symbols | 23 | !@#$%&*()-_=+[]{};:,.?/ |
| Settings | First Text |
|---|---|
| 16 characters, a to z, A to Z and 0 to 9 | oHkVTCAK63lgW6MG |
| 16 characters, all four sets | tTn$!MKX:]pj%:0S |
| 10 characters, 0 to 9 only | 2517744598 |
| 40 characters, a to z with Spaces between groups | oeu llpyxec yqnpmamc zp jt bnnlekaef pxu |
Random characters are good for test data, such as a long string with no spaces to see where a layout breaks, or digits only for a number field.
English Words Compared With Lorem Ipsum
Lorem ipsum is scrambled Latin from a passage by Cicero, whereas random text here is English words, so a reader sees words they know with the letter shapes and word lengths of English copy. English words are the better choice when you test spell check, hyphenation, search or a font, where Latin words would be marked as errors or split in the wrong places. For classic placeholder text that a client will recognise as a placeholder at once, use the Lorem Ipsum Generator instead.
How the Random Words Are Picked
The words come from the site’s list of about 21,800 common English words, without the words on its lists of offensive words and a further 449 words about sex, drugs, crime, violence, death and illness, which do not suit placeholder text. Words of 2 to 12 letters are used, which leaves 21,006 words. Some of them are names, such as kent, and they are written in lower case like the others.
A sentence has 5 to 14 words, with one comma in a sentence of 8 words or more, a capital letter at the start and a full stop at the end, and the same word is never picked twice in a row. A paragraph has 3 to 7 sentences. The random numbers come from mulberry32, a small seeded generator, started from an FNV-1a hash of the New Text count, so the same settings give the same text until you press New Text. That is fine for test text and not suitable for passwords or anything else that has to be unpredictable. The text is made in your browser, and nothing is sent anywhere.
FAQs
Q1. What Is a Random Text Generator?
A random text generator is a tool that makes text by picking words or characters at random, for use as filler in a design, as test data or as sample text. Here you get either sentences of real English words or a string of random letters, digits and symbols, at the length you choose.
Q2. Are the Random Sentences Grammatical?
The random sentences are not grammatical, because each word is picked on its own with no rule about which word can follow which. Each sentence does start with a capital letter and end with a full stop, and longer ones have a comma, so the text has the outline of real sentences while the words make no sense together.
Q3. Can I Use Random Text to Test a Form or a Database?
Yes, you can use random text to test a form or a database, and Count By Characters is the setting for it, since the text is then exactly as long as you ask. A text of the field’s maximum length, and one a character over it, is enough to see whether the limit is enforced, and Random Characters with no spaces is enough to check how a long unbroken string wraps.
Q4. Is Random Text Safe to Use as a Password?
Random text from the generator is not safe to use as a password, because the random numbers come from a seeded generator that is made to repeat, not from a secure source. Use the generator in a password manager instead, which is made for passwords, and keep this text for layouts and tests.
Q5. Where Do the Random Words Come From?
The random words come from the site’s list of about 21,800 common English words, built from word frequency ranks shipped with the CMU Pronouncing Dictionary data. Offensive words and words about sex, drugs, violence and death are left out, so the text suits a mockup that a client or a class will see.
Sources
Common word list from the frequency ranks shipped with the CMU Pronouncing Dictionary dataset (CC BY-SA 4.0). The skip list of words not used in placeholder text was compiled for this page from that list.