Developer Tools ›
HTML Entities Encoder/Decoder
Convert text into safe HTML entities (and back) so you can embed any content inside HTML without breaking it.
Private - runs in your browser
No signup required
Free forever
How to use HTML Entities Encoder/Decoder
- Paste your text.
- Click Encode to escape special characters, or Decode to read entities back.
- Copy the result.
Features
- Encode & decode
- Numeric and named entities
- Browser-side
Why use it
- Avoid XSS in templates
- Embed code samples safely
Frequently asked questions
Which entities are encoded?
< > & " ' and any non-ASCII char. Decode handles named entities like & and numeric &#xx;.