Free online text line shuffler. Just load your multi-line data and get its lines rearranged in random order. Free, quick, and very powerful. Load your lines – get shuffled lines. Created by developers from team Browserling.
Free online text line shuffler. Just load your multi-line data and get its lines rearranged in random order. Free, quick, and very powerful. Load your lines – get shuffled lines. Created by developers from team Browserling.
This tool rearranges the order of lines in the given textual data. It uses the Knuth method to do it, aka the Fisher and Yates order permutation algorithm. The behavior of the algorithm changes based on how many lines are shuffled at the same time. By default, it takes every single line in turn (1, 2, 3, …, n), generates a random number from 1 to n for it, which is the new position, and moves the line to this new place. It can also take several lines at once and move them together without splitting them apart. For example, if you enter the number 2 in the group size option, it will glue the 1st and 2nd lines together and move them together to a new position, then it will take the 3rd and 4th lines together, then the 5th and 6th, and so on. This way, you can shuffle any number of lines and preserve their relative positions. If the "Trim Lines" option is active, the utility removes trailing and leading whitespace in each line before shuffling them. If any of the lines are empty, the program can quickly delete it if the option "Skip Empty Lines" is enabled. Another option that can be useful is "Skip Duplicate Lines". It checks if the current line was already seen in the text before and if so, the application deletes this duplicate. Simple and easy!
This tool rearranges the order of lines in the given textual data. It uses the Knuth method to do it, aka the Fisher and Yates order permutation algorithm. The behavior of the algorithm changes based on how many lines are shuffled at the same time. By default, it takes every single line in turn (1, 2, 3, …, n), generates a random number from 1 to n for it, which is the new position, and moves the line to this new place. It can also take several lines at once and move them together without splitting them apart. For example, if you enter the number 2 in the group size option, it will glue the 1st and 2nd lines together and move them together to a new position, then it will take the 3rd and 4th lines together, then the 5th and 6th, and so on. This way, you can shuffle any number of lines and preserve their relative positions. If the "Trim Lines" option is active, the utility removes trailing and leading whitespace in each line before shuffling them. If any of the lines are empty, the program can quickly delete it if the option "Skip Empty Lines" is enabled. Another option that can be useful is "Skip Duplicate Lines". It checks if the current line was already seen in the text before and if so, the application deletes this duplicate. Simple and easy!
This example does a random permutation of rows in a list of superheroes. It randomly assigns a new position to each row and removes several empty lines so that there is no extra space in the output.
In this example, we split six lines of a Malala Yousafzai quote into three groups (two lines per group) and shuffle them. Each pair of lines, namely the 1st and 2nd, the 3rd and 4th, and the 5th and 6th remain glued together even after shuffling. We also activate the "Trim Lines" option to get rid of whitespace on the right and left sides of the text on each line.
This example takes a sequence of drawing styles as input. Unfortunately, there are several repeated lines in the input that we'd like to delete. In order to shuffle the styles and also erase extra copies, we have enabled the "Skip Duplicate Lines" option.
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!
Randomly flip a coin and generate a head or a tail.
Roll one or more dice and get random dice numbers.
Spin a wheel to pick a name, number, or a winner.
Pick a random card from a deck.
Randomize the order of cards in a deck.
Generate a list of pairs of random numbers.
Generate a list of random binary bits (0 and 1).
Generate a list of random relative primes.
Generate random YAML markup.
Generate random BSON (Binary JSON) files.
Generate random TOML configuration files.
Generate a list of random even numbers.
Generate a list of random odd numbers.
Create a random list of various items.
Generate a random pin number of any length.
Generate random HTML code and HTML web pages.
Generate random plain text files.
Generate random binary files.
Generate random Morse Code messages.
Generate random UTF8 characters.
Generate random UTF16 characters.
Generate random UTF32 characters.
Generate a random Unicode string.
Generate a bunch of random emojis.
Generate a bunch of random smiley faces.
Generate random HTML tables with random values.
Generate random LaTeX documents.
Generate a pirate treasure map.
Generate a random world map.
Generate a random planet.
Given a bunch of images, pick an image at random.
Generate random PNG/GIF/JPG/WEBP/BMP images.
Generate random MP3 and WAV music files.
Generate random MP4 and AVI videos.
Generate random Excel spreadsheets.
Generate random Word documents.
Generate random valid regular expressions.
Generate random English words.
Generate random English sentences.
Generate random pargraphs of text.
Generate random geographic places.
Generate a list of random streets.
Generate a list of random cities.
Generate a list of random countries.
Generate a list of random planets.
Generate random male and female names.
Generate random usernames for social networks and forums.
Generate random feline names.
Generate random canine names.
Generate random ISBN book identifier numbers.
Generate random latitudes and longitudes.
Generate random telephone numbers.
Generate random web URLs.
Generate random email addresses.
Generate a random set of colors.
Generate random three dimensional (x, y, z) coordinates.
Generate random polar (ρ, φ) coordinates.
Generate random cylindrical (ρ, φ, z) coordinates.
Generate random n-dimensional points (x₁, x₂, x₃, x₄, …).
Generate random mathematical vectors.
Generate random mathematical vectors.
Generate random mathematical expressions.
Generate random mathematical equations.
Generate random mathematical functions.
Generate random geometric surfaces.
Generate random geometric shapes.
Generate a drawing of random lines.
Generate a drawing of random squares.
Generate a drawing of random circles.
Generate a sudoku puzzle.
Generate a crossword puzzle.
Generate a chess board with a random game position.
Generate an animation with a random (valid) chess game.
Generate a checkers board with a random game position.
Generate an animation with a random (valid) checkers game.
Generate a go board with a random game position.
Generate an animation with a random (valid) go game.
Generate random MD5 hash digests.
Generate random SHA1 hash digests.
Generate random SHA2 hash digests.
Generate random percent-escaped URL data.
Generate random base64 data.
Generate random browser user agent strings.
Create pictures of random cats.
Create pictures of random dogs.
Create pictures of random birds.
Create pictures of random trees.
Create pictures of random flowers.
Create pictures of random landscapes.
Create pictures of human faces.
Randomly change character case in text.
Randomly change the order of columns in text.
Subscribe to our updates. We'll let you know when we release new tools, features, and organize online workshops.
Enter your email here
We're Browserling — a friendly and fun cross-browser testing company powered by alien technology. At Browserling we love to make peoples' lives easier, so we created this collection of online random tools that is now enjoyed by millions of casual users. Our tools don't require advanced computer skills as each tool does exactly what it says and nothing more. Behind the scenes, our random tools are actually powered by our web developer tools that we created over the last couple of years. Check them out!