HTML entity encode/decode

How to use

Encode text as HTML entities, or decode entities back to characters. Named entities, decimal ( ) and hex ( ) are supported. A semicolon is required. Nothing is stored or sent anywhere.

Encode as

About

Encoding always covers &, <, >, " and '. Named mode uses HTML 4 names where they exist, and decimal references otherwise. Names are case-sensitive and must end with a semicolon; unknown names are left as written. Null, surrogate and out-of-range numeric references become U+FFFD. The input limit is 512,000 characters. This is not a full HTML5 entity table (for example &nbsp without a semicolon is not decoded).