Conversion सीधे ब्राउज़र में live चलता है और टेक्स्ट upload नहीं होता। जब सिर्फ safe HTML text चाहिए तो Special chars चुनें, © जैसे readable references के लिए Named entities चुनें, या decimal और hex code points चाहिए हों तो numeric modes का उपयोग करें।
HTML entity एनकोड और डिकोड
पूरी तरह आपके ब्राउज़र में चलता है - न कुछ अपलोड, न साइन-अप।
HTML entity encoder decoder क्या है?
HTML entity encoder decoder अक्षरों को readable text और HTML character references जैसे <, ©, © और 🌍 के बीच बदलता है। HTML में टेक्स्ट चिपकाने से पहले markup-sensitive characters को escape करने के लिए, या source code से entities को सामान्य टेक्स्ट में वापस लाने के लिए इसका उपयोग करें।
कैसे इस्तेमाल करें
- 1Encode या Decode चुनें. टेक्स्ट को HTML entities में बदलने के लिए Encode चुनें, या entity references को readable characters में वापस लाने के लिए Decode चुनें।
- 2Encode mode चुनें. Safe HTML text के लिए Special chars, readable names के लिए Named entities, या numeric code-point references के लिए Decimal और Hex mode इस्तेमाल करें।
- 3टेक्स्ट पेस्ट करें. Output panel में परिणाम live update होता है। Decode mode named, decimal और hexadecimal references को एक साथ संभालता है।
- 4परिणाम कॉपी करें. Encoded या decoded text कॉपी करें और उसे HTML, template, email या documentation में पेस्ट करें।
किसके लिए है
- Web developers angle brackets, ampersands, quotes या apostrophes वाले snippets को टेक्स्ट के रूप में दिखाने से पहले escape करते हैं।
- Content editors CMS या email template की copy decode करते हैं, जहां symbols
&, या©जैसे दिखते हैं। - QA और support teams जांचते हैं कि खराब पेज में raw markup है या पहले से escaped entity references हैं।
- Documentation writers ऐसे examples तैयार करते हैं जिनमें HTML tags दिखें, लेकिन browser उन्हें असली markup न माने।
अक्सर पूछे जाने वाले सवाल
क्या यह HTML entity encoder decoder मुफ्त है?
हां। HTML entity encoder decoder मुफ्त है, बिना sign-up, बिना download और बिना usage limit के। टेक्स्ट पेस्ट करें, mode चुनें और browser से result कॉपी करें।
क्या मेरा टेक्स्ट कहीं upload होता है?
नहीं। Encoding और decoding locally browser में होती है। Widget में पेस्ट किया गया टेक्स्ट server पर नहीं भेजा जाता, इसलिए private templates, source snippets और support tickets के लिए यह ठीक है।
Safe HTML के लिए कौन से characters encode करने चाहिए?
कम से कम ampersand, less-than, greater-than और quotes को escape करें जब text HTML या किसी attribute में डाला जाता है। ये characters markup, entities या attribute boundaries शुरू कर सकते हैं। Modern UTF-8 pages पर हर non-ASCII character encode करना optional है।
Named, decimal और hex entities में क्या फर्क है?
Named entities readable labels इस्तेमाल करती हैं, जैसे <code>&copy;</code>। Decimal numeric references base-10 code points इस्तेमाल करते हैं, जैसे <code>&#169;</code>। Hex references base-16 code points इस्तेमाल करते हैं, जैसे <code>&#xa9;</code>। Browsers तीनों forms decode करते हैं।
क्या decoder emoji और non-English text support करता है?
हां। Numeric references किसी भी valid Unicode code point को दिखा सकते हैं, including emoji और non-Latin scripts। उदाहरण के लिए, <code>&#x1f30d;</code> globe emoji में decode होता है, और <code>&eacute;</code> जैसी named entities accented letters में।
क्या decoded HTML असली markup की तरह चलेगा?
नहीं। Decoded result plain textarea में दिखता है, इसलिए tool में tags text ही रहते हैं। अगर decoded output को HTML document में कॉपी किया जाए, तब browser असली tags को markup मानेगा।
Double-escaped ampersand सिर्फ एक बार ही decode क्यों हुआ?
<code>&amp;</code> literal ampersand की entity है। एक बार decode करने पर <code>&</code> मिलता है। अगर string कई बार encoded थी, तो एक से ज्यादा बार decode करना पड़ सकता है, लेकिन ऐसा तभी करें जब source के double-escaped होने का पता हो।