Developer tool
HTML Entity Encoder / Decoder
Encode special HTML characters or decode HTML entities for safe text handling.
Result
Your result will appear here.
Privacy note: most tools process input locally in your browser.
About the HTML Entity Encoder / Decoder
Convert characters such as ampersands, angle brackets, quotes and apostrophes into HTML entities or decode them.
How to use this tool
Paste text and choose Encode entities or Decode entities. Check the output before inserting it into HTML.
Example
< becomes &lt; in encoded text.
Tips for better results
Encoding is context-dependent; it is not a substitute for context-aware output escaping in application code.
Frequently asked questions
Why encode angle brackets?
They have special meaning in HTML.
Does encoding sanitize all input?
No, use proper escaping for the target context.