टेक्स्ट
Text Reverse
टेक्स्ट को रिवर्स करें: कैरेक्टर्स के हिसाब से, शब्दों के हिसाब से (शब्दों का क्रम) या लाइनों के हिसाब से (लाइनों का क्रम)।
This tool reverses text three different ways: by character (letters run in reverse order), by word (words swap places but stay intact), or by line (line order is flipped).
How to use it
- Pick a mode — by character, by word, or by line — depending on the result you need.
- Paste text and the result updates instantly as you type.
- Character mode correctly handles composite emoji and grapheme clusters without breaking them apart.
Common uses
- Creating mirrored text for a design or a puzzle.
- Flipping the order of lines in a list or log without reordering them by hand.
- Checking whether a string is a palindrome — text reversed by character is compared against the original.
Things to keep in mind
A naive reversal by Unicode code point breaks composite characters (emoji with modifiers, some languages' combining diacritics) — a correct implementation splits text into grapheme clusters rather than individual code points.
Word-mode reversal doesn't change the letter order inside each word — it only rearranges the words themselves, not a character-level reversal.
इस टूल के बारे में लेख: टेक्स्ट रिवर्स करना: इमोजी के साथ यह क्यों टूट जाता है
अक्सर पूछे जाने वाले प्रश्न
अलग-अलग रिवर्सल मोड्स क्या हैं?
तीन मोड मौजूद हैं: कैरेक्टर ऑर्डर उलटना, हर शब्द को बरकरार रखते हुए शब्दों का क्रम उलटना, या हर लाइन को बरकरार रखते हुए लाइनों का क्रम उलटना।
कैरेक्टर-स्तर का रिवर्सल अपठनीय परिणाम क्यों दे सकता है?
टेक्स्ट को अक्षर दर अक्षर उलटने से मल्टी-बाइट यूनिकोड सीक्वेंस, इमोजी, या कॉम्बाइनिंग कैरेक्टर टूट सकते हैं, जिससे विज़ुअली खराब डिस्प्ले बनता है; शब्द या लाइन स्तर का रिवर्सल यह समस्या पैदा नहीं करता क्योंकि यह टेक्स्ट के पूरे ब्लॉक्स को स्थानांतरित करता है।
क्या दर्ज किया गया टेक्स्ट सर्वर पर भेजा जाता है?
नहीं, रिवर्सल पूरी तरह ब्राउज़र में JavaScript में होता है, सर्वर पर भेजे बिना।
ग्रैफ़ीम क्लस्टर क्या है?
यह वह है जिसे इंसान "एक दिखने वाला कैरेक्टर" मानते हैं, हालाँकि यूनिकोड में यह कभी-कभी कई कोड पॉइंट से बना होता है — उदाहरण के लिए, फ़ैमिली इमोजी कई अलग इमोजी से मिलकर बनता है जो एक ख़ास ज़ीरो-विड्थ जॉइनर कैरेक्टर से जुड़े होते हैं। सही टेक्स्ट रिवर्सल को ऐसे क्लस्टर को एक इकाई के रूप में साथ रखना चाहिए।
क्या इमोजी को इस तरह रिवर्स किया जा सकता है कि वह सही बना रहे?
हाँ, अगर रिवर्सल क्रम बदलने से पहले स्ट्रिंग को अलग-अलग कोड पॉइंट के बजाय ग्रैफ़ीम क्लस्टर में तोड़ता है — तब स्किन टोन मॉडिफ़ायर या देश के झंडे वाले संयुक्त इमोजी ऑपरेशन के बाद भी पूरे बने रहते हैं।