HTML Escape / Unescape

Escape and unescape HTML special characters such as <, >, and &.

Input data is processed in your browser
Data is never sent to a server

Tool

0 chars

or drag & drop a file

0 chars

What is HTML Escaping?

HTML escaping converts special characters into safe representations for embedding in HTML. For example, < becomes &lt;, preventing the browser from interpreting it as a tag. This is a fundamental technique for preventing XSS (cross-site scripting) vulnerabilities.

How to Use

  1. Enter text or HTML in the input field.
  2. Click "Escape" or "Unescape".
  3. The result appears in the output field.
  4. Click "Copy Result" to copy to clipboard.

FAQ

Is this tool safe to use?

Yes. All processing happens in your browser and nothing is sent to a server.

Which characters are escaped?

The main characters escaped are: &, <, >, ", and '.