HTML एंटिटी एनकोड / डीकोड
HTML entity encoder and decoder
Show code as text on a web page, or turn < soup back into readable characters.
Runs in your browser · nothing uploaded
Nothing to convert yet.
How to use it
- 01Choose Encode or Decode.
- 02Paste your text or HTML.
- 03Copy the result.
<a href="/">Tom & Jerry</a>
<a href="/">Tom & Jerry</a>
About this tool
Encoding replaces the five characters with special meaning in HTML (<, >, &, " and ') with entities, so code samples and user text display as text instead of being read as tags. Tick the non-ASCII option to also write Hindi letters and emoji as numeric entities like ह, useful for old systems that can't store Unicode.
Decoding understands numeric entities (₹ and ₹) and common named ones such as &, , ©, … and quotes. Unknown names are left as written rather than guessed. The result is shown as plain text and is never rendered as HTML.
Everything runs in your browser. Your text is never uploaded or stored, so it is safe for drafts, code and private documents.
हिंदी में मदद
HTML के विशेष अक्षरों (<, >, &, उद्धरण चिह्न) को एंटिटी में बदलें, या &, <, ₹ जैसी एंटिटी को वापस सामान्य अक्षरों में।
Questions
Does encoding make HTML safe against XSS?
Escaping these five characters is the standard way to show untrusted text inside HTML content. Attributes, URLs and scripts need their own escaping rules.
Why isn't &bogus; decoded?
Only real entities are decoded. Unknown names are left untouched so nothing is changed by mistake.
Do I need to encode Hindi text?
No, modern pages use UTF-8 and show Hindi directly. Encode non-ASCII only for systems that can't store Unicode.