HTML Entity Converter
Convert HTML-sensitive characters to references or decode supported references back to text. Use it to display a markup example literally or inspect an escaped value without treating it as a full HTML cleaner.
- Runs in your browser
- Nothing is uploaded
- No signup; device limits apply
Loading the tool. If it does not appear, reload this page.
How to use this tool
Choose a direction and provide the string. Encoding handles ampersands, angle brackets and quotes; decoding supports selected names and numeric references rather than the complete HTML entity catalogue.
Results and examples
Encoding <b> produces <b> so the tag can be represented as text. Encoding < again gives &lt;, which is why the number of escaping passes matters.
Limitations
- The decoder does not implement every named HTML character reference.
- Character replacement is not universal protection for attribute, URL and script contexts.
Fields
| Field | Guidance and constraints |
|---|---|
| Text | Check the unit and format displayed beside this field. |
| Result | Check the unit and format displayed beside this field. |
Data handling
Processing stays in the current browser tab; the site does not upload tool input for the calculation itself.
Sources
Frequently asked questions
How are angle brackets represented?
Encoding produces b so the tag can be represented as text. Encoding again gives lt;, which is why the number of escaping passes matters.
Is this safe for every output context?
The decoder does not implement every named HTML character reference. Character replacement is not universal protection for attribute, URL and script contexts.