Developer tools
HTML entity encoder & decoder
Escape special characters or decode common HTML entities.
A clear answer. Here’s how.
Escapes ampersands, angle brackets, quotes and apostrophes. Decodes the common named entities amp, lt, gt, quot, apos and nbsp, plus valid numeric references. It never renders the input as HTML.
See a worked example
Worked example
A fixed demonstration, separate from the values you enter above.
- Your text
- <h1>Hello & welcome</h1>
- Direction
- Escape HTML characters
Example result
<h1>Hello & welcome</h1>