स्ट्रिंग एस्केप / अनएस्केप
HTML, JSON, JavaScript, SQL और अन्य के लिए स्ट्रिंग एस्केप और अनएस्केप करें
सुझाए गए अगले कदम
संबंधित उपकरण
Base64 एनकोडर / डिकोडर
टेक्स्ट को तेज़ी से Base64 में एनकोड करें या Base64 को वापस टेक्स्ट में डिकोड करें।
URL एनकोडर / डिकोडर
URL एनकोड और डिकोड करें
HTML एंटिटी एनकोडर / डिकोडर
विशेष वर्णों को HTML एंटिटी में एनकोड करें या उन्हें वापस डिकोड करें
संख्या आधार कनवर्टर
बाइनरी, ऑक्टल, दशमलव और हेक्साडेसिमल के बीच संख्या रूपांतरण
टाइमस्टैम्प कनवर्टर
Unix टाइमस्टैम्प और पठनीय तिथियों के बीच रूपांतरण
ASCII / Unicode लुकअप
ASCII और Unicode वर्ण कोड खोजें और देखें
उपयोग कैसे करें
इनपुट पेस्ट या टाइप करें
इनपुट एरिया में अपना टेक्स्ट, कोड या डेटा दर्ज करें।
विकल्प चुनें
वह ट्रांसफ़ॉर्मेशन या फ़ॉर्मेट चुनें जो आप लागू करना चाहते हैं।
परिणाम कॉपी करें
एक क्लिक से आउटपुट को अपने क्लिपबोर्ड में कॉपी करें।
यह टूल क्यों उपयोग करें
100% मुफ़्त
कोई छिपी लागत नहीं, कोई प्रीमियम टियर नहीं — हर फ़ीचर मुफ़्त है।
कोई इंस्टॉलेशन नहीं
पूरी तरह से आपके ब्राउज़र में चलता है। कोई सॉफ़्टवेयर डाउनलोड या इंस्टॉल करने की ज़रूरत नहीं।
प्राइवेट और सुरक्षित
आपका डेटा कभी आपके डिवाइस से बाहर नहीं जाता। किसी भी सर्वर पर कुछ भी अपलोड नहीं होता।
मोबाइल पर काम करता है
पूरी तरह से रेस्पॉन्सिव — अपने फ़ोन, टैबलेट या डेस्कटॉप पर उपयोग करें।
String Escaping and Unescaping for Multiple Formats
Key Takeaways
- String escaping converts special characters into safe representations for their target format — JSON, XML, HTML, and more each have different rules.
- Improper escaping is a leading cause of injection vulnerabilities, parsing errors, and data corruption in web applications.
- All string processing happens entirely in your browser — your text data is never sent to any server.
Every programming language and data format has characters with special meaning that must be escaped when used as literal text. A backslash in JSON, angle brackets in XML, and quotes in CSV all require different escaping strategies. Understanding escape sequences across formats is essential for building robust applications that handle data safely.
Injection attacks from improper escaping account for over 30% of web application vulnerabilities according to OWASP.
Security Impact
Key Concepts
JSON Escape Sequences
JSON requires escaping backslashes, double quotes, and control characters (\n, \t, \r). Unicode characters can be represented as \uXXXX escape sequences.
XML and HTML Escaping
XML uses entity references (& < > " ') while HTML adds hundreds of named entities. CDATA sections offer an alternative to escaping in XML.
URL Percent-Encoding
URLs encode special characters as %XX hex pairs. This is distinct from other escaping methods and follows RFC 3986 rules for reserved and unreserved characters.
Backslash Escaping in Regex
Regular expressions use backslash to escape metacharacters. When regex is embedded in a JSON string, backslashes must be double-escaped.
Pro Tips
Always use your language's built-in serialization functions (JSON.stringify, encodeURIComponent) rather than manual escaping.
Be aware of double-escaping — when embedding escaped strings inside other escaped formats, each layer adds its own escaping.
Test with edge cases: empty strings, strings containing only special characters, null bytes, and Unicode surrogate pairs.
When debugging, unescape layer by layer — URL decode first, then JSON parse, then examine the raw string.
All string escaping and unescaping is performed entirely in your browser. Your text data, which may contain sensitive content, is never transmitted to any external server.