文本打乱 使用指南

随机打乱文本(按词或按字符)或反转词序。I love you → you love I。

返回 文本打乱

What does this tool do

The Text Scramble tool lets you transform text in three ways: scramble word order randomly, scramble character order randomly, or reverse word order deterministically. Paste your text, choose a mode, and click Scramble. Useful for creative writing, password obfuscation, or playful message rearrangement.

How to use it

  1. Select mode — Choose Scramble words, Scramble characters, or Reverse words.
  2. Enter text — Paste or type in the input area.
  3. Scramble — Click the Scramble button. The result appears in the output area.
  4. Copy — Use the Copy button to copy the result to your clipboard.
  5. Use as input — Click to move the output into the input field for chaining scrambles.
  6. Load sample — Click Load sample to try with "I love you" as input.

How it works

  • Scramble words — Parses text into words (letters and numbers) and separators (punctuation, spaces). Shuffles only the words using Fisher–Yates and reconstructs with the original separators, so punctuation stays in place.
  • Scramble characters — For each word (letter/number sequence), shuffles its characters using Fisher–Yates. Punctuation and spaces are left unchanged. Supports Unicode.
  • Reverse words — Same parsing as scramble words; reverses the word order instead of shuffling, preserving punctuation and spacing.

All computation runs entirely in your browser. No data is sent to any server.

Use cases & examples

  • Creative writing — Randomize sentence structure for brainstorming.
  • Playful messages — Reverse or shuffle phrases (e.g. "I love you" → "you love I").
  • Obfuscation — Scramble characters to make text harder to read at a glance.
  • Word games — Generate scrambled word puzzles.

Example

  • Input: I love you.
    Scramble words: you love I. (or love you I., etc. — period stays at end)
    Reverse words: you love I. (always)

  • Input: Hello, world!
    Scramble characters: olelH, wrlod! (each word shuffled; comma and exclamation unchanged)

Limitations & known constraints

  • Scramble is random — Scramble modes produce different output each time; results are not reversible.
  • Reverse is deterministic — Reverse words always produces the same output for the same input.
  • Punctuation preserved — Word-based modes keep all punctuation and spacing in their original positions.
  • Single word/char — Text with only one word returns unchanged for scramble/reverse words; a single character within a word returns unchanged for scramble characters.

常见问题

What does 'scramble words' do?
It randomly shuffles the order of words while keeping punctuation and spacing in place. For example, 'I love you.' might become 'you love I.' — the period stays at the end. Same number of words, different order.
What does 'scramble characters' do?
It randomly shuffles the characters within each word. Punctuation and spaces stay unchanged. For example, 'Hello, world!' might become 'olelH, wrlod!' — each word is scrambled individually.
What does 'reverse words' do?
It reverses the order of words deterministically, preserving punctuation. 'I love you.' always becomes 'you love I.'
What does 'Use as input' do?
It copies the output into the input field so you can scramble again — useful for chaining multiple scrambles.
Is my text sent to a server?
No. All processing runs entirely in your browser. No data is sent to any server.

所有计算和转换均完全在您的浏览器中运行。不会向任何服务器发送数据,您的输入不会离开您的设备。