Runs locally
$ devdesk html-entity--local
Encode & convert

HTML entity encoder and decoder

Escape HTML special characters and decode named or numeric entities. Inspect angle brackets, quotes and double escaping as plain text.

Loading local tool…

How to use

Encode HTML as literal text. Decoded output is always displayed as text, never executed as HTML or script.

Your input stays yours

Step by step

  1. Enter literal HTML or text containing entities.
  2. Choose Encode to escape special characters, or Decode to recover text.
  3. Review the result for its intended context; output is not executed as HTML.

Example: displaying HTML source

<b>Hello & world</b>

Encoding produces &lt;b&gt;Hello &amp; world&lt;/b&gt;, for displaying literal tags in a normal HTML text context.

Frequently asked questions

Does this replace an HTML sanitizer?

No. Entity escaping and sanitizing allowed tags are different operations. Safe handling depends on the context: HTML text, attributes, URLs or scripts.

Why does &amp;lt; become only &lt;?

One decode processes one layer. Determine the source and intended number of layers before repeating it; do not insert repeatedly decoded output as trusted HTML.

Will input images or scripts load?

No. Results are displayed as text. Decoding handles entity-shaped fragments rather than mounting the complete input as a page.