Format Code Now
/

Letter Randomizer

RG-25

Paste your text and press Randomize letters. The same letters come back in a new random order, with spaces and punctuation staying in place unless you choose otherwise.

Runs in your browser. Nothing is uploaded.

Text to shuffle

Shuffled text

How to use it

  1. Paste or type your text in the box.
  2. Choose a mode: all letters, letters inside each word, or every character.
  3. In words mode, tick Keep first and last letter of each word if you want to scramble only the middle.
  4. Press Randomize letters and copy the result.

The three modes

All letters moves the letters among the letter positions of the whole text, while spaces, digits, punctuation and emoji stay where they are. Letters inside each word shuffles inside each word only, so word lengths and positions stay the same. Every character moves everything, spaces included, but line breaks stay put. In all modes the result holds exactly the same characters as the input, so nothing is added or lost.

How it handles Unicode

A letter is any Unicode letter, and an accented letter that is built from a base letter plus a combining mark moves as one unit, so the accent is not left behind. Emoji and digits count as other characters in the first two modes. A shuffle can match the input by chance, mostly in short text. The retry option tries again up to 25 times in the first and third modes when the text has at least two different letters. Words mode shuffles within the words only and does not retry. It does not form real words or anagrams.

Questions people ask

How do I randomize the letters in a word?

Paste the word, choose Letters inside each word, and press Randomize letters. The same letters come out in a random order. Tick Keep first and last letter to scramble only the middle, which keeps text easier to read.

Does it keep spaces and punctuation in place?

In the first two modes, yes. Only letters move. In Every character mode, spaces and punctuation move too, but line breaks do not, so the number of lines stays the same.

Can the result be the same as the input?

It can, since a random order sometimes equals the original, especially for short text. By default the tool shuffles again up to 25 times if that happens. Text with only one kind of letter, like aaa, cannot change.

Does it work with accented letters and other alphabets?

Yes. Any Unicode letter counts, including accented Latin, Greek, Cyrillic and others. An accent that is a separate combining mark moves with its letter. Emoji and digits are treated as other characters.

Can I use it to make anagrams?

It makes a random rearrangement of your letters. It does not check a dictionary, so the result is rarely a real word. For puzzles, shuffle a short word several times and pick the order you like.

How is the shuffle done?

It uses the Fisher-Yates method with positions drawn from crypto.getRandomValues, which gives every order the same chance. There is no seed, so you cannot repeat a shuffle.

About this tool

Values are made in your browser with crypto.getRandomValues and rejection sampling, so no value is favored, and nothing is sent anywhere or stored. It uses a Fisher-Yates shuffle. A letter is any Unicode letter, and an accented letter with its marks stays together as one unit; emoji and digits count as "other characters" in the first two modes, so they stay where they are, and in the third mode every character, line breaks excepted, can move. The result is a rearrangement of the same letters, so nothing is added or lost. Short text can come out the same as the input by chance; the retry option tries again up to 25 times when the text has at least two different letters. Words mode shuffles within the words only and does not retry. It does not create real words or anagrams that mean something.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.