HTML Escape / Unescape

Convert HTML special characters into safe entities and decode common entities.

Runs in your browser. Nothing you enter is sent to our servers.

Input and options

Everything runs locally in your browser. No text is uploaded.

Result

Enter your details and select Run tool.

How to use this tool

Escape the five special characters & < > double quote and apostrophe into HTML entities for safely displaying text in HTML. Decode the standard named entities and numeric references to plain text. It is a simple character converter, not a complete HTML sanitizer or a replacement for contextual output encoding.

Questions and answers

Can I use the result to sanitize user-supplied HTML?

No. Escape plain text for the relevant context; do not rely on this as a sanitizer for executable HTML.

Will it recognize every HTML named entity?

It handles common entities and numeric code points. Unknown named entities are preserved unchanged.