HTML Entity Encoder & Decoder
Encode special characters to HTML entities (< > &) or decode entities back to plain text.
What HTML Entities Are For
In HTML, characters like <, >, and & have special meaning. When you want to show them as plain text, you need entity versions such as < and >. This tool converts text into that safe format or turns encoded text back into readable characters.
Common Use Cases
- Showing code snippets on a webpage without the browser interpreting them
- Escaping user-generated text before embedding it in HTML
- Decoding entity-heavy strings copied from a CMS or email template
Is this the same as URL encoding?
No. HTML entity encoding protects text inside HTML documents; URL encoding protects text inside links and query strings.