Escape HTML Special Characters Online

Escape special HTML characters in plain text.

How to use it

  1. Paste the plain text you want to display literally.
  2. Select Escape HTML.
  3. Copy the encoded text into the appropriate HTML text context.

Common questions

What happens to < and &?
The tool replaces them with entity references so HTML parsers display the characters instead of interpreting markup.
Is this a complete HTML sanitizer?
No. Use context-appropriate escaping and sanitization for HTML attributes, scripts, CSS, and untrusted HTML documents.

The tool processes your input in this browser. It does not upload the input itself.