ClearPaste · Developer Tools

HTML Entity Escape / Unescape

Last updated: August 28, 2026

Escape & < > " ' into HTML entities, or unescape entities back into characters.

Runs in your browser — nothing uploaded

How it works

Escape converts the five XML-critical characters (&, <, >, ", ') into their named entities so text can be embedded in HTML without breaking markup. Unescape reverses both named and numeric entities (&, &, &).

Use cases

Displaying code snippets inside an HTML page. Reading an escaped blob from an API response or CMS export. Preventing broken rendering when AI-generated text contains angle brackets.

Related tools

JSON Formatter & Validator Base64 Encode / Decode URL Encoder / Decoder

Frequently asked questions

Which characters are escaped?

& < > " ' — the minimum set for safe HTML text content.

Does unescape handle numeric entities?

Yes — decimal (&) and hex (&) both decode.

Is my text uploaded?

No — the conversion is pure client-side JavaScript.