HTML Entity Encoder and Decoder
This tool converts characters that have meaning in HTML — angle brackets, ampersands and quotes — into their entity form so they display as text instead of being parsed as markup, and decodes entities back into plain characters.
Your result will appear here.
Not sure where to start? Use Load example.
Results update automatically and are calculated on your device. Nothing you type is sent to a server.
Runs in your browser. Processing happens entirely in your browser. Nothing you enter is sent to Delimiter.live.
How to use the HTML Entity Encoder and Decoder
- Choose escape or unescape.
- Paste your markup or your entity-encoded text.
- Copy the result into your page, template or code sample.
Example
<p>Hello & welcome</p>
<p>Hello & welcome</p>
Common use cases
- Displaying a code snippet on a page without the browser rendering it.
- Pasting HTML into a CMS field that would otherwise interpret it.
- Decoding entities that came back from an API or a feed.
- Preparing example markup for documentation.
Limitations and things to watch for
- Escaping the five HTML-significant characters is correct for text content and quoted attribute values. It is not sufficient inside a <script> block, inside a style attribute, or in an unquoted attribute — those contexts need context-specific escaping.
- This tool is for display and authoring convenience. Application security depends on your template engine escaping output automatically; never rely on manually escaping user input.
- Unescaping decodes named entities, decimal references and hexadecimal references.