Text transform
Reverse, repeat, shuffle lines and check palindromes.
Sometimes you need text bent a particular way: a list put in the opposite order, a phrase read backwards, the same line duplicated fifty times for a test fixture.
This tool bundles those small operations into one page. Paste once, press whichever button you need, and the result lands in the output box — the original stays put so you can try another transform on the same text.
How it works
The transforms
| Button | What it does |
|---|---|
| Reverse characters | Flips the whole text end to end, hello becomes olleh |
| Reverse words | Reverses word order while keeping the spacing between them |
| Reverse line order | Last line first, first line last; words within each line are untouched |
| Shuffle lines | Puts the lines in random order |
Line-based transforms treat every newline as a boundary, so a blank line counts as an empty line and keeps its place in the count.
Repeat and palindrome check
Repeat duplicates the whole input and joins the copies with newlines. The count accepts 1 to 1000; anything outside that range is clamped rather than rejected.
Palindrome check first normalises the text — it lowercases everything and removes every character that is not a–z, 0–9, or a Korean syllable. So A man, a plan, a canal: Panama passes, because the spaces and punctuation are stripped before the comparison. The output box shows the normalised string above its reverse so you can see exactly what was compared, and the message says whether the two match.
Worth knowing
Shuffling uses the browser's cryptographic random source and is not seeded, so the same input gives a different order each run and there is no undo — keep the original if you need it. Character reversal works on whole code points, so emoji and most non-Latin scripts survive intact, but a letter written as a base plus a combining accent can separate from its mark. Accented Latin letters are dropped entirely by the palindrome normaliser, which makes it unreliable for languages that rely on them.
Terms explained
- Reverse words
- Reverses the order of words across the whole text, not just within one line, keeping each run of spacing in place.
- Shuffle lines
- Random reordering of lines using a Fisher–Yates pass driven by the browser's crypto random generator.
- Repeat
- Outputs the entire input N times, one copy per line, with N limited to 1–1000.
- Palindrome
- A word or phrase that reads the same forwards and backwards once case, spaces, and punctuation are ignored.
- Normalisation
- The clean-up applied before the palindrome comparison: lowercase, then strip anything outside a–z, 0–9, and Korean syllables.
Frequently asked questions
Why does the palindrome check say no when I'm sure it's yes?
Most likely your phrase contains accented or non-Latin letters. The normaliser keeps only a–z, 0–9, and Korean characters, so a letter like é is removed and the two halves no longer line up. Try an unaccented spelling to confirm.
Can I get the same shuffle twice?
No. The shuffle draws from the browser's cryptographic random generator and cannot be seeded, so each run gives an independent order. Copy a result you want to keep before shuffling again.
What is the largest repeat count?
1000. Higher numbers are silently reduced to 1000, and values below 1 are raised to 1. Very large results may be slow to render if your input is already long.
Does reversing characters break emoji?
Usually not. The text is split into code points rather than raw code units, so emoji and characters outside the basic range stay whole. Sequences built from several code points — some flags and family emoji, or letters with separate combining accents — can still come apart.
Is my text uploaded?
No. Every transform runs in your browser, so nothing is sent to a server and the tool keeps working offline once the page has loaded.
Tell us what went wrong and we'll fix it fast. (Leave an email if you'd like a reply.)