Skip to main content
DevToys
Encode & decode

HTML escape

Escape and unescape HTML special characters

Conversion workspace

HTML Escaped HTML

Input
HTML
Output
Escaped HTML
How to use / Notes

How to use

  1. Enter text to escape, or HTML to unescape.
  2. Choose the direction.
  3. Copy the result into your markup.

Notes

  • Converts special characters like < > & " ’ to entities.
  • Escaping is for display; safely rendering untrusted input needs context-aware handling too.