HTML entity encoder and decoder
Convert reserved characters to HTML entities or decode entity references back to text.
Encode text so it can be placed safely inside HTML, or decode entities back into readable characters. Processing stays in your browser.
Encode safely
The five characters with special meaning in HTML are replaced with named entities.
Decode with the browser
The browser’s own HTML parser resolves named and numeric character references.
Frequently asked questions
Does this sanitise untrusted HTML?
No. Encoding the entire string makes it display as text, but decoding untrusted content and inserting it as HTML is unsafe.
Are numeric entities supported?
Yes, the decoder accepts decimal and hexadecimal numeric character references.
Other free tools
- Survey sample size calculator
Work out how many responses you need for a given confidence level and margin of error.
- Survey margin of error calculator
Calculate the margin of error achieved by a completed survey sample.
- Survey response rate calculator
Measure delivery, start, completion, response and drop-off rates from a survey funnel.
Collect your next set of responses
Create a form for your next survey, registration or enquiry, and export the responses when you need them.
Start free