Converters / LING.TOOLS

HTML entities

Escape text as HTML entities or decode entity references, with decoded markup displayed safely as plain text.

Input & settings

01
Configure tool input
Processed in your browser. Your input is never uploaded or saved.

Result

02

Ready when you are

Set up your input and run the tool. Your result will appear right here.

Private · Instant · Local

GUIDE & CONTEXT

About this tool

Entity references let characters such as <, > and & appear as text in HTML. Use this tool to inspect escaped snippets and recover readable text. The result is never rendered as markup here; escaping rules in JavaScript, CSS and URL contexts are different from HTML text escaping.

How to use it

  1. Choose encode to escape text or decode to read entity references.
  2. Paste the text or snippet.
  3. Run the conversion and copy the plain-text result into the appropriate context.
Example

<div>Hello & goodbye</div> can be represented as &lt;div&gt;Hello &amp; goodbye&lt;/div&gt;.

↑ ↓ navigate · Enter openEsc close