Encode and decode HTML entities for safe display in web pages with multiple encoding modes.
html-entity is a browser-based HTML entity encoder and decoder. Type in either the Decoded Text or HTML Entities panel and the other updates instantly. No server involved — everything runs in your browser using JavaScript character mapping and entity tables.
Type or paste any text into the Decoded Text panel. The HTML Entities panel updates on every keystroke with the encoded output based on the selected encoding mode.
Special (& < > " ') Default mode. Only encodes essential HTML special characters:
& → &< → <> → >" → "' → 'This is the most common mode for safely escaping user input in HTML contexts.
Non-ASCII Only Encodes only characters outside the ASCII range (0-127), leaving standard English characters unchanged. Non-ASCII characters are encoded to either named entities (e.g. é → é) or numeric entities (e.g. ⚡ → ⚡) depending on availability.
All Characters Encodes all special HTML characters plus all non-ASCII characters. This provides maximum compatibility for systems that require full entity encoding.
Type or paste HTML entities into the HTML Entities panel. The Decoded Text panel updates on every keystroke with the decoded output.
The decoder supports:
&, <, é, ©, etc.&, é, ©&, é, ©If the input contains an unrecognized entity, it remains unchanged rather than causing errors.
This tool includes comprehensive HTML5 named entity support, covering:
&, <, >, ", ')à, é, ñ)€, £, ¥)±, ×, ÷, ∞)α, ∑, ∫)←, ©, ™)The URL updates live as you type — no button required. Two query parameters are used:
value — the raw decoded textmode — the encoding mode: special (default), ascii, or allShare or bookmark the URL to return to the same content. Both panels and the selected mode are restored on load.
/html-entity?value=Hello <world>Encodes to Hello <world> in special mode.
/html-entity?value=Café résumé&mode=asciiOpens with non-ASCII mode active, encoding accented characters.
Use the Copy button in the Permalink row to copy the current URL to your clipboard.
Use the Reset button to clear both panels, reset to special mode, and return the URL to the bare /html-entity path.