᠎᠎᠎          

Text paragraphs shuffler

World's simplest random tool
Free online text paragraph shuffler. Just load your multi-paragraph data and get all paragraphs rearranged in random order. Free, quick, and very powerful. Load your paragraphs – get shuffled paragraphs. Created by developers from team Browserling.
Paragraph Grouping
Merge several paragraphs in
buckets and rearrange them
together.
Space Clearing
Delete trailing and leading
whitespace in each line.
Line trimming happens before
text is split into paragraphs. All
empty lines with just whitespace
will create new paragraphs!
Сopy Removing
Delete paragraphs that are
copies of other paragraphs.

What is a text paragraphs shuffler?

learn more about this tool
This tool rearranges the order of paragraphs in the given textual data. A paragraph is considered to be a text blob that is separated by other blobs by one or more empty lines. The shuffling is done by the Richard Durstenfeld algorithm, which is a modern version of the Fischer-Yates algorithm. It generates a random number from 1 to n, which corresponds to the ordinal number of the paragraph (total n paragraphs). The selected paragraph is then moved to the end and then a new random number is selected again but this time in the range from 1 to n-1. This algorithm continues until all paragraphs are mixed. Using the options section, you can change the shuffle algorithm slightly. In particular, you can move paragraphs in groups of two, three, four, or more paragraphs. For example, if you have 6 paragraphs, you can create 2 groups of 3 paragraphs each and shuffle them in triples. In this case, only the first group (1st, 2nd, and 3rd paragraph) and the second group (4th, 5th, and 6th paragraph) will change the positions. That is, there will be two possible combinations in the output: either (1, 2, 3, 4, 5, 6) or (4, 5, 6, 1, 2, 3). As you can see, only the groups move but the paragraphs inside groups remain unchanged. You can also trim lines before shuffling. This allows you to clear lines of unnecessary spaces on the sides. But be careful – if any of the lines contain invisible whitespace, they'll create a new paragraph. Also, you can delete repeated paragraphs before shuffling and have only unique paragraphs printed in the output. Randomabulous!

Text paragraphs shuffler examples

