Text Tools

Reverse Text

Reverse characters, words, or lines in your text with optional formatting controls.

Run tool

The text reversal tool allows you to flip text by characters, words, or lines. By default, the tool reverses the complete character sequence in your input, flipping strings backwards from end to beginning. When you need to keep words intact but invert their order, checking the word reversal option processes each line individually, splitting text by whitespace and rejoining the reversed words with single spaces. If you need to reorder lists or paragraphs, the line reversal option splits the text at standard line breaks and outputs the lines in reverse sequence. If both options are selected at the same time, line reversal takes precedence over word reversal. Empty input returns an empty text output. Because character mode reverses raw code points, complex emoji or combined characters might separate, and word mode replaces irregular spacing with single spaces.

Instructions

  1. Paste or type your text into the Text input box.
  2. Select Reverse Lines if you want to invert line order, or Reverse Words to flip word order on each line.
  3. Leave both options unchecked to reverse individual characters throughout the text.
  4. Click the run button to generate the reversed text.

Examples

  • Default character reversal: Entering 'Hello World' with both checkboxes cleared produces 'dlroW olleH'.
  • Word order reversal: Entering 'quick brown fox' with Reverse Words enabled produces 'fox brown quick'.
  • Line order reversal: Entering two lines 'Line 1\nLine 2' with Reverse Lines enabled outputs 'Line 2\nLine 1'.

FAQ

What happens if I enable both Reverse Lines and Reverse Words?

When both checkboxes are checked, line reversal takes precedence, reversing the order of lines without applying word reversal.

Does word reversal preserve multiple spaces between words?

Word reversal splits text on whitespace and joins the reversed words with single spaces, so runs of multiple spaces or custom indentation are normalized to single spaces.

How are line breaks recognized during line reversal?

The tool splits lines using standard line feed characters (LF). Other newline conventions may not split lines separately.

Can character reversal break emoji or accented letters?

Yes, character reversal operates on individual code points, which may split compound emoji or combining accents from their base characters.

Embed this tool

Add this working SmartPlusLab tool to your website with the code below.