String Reverse Tool

Reverse text strings quickly with multiple reverse modes

Input
Characters: 0
Lines: 0
Output
Characters: 0
Lines: 0

Select Reverse Mode

What is String Reverse?

String reversal is the operation of reversing the character order in text. For example, 'Hello' reversed becomes 'olleH'. There are multiple modes: reverse all, reverse words, reverse each line, etc., suitable for different text processing scenarios.

Common uses: data processing, text conversion, basic cryptography operations, string algorithm practice, etc.

How to Use

Basic Operations

  1. Enter or paste the text to reverse in the left input box
  2. Select a reverse mode (reverse all, reverse words, etc.)
  3. The right side automatically shows the reversed result
  4. Click 'Copy' to copy the result, or 'Swap' to use the result as input for further operations

Reverse Mode Description

  • Reverse All: Reverse the entire string including all characters
  • Reverse Words: Keep each word's internal order, but reverse the order between words
  • Reverse Each Word: Keep word order, but reverse characters within each word
  • Reverse Each Line: Reverse characters within each line separately
  • Reverse Line Order: Keep each line's content, reverse the order of lines
  • Reverse Sentences: Split by periods, question marks, exclamation marks, reverse sentence order

Examples

Reverse All Example

Input: Hello World Output: dlroW olleH Input: 开发工具箱 Output: 箱具工发开

Reverse Words Example

Input: Hello World DevToolBox Output: DevToolBox World Hello

Reverse Each Line Example

Input: 第一行文字 第二行文字 第三行文字 Output: 字文行一第 字文行二第 字文行三第

FAQ

Q: Does reverse work correctly with Chinese characters?

A: Yes. This tool processes characters using Unicode code points, fully supporting Chinese, Japanese, Korean and other multi-byte characters.

Q: What's the difference between 'Reverse Words' and 'Reverse Each Word'?

A: 'Reverse Words' reverses the order of words (e.g., A B C → C B A), while 'Reverse Each Word' reverses the characters within each word (e.g., Hello World → olleH dlroW).

Q: Are newlines reversed?

A: 'Reverse All' will also reverse the position of newlines. To keep each line independent, use the 'Reverse Each Line' mode.

Q: Can I reverse multiple times?

A: Yes. Click 'Swap' to put the result into the input box, then select a reverse mode again. Reversing all twice will restore the original text.