Click to use
What a Wonderful World
In this example, we shuffle three verses of the song "What a Wonderful World" by Louis Armstrong. The shuffling algorithm selects each verse with the same probability and puts it in a random position from 1 to 3.
I see trees of green, red roses too I see them bloom for me and you And I think to myself what a wonderful world I see skies of blue and clouds of white The bright blessed day, the dark sacred night And I think to myself what a wonderful world The colors of the rainbow, so pretty in the sky Also on the faces of people going by I see friends shaking hands, saying how do you do They're only saying I love you
Required options
These options will be used automatically if you select this example.
Merge several paragraphs in
buckets and rearrange them
together.
Delete trailing and leading
whitespace in each line.
Delete paragraphs that are
copies of other paragraphs.
Mix Paragraphs in a Quote
This example makes two modifications to the quote before shuffling. First, it trims lines and second, it removes repeated paragraphs. Trimming the lines makes them aligned on the left side, as well as makes the invisible whitespace at the end of lines removed. Removing repeated paragraphs deletes the last paragraph as it's a copy of the first paragraphs.
I am strong because I've been weak I am fearless because I've been afraid I am wise because I've been foolish. I am strong because I've been weak
I am strong because I've been weak I am fearless because I've been afraid I am wise because I've been foolish.
Required options
These options will be used automatically if you select this example.
Merge several paragraphs in
buckets and rearrange them
together.
Delete trailing and leading
whitespace in each line.
Delete paragraphs that are
copies of other paragraphs.
Writing Systems
This example consists of six paragraphs. Each paragraph is one line long and every two paragraphs represent a writing system in the following order: Latin (paragraphs 1 and 2), Cyrillic (paragraphs 3 and 4), and Abugida (paragraphs 5 and 6). To avoid mixing the writing systems and keep them together, we merge paragraphs into groups of 2. This way, pairs of paragraphs are shuffled but paired writing systems are not shuffled.
English: "Hello" French: "Bonjour" Ukrainian: "Вітаю" Bulgarian: "Здравей" Khmer: "ជំរាបសួរ" Thai: "สวัสดี"
Khmer: "ជំរាបសួរ" Thai: "สวัสดี" English: "Hello" French: "Bonjour" Ukrainian: "Вітаю" Bulgarian: "Здравей"
Required options
These options will be used automatically if you select this example.
Merge several paragraphs in
buckets and rearrange them
together.
Delete trailing and leading
whitespace in each line.
Delete paragraphs that are
copies of other paragraphs.
Pro tips Master online random tools
You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
https://onlinetools.com/random/shuffle-paragraphs?input=I%20see%20trees%20of%20green%2C%20red%20roses%20too%0AI%20see%20them%20bloom%20for%20me%20and%20you%0AAnd%20I%20think%20to%20myself%20what%20a%20wonderful%20world%0A%0AI%20see%20skies%20of%20blue%20and%20clouds%20of%20white%0AThe%20bright%20blessed%20day%2C%20the%20dark%20sacred%20night%0AAnd%20I%20think%20to%20myself%20what%20a%20wonderful%20world%0A%0AThe%20colors%20of%20the%20rainbow%2C%20so%20pretty%20in%20the%20sky%0AAlso%20on%20the%20faces%20of%20people%20going%20by%0AI%20see%20friends%20shaking%20hands%2C%20saying%20how%20do%20you%20do%0AThey%27re%20only%20saying%20I%20love%20you&shuffle-group-size=1&trim-lines=False&skip-duplicates=False
All random tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Randomly rearrange the letters in a string, word, sentence, or text.
Randomly shuffle the order of all words in the input data.
Randomly shuffle text lines and rearrange their order.
Randomly shuffle sentences and change their order.
Randomly shuffle paragraphs and change their order.
Randomly pick an item from many items.
Quickly generate one or more random alphabet letters.
Quickly generate random passwords of arbitrary length.
Quickly generate random numbers.
Quickly generate random bitmap images.
Quickly generate random strings.
Quickly generate random data that matches the given regular expression.
Quickly generate random integers.
Generate a list of random digits from 0 to 9.
Generate a list of random digit pairs from 00 to 99.
Quickly randomly pick a digit from many digits.
Quickly generate random fractions.
Quickly generate a sequence of increasing or decreasing random integers.
Quickly generate random primes.
Quickly generate random binary numbers.
Quickly generate random octal numbers.
Quickly generate random decimal numbers.
Quickly generate random hexadecimal numbers.
Quickly generate random bytes.
Quickly generate random calendar dates.
Quickly generate random clock times.
Quickly generate random IPs.
Quickly generate random MAC addresses.
Quickly generate random UUIDs.
Quickly generate random GUIDs.
Quickly generate random JSON data structures.
Quickly generate random XML documents.
Quickly generate random CSV files.
Quickly generate random TSV files.
Quickly pick one or more winners from many participants.
Coming soon These random tools are on the way
Flip a Coin
Randomly flip a coin and generate a head or a tail.
Throw a Dice
Roll one or more dice and get random dice numbers.
Spin a Wheel
Spin a wheel to pick a name, number, or a winner.
Select a Card
Pick a random card from a deck.
Shuffle a Deck of Cards
Randomize the order of cards in a deck.
Generate Pairs of Random Numbers
Generate a list of pairs of random numbers.
Generate Random Bits
Generate a list of random binary bits (0 and 1).
Generate Random Relative Prime Numbers
Generate a list of random relative primes.
Generate Random YAML
Generate random YAML markup.
Generate Random BSON
Generate random BSON (Binary JSON) files.
Generate Random TOML
Generate random TOML configuration files.
Generate a Random List
Create a random list of various items.
Generate Random HTML
Generate random HTML code and HTML web pages.
Generate Random Text Files
Generate random plain text files.
Generate Random Binary Files
Generate random binary files.
Generate Random Morse Code
Generate random Morse Code messages.
Generate Random UTF8
Generate random UTF8 characters.
Generate Random UTF16
Generate random UTF16 characters.
Generate Random UTF32
Generate random UTF32 characters.
Generate Random Unicode Text
Generate a random Unicode string.
Generate Random Emoticons
Generate a bunch of random emojis.
Generate Random Lenny Faces
Generate a bunch of random smiley faces.
Generate Random HTML Tables
Generate random HTML tables with random values.
Generate Random LaTeX
Generate random LaTeX documents.
Draw a Random Map
Generate a random map.
Choose a Random Image
Given a bunch of images, pick an image at random.
Generate Random Images
Generate random PNG/GIF/JPG/WEBP/BMP images.
Generate Random Audio
Generate random MP3 and WAV music files.
Generate Random Video
Generate random MP4 and AVI videos.
Generate Random Excel
Generate random Excel spreadsheets.
Generate Random Word Documents
Generate random Word documents.
Generate Random RegExps
Generate random valid regular expressions.
Generate Random Words
Generate random English words.
Generate Random Sentences
Generate random English sentences.
Generate Random Paragraphs
Generate random pargraphs of text.
Generate Random Locations
Generate random geographic places.
Generate Random Streets
Generate a list of random streets.
Generate Random Cities
Generate a list of random cities.
Generate Random Countries
Generate a list of random countries.
Generate Random Planets
Generate a list of random planets.
Generate Random Names
Generate random male and female names.
Generate Random Usernames
Generate random usernames for social networks and forums.
Generate Random Cat Names
Generate random feline names.
Generate Random Dog Names
Generate random canine names.
Generate Random ISBNs
Generate random ISBN book identifier numbers.
Generate Random Geographic Coordinates
Generate random latitudes and longitudes.
Generate Random Phone Numbers
Generate random telephone numbers.
Generate Random URLs
Generate random web URLs.
Generate Random Emails
Generate random email addresses.
Generate Random Colors
Generate a random set of colors.
Generate Random XYZ Coordinates
Generate random three dimensional (x, y, z) coordinates.
Generate Random Polar Coordinates
Generate random polar (ρ, φ) coordinates.
Generate Random Cylindrical Coordinates
Generate random cylindrical (ρ, φ, z) coordinates.
Generate Random Points
Generate random n-dimensional points (x₁, x₂, x₃, x₄, …).
Generate Random Vectors
Generate random mathematical vectors.
Generate Random Matrices
Generate random mathematical vectors.
Generate Random Expressions
Generate random mathematical expressions.
Generate Random Equations
Generate random mathematical equations.
Generate Random Functions
Generate random mathematical functions.
Generate Random Surfaces
Generate random geometric surfaces.
Generate Random Shapes
Generate random geometric shapes.
Generate Random Lines
Generate a drawing of random lines.
Generate Random Squares
Generate a drawing of random squares.
Generate Random Circles
Generate a drawing of random circles.
Generate Random Sudoku Puzzles
Generate a sudoku puzzle.
Generate Random Crossword Puzzles
Generate a crossword puzzle.
Generate Random Chess Positions
Generate a chess board with a random game position.
Generate a Random Chess Game
Generate an animation with a random (valid) chess game.
Generate Random Draughts Positions
Generate a checkers board with a random game position.
Generate a Random Draughts Game
Generate an animation with a random (valid) checkers game.
Generate Random Go Positions
Generate a go board with a random game position.
Generate a Random Go Game
Generate an animation with a random (valid) go game.
Generate Random MD5 Hash
Generate random MD5 hash digests.
Generate Random SHA1 Hash
Generate random SHA1 hash digests.
Generate Random SHA2 Hash
Generate random SHA2 hash digests.
Generate Random URL-encoded Data
Generate random percent-escaped URL data.
Generate Random Base64-encoded Data
Generate random base64 data.
Generate Random User Agents
Generate random browser user agent strings.
Generate Random Cats
Create pictures of random cats.
Generate Random Dogs
Create pictures of random dogs.
Generate Random Birds
Create pictures of random birds.
Generate Random Trees
Create pictures of random trees.
Generate Random Flowers
Create pictures of random flowers.
Generate Random Faces
Create pictures of human faces.
Randomize Character Case
Randomly change character case in text.
Shuffle Text Columns
Randomly change the order of columns in text.