反转字符 / 单词 / 行的排列顺序,一键倒序排列整段文本
反转字符顺序、倒序单词或整行文本,多种模式一键切换,本地处理零上传。
了解四种反转模式与常见问题。Four reverse modes and answers to common questions.
文本反转工具提供四种模式:字符反转(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.
单词类反转会保留原有空格与换行,避免排版错乱;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.
不会,使用 Array.from 按 Unicode 码点切分,emoji 与中文等复合字符整体反转。No - it splits by Unicode code points with Array.from, so emoji and CJK characters stay intact.
会,单词反转时按空白分段并原样保留,双空格不会被压缩。Yes - words are split on whitespace and spacing is preserved, so double spaces stay intact.
可以,对结果再执行同模式反转即可还原(字符反转可逆)。Yes - applying the same mode again restores the original, since character reversal is reversible.