BuildUtilities

HTML Escape / Unescape – Free Online Tool

Escape special characters to HTML entities or unescape entities back to text.

✦ FreeNo SignupInstantWebCharacter Encoding Guide

Example

Input

<script>alert("XSS")</script>

Output

&lt;script&gt;alert(&quot;XSS&quot;)&lt;/script&gt;

HTML special characters are replaced with their entity equivalents to prevent rendering.

How to Use HTML Escape / Unescape

  1. 1

    Enter Text

    Paste text with special characters or HTML entities.

  2. 2

    Choose Action

    Click Escape to convert to entities, or Unescape to convert back.

  3. 3

    Copy

    Copy the result.

Common Use Cases

  • Preventing XSS attacks in user-generated content
  • Displaying code snippets in HTML
  • Encoding text for safe embedding

More Web Tools

HTML, URL, and meta tag tools for web development.

View all Web tools
Tip Jar