Item logo image for RTL Direction for ChatGPT — Arabic, Hebrew & Persian

RTL Direction for ChatGPT — Arabic, Hebrew & Persian

ExtensionAccessibility
Item media 1 (screenshot) for RTL Direction for ChatGPT — Arabic, Hebrew & Persian

Overview

Auto-detects Arabic, Hebrew, Persian text in ChatGPT and switches to RTL. Code blocks stay untouched. Works on chatgpt.com.

ChatGPT RTL Direction fixes text flow for Arabic, Hebrew, Persian, and Urdu conversations. It scans every message bubble and paragraph on chatgpt.com, detects right-to-left characters automatically, and applies proper RTL direction so text reads naturally from right to left. Code blocks, inline code, and math equations are always left untouched to preserve syntax integrity. The extension also monitors the prompt input area and switches the textarea direction while you type, so your cursor and punctuation behave correctly in real time. A manual override toggle and keyboard shortcut let you force RTL, LTR, or return to auto-detect at any moment. Built with a lightweight MutationObserver, it handles ChatGPT's streaming single-page architecture without slowing your browser. How it works • The extension injects a content script into chatgpt.com that runs continuously in the background. • It uses a MutationObserver to watch for new message bubbles as ChatGPT streams them into the DOM. • For each paragraph, list, and heading inside a message, it scans the text content against Unicode ranges for Arabic, Hebrew, Persian, and Urdu characters. • If RTL characters are detected, it applies dir="rtl" and right-alignment; otherwise it leaves the element in LTR. • It explicitly skips any element inside a <pre>, <code>, or math block to protect code and equations. • The prompt textarea is monitored via input events, so as soon as you type an RTL character the cursor flips to the right edge. • A state machine in the content script tracks whether the user is in auto-detect, force-RTL, or force-LTR mode, and the popup communicates with the active tab to update that state instantly. Who can use this extension • Arabic speakers writing or reading ChatGPT responses • Hebrew speakers who need proper RTL text flow • Persian and Urdu users working with AI-generated content • Multilingual users who switch between English and RTL languages in the same conversation • Developers, students, and researchers who review code alongside Arabic or Hebrew explanations and need code blocks to remain LTR • Anyone who finds ChatGPT's default left-to-right layout uncomfortable for RTL scripts

Details

  • Version
    1.0.0
  • Updated
    July 21, 2026
  • Offered by
    kingEXT
  • Size
    20.53KiB
  • Languages
    English
  • Developer
    Email
    kngevil520@gmail.com
  • Non-trader
    This developer has not identified itself as a trader. For consumers in the European Union, please note that consumer rights do not apply to contracts between you and this developer.

Privacy

Manage extensions and learn how they're being used in your organization
The developer has disclosed that it will not collect or use your data.

This developer declares that your data is

  • Not being sold to third parties, outside of the approved use cases
  • Not being used or transferred for purposes that are unrelated to the item's core functionality
  • Not being used or transferred to determine creditworthiness or for lending purposes
Google apps