文本方向转换器

调整阿拉伯语、希伯来语及混合文本的显示方向,选择 LTR 或 RTL 并处理方向标记。可复制结果或下载 TXT;用于文字方向处理,不是语言翻译。

转换类型

根据你的文本自动判断输出方向

目标方向

浏览器根据内容决定

不可见的 Unicode 控制字符

检测结果: —
试试示例
转换后的文本
转换后的文本将显示在这里...
LTR 0 RTL 0 中性 0
检测到的方向— 字符数0

工作原理

处理文本方向转换的简单流程

  1. 1

    输入文本

    粘贴或输入任何语言的文本

  2. 2

    选择方向

    选择目标方向:LTR、RTL 或自动

  3. 3

    查看预览

    查看应用方向后的实时预览

  4. 4

    复制结果

    复制格式化的文本用于您的项目

文本方向功能

全面支持双向文本处理

RTL 支持

完全支持阿拉伯语、希伯来语、波斯语和其他 RTL 语言

自动检测

基于字符分析的智能文本方向检测

实时转换

输入时即时转换和预览

Unicode 标记

支持 Unicode 方向格式化字符

内置编辑器功能

边输入边实时预览、逐行方向处理、一键复制和 .txt 导出,带来在线 RTL 文本编辑器般的体验

适用于

多语言内容管理的必备工具

Web 开发 内容管理 翻译工作 数据处理

常见问题

什么是文本方向?
文本方向指的是文本的阅读和显示方式。LTR(从左到右)用于英语、西班牙语和法语等语言。RTL(从右到左)用于阿拉伯语、希伯来语和波斯语等语言。
自动检测如何工作?
我们的自动检测分析文本中的 Unicode 字符范围。它计算 LTR 字符(拉丁文、西里尔文等)和 RTL 字符(阿拉伯文、希伯来文)的数量,以确定主要的文本方向。
什么是 Unicode 方向标记?
Unicode 提供了特殊的不可见字符,如 LRM(从左到右标记)和 RLM(从右到左标记),可以控制文本方向。这些标记对于混合 LTR 和 RTL 文本特别有用。
何时应该使用强制反转?
当您想以与其自然方向相反的方向显示文本时,强制反转很有用,例如用英文文本测试 RTL 布局,或为特定应用反转字符顺序。
如何处理混合的 LTR 和 RTL 文本?
对于混合内容,使用"自动方向"选项,它允许浏览器根据每个文本块中的第一个强方向字符来确定方向。这对于双语内容非常理想。
WhatsApp 里阿拉伯语文字反转或断开显示,怎么修复?
这通常是因为阿拉伯语复制自会丢失方向信息的来源——字母按从左到右显示,词语顺序也被颠倒。把文字粘贴到这里,目标方向选择 RTL,需要时添加 RLM 标记,再把结果复制回 WhatsApp——控制字符会随文字一起保留,在 Android 和 iPhone 聊天中保持可读。
在 Microsoft Word 里怎样正确输入从右到左的文字?
Word 原生支持 RTL:用 Ctrl+右侧 Shift 设置段落方向(或段落 → 文字方向 → 从右向左),并在 Windows 语言设置中启用阿拉伯语键盘。未做这些设置时输入或导入的文字,可用本转换器修复——在这里用 RLE/PDF 标记包裹后,再粘贴到已设置好段落方向的 Word 中。
在 Photoshop 中如何保持 RTL 文字整齐对齐?
在 Photoshop 中启用中东文本引擎(首选项 → 文字 → 选择文本引擎选项 → 中东和北非),并在段落面板中设置从右到左方向。阿拉伯语与拉丁字母混排的图层,请先在这里修正字符串——逐行方向和 Unicode 标记可避免 Photoshop 文字图层常见的标点错乱和括号镜像问题。
What is RTL text, and which languages are written right to left?
RTL text is text that reads from right to left, so lines start at the right edge and flow leftward. Major RTL languages include Arabic, Hebrew, Persian (Farsi), Urdu, Pashto, and Divehi. Most other languages — English, Chinese, Russian, and so on — are LTR (left to right). If a document or chat message shows RTL text in the wrong order, paste it into this converter to restore the correct direction.
How do I fix reversed or garbled RTL text online?
Reversed Arabic or Hebrew usually appears when text is copied out of an app that drops direction information: the characters survive, but the renderer treats them as LTR and flips the word order. Paste the broken text here, use Auto Detect to identify the real direction, apply Force Reverse or add RLM/RLE marks, then copy the repaired output. The per-line direction option fixes documents where only some lines are affected.
What is the difference between LTR and RTL text?
LTR (left-to-right) text begins at the left margin and flows right; RTL (right-to-left) text begins at the right margin and flows left. The direction also mirrors layout: in RTL interfaces, headings align right, numbered lists count from the right, and icons sit on the opposite side. A single paragraph can contain both directions at once — that is bidirectional (bidi) text, which Unicode control characters keep in the right order.
How do I convert Arabic text to display right to left?
Paste your Arabic text and set the target direction to RTL, or rely on auto-detection, which recognizes the Arabic Unicode block automatically. The converter can embed RLM and RLE/PDF bidirectional controls so the output keeps its direction in editors, spreadsheets, and web pages. On an HTML page, also set dir="rtl" on the surrounding element so the whole layout mirrors correctly.

快速可靠的本地化工具,包括时区、语言和货币转换