HTML Escape / Unescape – Free Online Tool
Escape special characters to HTML entities or unescape entities back to text.
Example
Input
<script>alert("XSS")</script>Output
<script>alert("XSS")</script>
HTML special characters are replaced with their entity equivalents to prevent rendering.
How to Use HTML Escape / Unescape
- 1
Enter Text
Paste text with special characters or HTML entities.
- 2
Choose Action
Click Escape to convert to entities, or Unescape to convert back.
- 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.
?= Query String Parser<>↓ HTML Minifier<>↑ HTML Formatter🏷️ Meta Tag Generator🤖 Robots.txt GeneratorOG Open Graph Preview
View all Web tools