Reverse text or line order

For developers testing strings or anyone creating a mirrored effect, Invert text reverses characters or line order for quick inspection.

Flip every character in a text or reverse the line order, then inspect and copy the result immediately. No upload or storage is involved.

How to use

  1. Paste the text to invert into the input area, or load a compatible text file if your content already exists.
  2. Select the inversion mode: characters, lines, words, characters per line, or letters in each word.
  3. Run the invert action to get the transformed version in the result area right away.
  4. Review the output, especially if it contains accents, numbers, or links, then copy it if it fits your purpose.

Example

With the short sample provided, character mode flips the order of the letters, while another mode can reverse word order or line order. Watch how spaces and punctuation move depending on the selected mode.

Input

Hello world

Output

dlrow olleH

Limits and formats

Where processing happens

The inversion is computed locally inside your browser. Whatever you paste or import stays on your device, is not sent to any remote service, and the result only appears on the open page.

Frequently asked questions

What is the difference between reversing characters and reversing words?

Character mode changes the order of every letter in the text. Word mode keeps the letters intact but changes the position of the words. The first creates a mirror effect, while the second rearranges the sentence without breaking individual words.

Can I reverse only the lines of a file?

Yes, if the file is accepted and you choose line mode. The last line becomes the first, and so on. Check the new order afterward, because headings or labels may no longer make sense at the top.

Is the result suitable for text meant for publication?

Usually not as it stands, because inversion changes readability. It is mainly useful for creating an effect, testing a string, or preparing another transformation. Read it carefully before publishing anything.

Tools in the same category