HTML Entity Encoder and Decoder

Convert text locally under the WHATWG HTML Standard's character-reference rules: encoding escapes just the mandatory five or every non-ASCII character as well, and decoding comes with a per-replacement change list and an unresolved list. Decoding shows you what the text says — it does not make markup safe to insert, and encoding text for display is not sanitisation. Semicolon-less legacy references (such as & without the semicolon) are not supported and stay literal.

Convert

Change list

PositionSourceResultRule

Unresolved

PositionTokenReason
How it works and its limits