Encode and Decode HTML Entities
Characters like <, >, & and quotes have a special meaning in HTML. To show them as text — code samples, user input, attribute values — they must be written as entities such as < and &. Paste text to escape it, or paste HTML with entities to decode it back into plain characters.
Optionally every non-ASCII character can be encoded too, as named entities like © and € or numeric ones like Ж, for systems that only accept ASCII. Decoding understands every named and numeric entity. Everything runs in your browser.
Why Use This HTML Entity Converter?
- Escape <, >, &, " and ' for safe HTML
- Decode every named and numeric HTML entity
- Optionally encode all non-ASCII characters
- Instant, in your browser — nothing is uploaded
How to Encode or Decode HTML
- Choose "Encode" or "Decode"
- Paste your text or HTML into the input field
- Copy the result
Frequently Asked Questions
Is this HTML encoder free?
Yes, it is completely free and has no limits.
Which characters are encoded?
The five characters with a special meaning in HTML: & < > " and '. With the extra option, every character outside ASCII is encoded as well — as a named entity where one exists, otherwise as a numeric entity.
When do I need to encode HTML?
Whenever text should be shown literally on a web page instead of being interpreted as markup — for example code examples, or user input, where escaping also prevents cross-site scripting (XSS).
Is my text sent to a server?
No. Everything happens in your browser.