HTML Entity Encoder / Decoder
Encode text to HTML entities or decode HTML entities back to text. Free online escaping tool for developers.
Result appears here
Frequently asked questions
- What does HTML encoding do?
- It converts characters like <, >, & and quotes into entity forms such as < and &, so browsers display them as text instead of interpreting them as markup.
- When do I need to escape HTML?
- Whenever you display user input or code samples on a page. Escaping is the basic defense against broken layouts and cross-site scripting.
- Can I decode entities back to plain text?
- Yes. Paste text containing entities into the input and click Decode to get the original characters back.
- Is the conversion done locally?
- Yes. The tool uses your browser's own DOM to escape and unescape text, and nothing is transmitted anywhere.
This tool runs entirely in your browser. No data is uploaded anywhere.