How to use this tool
- Paste the text or HTML entity string.
- Choose Encode to escape characters, or Decode to turn entities into text.
- Copy the result for your document or code sample.
Example
<h1>Hello & welcome</h1> → <h1>Hello & welcome</h1>
What to know
Escaping text is not a complete HTML sanitizer. The safe handling of untrusted content depends on its final context, including attributes, scripts, and URLs.
Frequently asked questions
Will pasted scripts run?
The result is displayed in a text field, not inserted as executable markup.
What characters are escaped?
The encoder escapes ampersands, angle brackets, double quotes, and apostrophes.