About the HTML Entities Converter
Our free HTML entities converter lets you encode plain text or HTML into safe HTML entities and decode HTML entities back to readable characters โ all in real time as you type. It supports named entities, decimal numeric entities, and hexadecimal numeric entities.
How to Use
- Select Encode or Decode mode using the toggle buttons.
- Type or paste your text into the input box.
- The converted output appears instantly in the output box below.
- Click Copy to copy the output to your clipboard.
Why Encode HTML Entities?
When you include user-generated content in HTML, characters like <, >, and & must be encoded to prevent them from being interpreted as HTML markup. Failing to do so can lead to broken layouts or, worse, cross-site scripting (XSS) vulnerabilities.
Encoding Rules
&โ&<โ<>โ>"โ"'โ'- Extended characters (code point > 127) โ
&#codepoint;
Use Cases
- Web developers โ sanitise user input before inserting into HTML.
- Content management โ safely store and display HTML content in databases.
- Email templates โ ensure special characters render correctly across email clients.
- XML/XHTML โ encode entities for strict XML compliance.
- Learning HTML โ explore how entities work with the reference table.
