Convert HTML Entities to ASCII decodes HTML character references back into plain, readable ASCII. When HTML is escaped, characters like <, >, and & are stored as <, >, & or numeric forms such as A and A. This decoder reverses that, turning references into the characters they represent while keeping the result as text so it is not executed as markup.
The importance is in the distinction between visible text and source representation. The same visual A can be stored as A, A, or A depending on the generator. When inspecting exports, templates, or scraped data, you need to see what the characters actually are, not how they were escaped. The tool does that deterministically and reports problems instead of guessing: if a reference resolves to a code point above 127, it errors because this ASCII-focused tool is intentionally strict; if a reference is unknown like &unknown; or malformed like ZZ;, it reports the exact token.
Supported inputs are the ASCII-relevant named entities (& < > " ') plus decimal (A) and hexadecimal (A) numeric references. The implementation scans with /&(?:amp|lt|gt|quot|#39|#([0-9]+)|#x([0-9a-fA-F]+));/g, validates each numeric value is an integer 0–127, and then reconstructs the string while tracking a token table of {input, result} pairs. A final check /&[^;\s]{1,40}(?:;|$)/ catches any leftover ampersand sequences so typos like & (missing ;) are surfaced. The result powers the main output, a stats line (changed count), and a 200-row token table for inspection. All steps run locally; the tool also offers a strict ASCII validator so you can confirm the decoded text is pure 0–127 before further processing. Start with the sample Hello <world> & "friends"! and replace it with your own fragment containing the entities you care about.
