iToolsPro

Text Reverse

Reverse characters, words or lines of your text in one click

Reverse settings
Reverse mode
Tip: runs locally, nothing is uploaded. Composite characters like emoji are reversed as whole units.
Input / Result
Chars · Words · Lines

Text reverse, chars, words and lines

Reverse character order, reorder words or flip whole lines - switch modes in one click. All local, nothing uploaded.

100% local · nothing uploaded

Features

Character reverse
hello → olleh - reverse every character in the text; emoji and CJK stay intact.
Word / line reorder
Reverse word order, reverse chars within words, or flip whole lines - all in one place.
Whitespace preserved
Word-level modes keep original spaces and line breaks for clean output.

Use cases

🧩 Word puzzles 💻 Code cleanup 🪞 Mirror layout 🔍 Text verification

文本反转工具指南Text Reverse Guide

了解四种反转模式与常见问题。Four reverse modes and answers to common questions.

功能说明What It Does

文本反转工具提供四种模式:字符反转(hello → olleh)、单词倒序(hello world → world hello)、单词内字符反转(hello world → olleh dlrow)、整行倒序(多行上下翻转)。

This tool offers four modes: reverse characters (hello → olleh), reverse word order (hello world → world hello), reverse characters within each word (hello world → olleh dlrow), and reverse line order.

全部在浏览器本地完成,数据不会上传。

Everything runs locally in your browser - nothing is uploaded.

保留空白Whitespace handling

单词类反转会保留原有空格与换行,避免排版错乱;emoji 等由代理对组成的字符会被当作整体反转,不会拆成乱码。

Word-level modes keep original spaces and line breaks so layout isn't broken; surrogate-pair characters like emoji are reversed as whole units instead of splitting into garbage.

使用步骤How to Use

  1. 选择反转模式。Choose a reverse mode.
  2. 粘贴文本。Paste your text.
  3. 点击「反转」并复制结果。Click "Reverse" and copy the result.

常见问题FAQ

Q1. emoji 会反转乱码吗?Q1. Will emoji get garbled when reversed?

不会,使用 Array.from 按 Unicode 码点切分,emoji 与中文等复合字符整体反转。No - it splits by Unicode code points with Array.from, so emoji and CJK characters stay intact.

Q2. 多空格会保留吗?Q2. Are multiple spaces kept?

会,单词反转时按空白分段并原样保留,双空格不会被压缩。Yes - words are split on whitespace and spacing is preserved, so double spaces stay intact.

Q3. 能否再反转回去?Q3. Can I reverse it back?

可以,对结果再执行同模式反转即可还原(字符反转可逆)。Yes - applying the same mode again restores the original, since character reversal is reversible.