The HTML Entity tool converts characters such as <, >, & and quotes into HTML entities and decodes entities back to plain text. Escaping prevents markup from being interpreted as HTML, which is how you show code samples on a page safely; the live preview shows exactly how a browser will render the result.
How to use it
Paste text or HTML.
Choose encode or decode.
Check the preview and copy the result.
Features
Encode and decode entities
Live rendered preview
Named and numeric entities
Frequently asked questions
Why should I escape HTML?
Escaping turns < and > into < and > so the browser shows them as text instead of running them as tags. It is essential for displaying code and a basic defense against injected markup.